TC官方合作论坛
标题:
怎样让程序不显示在alt+Tab的任务切换窗口中?
[打印本页]
作者:
150090099
时间:
2013-9-13 23:15
标题:
怎样让程序不显示在alt+Tab的任务切换窗口中?
怎样让程序不显示在alt+Tab的任务切换窗口中?
作者:
dongyijun1979
时间:
2013-9-14 00:30
怎么老问这个?
作者:
dongyijun1979
时间:
2013-9-14 00:38
http://bbs.tyuyan.com/thread-30776-1-1.html
作者:
ak45270
时间:
2013-9-14 02:41
回复
2楼
dongyijun1979
的帖子
:不怪他 ZTC 你的方法行不通,有写电脑可以隐藏 有些电脑不可以
作者:
dongyijun1979
时间:
2013-9-14 08:19
CSDN上有篇帖子,你试着移植过来。得直接调用WIN API
http://bbs.csdn.net/topics/300121026
作者:
dongyijun1979
时间:
2013-9-14 09:24
回复
1楼
150090099
的帖子
namespace 我还不信了
//默认空间
function button0_click()
//这里添加你要执行的代码
var GWL_EXSTYLE =-20
var WS_EX_TOOLWINDOW =#00000080
var hWndSet=0,hWnd=array[0],len=0
hWndSet=system.enum("我还不信了",0)
str.split(hWndSet,"|",hWnd)
arraysp.size(hWnd,len)
for(i=0;i<len;i++)
var ret=dllcall("user32.dll","int","GetWindowLong","int",hWnd[i],"int",GWL_EXSTYLE)
ret+=WS_EX_TOOLWINDOW
traceprint(ret)//*********************************如mumu940307所说,这里果然是128
window.hidewindow(hWnd[i])//得有这句和下下句的显示窗口呢,弄了半天,晕
dllcall("user32.dll","int","SetWindowLong","int",hWnd[i],"int",GWL_EXSTYLE,"int",ret)
window.showwindow(hWnd[i])
endfor
endfunction
endnamespace
//空间结束
复制代码
这样就行了!
作者:
dongyijun1979
时间:
2013-9-14 10:08
回复
1楼
150090099
的帖子
上面若不行,再试下这个(窗口打开后,先点击一下“最小化”按钮)
namespace 我还不信了
//默认空间
function init()
//这里添加你要执行的代码
var GWL_EXSTYLE =-20
var WS_EX_TOOLWINDOW =#00000080
var hWndSet=0,hWnd=array[0],len=0
hWndSet=system.enum("我还不信了",0)
str.split(hWndSet,"|",hWnd)
arraysp.size(hWnd,len)
for(i=0;i<len;i++)
var ret=dllcall("user32.dll","int","GetWindowLong","int",hWnd[i],"int",GWL_EXSTYLE)
ret+=WS_EX_TOOLWINDOW
traceprint(ret)//*********************************如mumu940307所说,这里果然是128
dllcall("user32.dll","int","SetWindowLong","int",hWnd[i],"int",GWL_EXSTYLE,"int",ret)
help.settray(hWnd[i],false)
endfor
endfunction
endnamespace
//空间结束
复制代码
欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/)
Powered by Discuz! X3.1