TC官方合作论坛

标题: 退出脚本时总是TC停止工作。 [打印本页]

作者: xt001118    时间: 2014-6-3 14:28
标题: 退出脚本时总是TC停止工作。
    if(check.getstate("xs"))
        dllcall(help.getrcpath("rc:dlltest.dll"),"int","ShowInTaskbar","int",窗口,"int",1)
    else
        dllcall(help.getrcpath("rc:dlltest.dll"),"int","ShowInTaskbar","int",窗口,"int",0)
    endif

运行上面的代码,脚本退出时多会出现TC 停止工作?
不运行上面的代码就不会。
怎么回事呢?


作者: 禁猎白狼    时间: 2014-6-3 18:27
我也遇见过~ 调用插件的话   特别容易出现这些问题~~
作者: 如此美丽。    时间: 2014-6-3 21:18
暖     
作者: itcfan    时间: 2014-6-3 21:38
试试把皮肤代码禁用了。
作者: xt001118    时间: 2014-6-3 22:34
itcfan 发表于 2014-6-3 21:38
试试把皮肤代码禁用了。

没用皮肤也是一样啊
作者: xt001118    时间: 2014-6-3 22:34
禁猎白狼 发表于 2014-6-3 18:27
我也遇见过~ 调用插件的话   特别容易出现这些问题~~

哎.........,谢谢了
作者: xt001118    时间: 2014-6-3 22:36
如此美丽。 发表于 2014-6-3 21:18

........
作者: xt001118    时间: 2014-6-3 22:39
禁猎白狼 发表于 2014-6-3 18:27
我也遇见过~ 调用插件的话   特别容易出现这些问题~~

调用API就不会,但是不能达到我要的效果
作者: itcfan    时间: 2014-6-3 23:19
xt001118 发表于 2014-6-3 22:39
调用API就不会,但是不能达到我要的效果:

你要实现啥效果?
作者: 超自然    时间: 2014-6-4 10:15
很明显插件没写好
作者: xt001118    时间: 2014-6-4 14:59
itcfan 发表于 2014-6-3 23:19
你要实现啥效果?

    if(check.getstate("xs"))
        dllcall("user32.dll","int","ShowWindowAsync","int",窗口,"int",0)
        dllcall("user32.dll","int","ShowWindowAsync","int",窗口,"int",1)
    else
        dllcall("user32.dll","int","SetWindowLongA","int",窗口,"int",-8,"int",0)
        dllcall("user32.dll","int","SetWindowLongA","int",窗口,"int",-8,"int",128)
    endif

不能绝对隐藏啊,
作者: xt001118    时间: 2014-6-4 15:06
超自然 发表于 2014-6-4 10:15
很明显插件没写好

哦,插件论坛找的!,我是不会写插件,大神能帮我写个吗,
作者: itcfan    时间: 2014-6-5 09:30
xt001118 发表于 2014-6-4 14:59
if(check.getstate("xs"))
        dllcall("user32.dll","int","ShowWindowAsync","int",窗口,"int" ...

窗口句柄=窗口.自身句柄()
窗口.设置位置(窗口句柄,-2000,-2000)

移到屏幕外就相当于隐藏了啊~
作者: xt001118    时间: 2014-6-5 14:23
itcfan 发表于 2014-6-5 09:30
窗口句柄=窗口.自身句柄()
窗口.设置位置(窗口句柄,-2000,-2000)

我是要隐藏任务栏的图标窗口啊
作者: itcfan    时间: 2014-6-6 11:31
xt001118 发表于 2014-6-5 14:23
我是要隐藏任务栏的图标窗口啊

显示&隐藏桌面图标和任务栏
http://www.5a5x.com/06/201009/09101382.html
是不是这效果?
作者: xt001118    时间: 2014-6-6 12:36
itcfan 发表于 2014-6-6 11:31
显示&隐藏桌面图标和任务栏
http://www.5a5x.com/06/201009/09101382.html
是不是这效果? ...

看标题是,不过下载来是个PHP文件.....

我有易语言的代码,你能不能绑我打包成插件啊。我不会弄带接口的插件,找不到教程
作者: mzhb1987    时间: 2014-6-6 17:06
你要实现啥效果?
作者: itcfan    时间: 2014-6-6 20:43
xt001118 发表于 2014-6-6 12:36
看标题是,不过下载来是个PHP文件.....

我有易语言的代码,你能不能绑我打包成插件啊。我不会弄带接口的 ...


晕,怎么会下载到PHP,附件传上来了。
作者: xt001118    时间: 2014-6-6 22:29
itcfan 发表于 2014-6-6 20:43
晕,怎么会下载到PHP,附件传上来了。

解决了,太感谢你了
作者: xt001118    时间: 2014-6-6 22:29
mzhb1987 发表于 2014-6-6 17:06
你要实现啥效果?

隐藏任务栏图标




欢迎光临 TC官方合作论坛 (http://bbs.52tc.co/) Powered by Discuz! X3.1