Search found 10 matches

by dirtyacc
13 Nov 2019, 09:37
Forum: Ask for Help (v1)
Topic: Pleas help to fix DDE execute script
Replies: 0
Views: 2659

Pleas help to fix DDE execute script

I want to send command to a DDE server ( AutoCAD 2020, and the server name is AutoCAD.r23.DDE), I am using spy++ and I have successed to initial the connection to the server, but can't get the transcation part right, please help me fix it. My code based on a fair common code, originally by sean get ...
by dirtyacc
20 Oct 2019, 09:18
Forum: 请求帮助
Topic: 模拟鼠标托文件到程序的程序,名字含有中文应该怎么处理 Topic is solved
Replies: 3
Views: 10916

Re: 模拟鼠标托文件到程序的程序,名字含有中文应该怎么处理 Topic is solved

我测试一下,应该是strlen长度的问题。但我不会改,英文字母那个DLLCall长度用Strlen得出来的,中文每个字长度多一倍,所以就不正确了。请前辈指教一下
by dirtyacc
20 Oct 2019, 03:11
Forum: 请求帮助
Topic: 模拟鼠标托文件到程序的程序,名字含有中文应该怎么处理 Topic is solved
Replies: 3
Views: 10916

模拟鼠标托文件到程序的程序,名字含有中文应该怎么处理 Topic is solved

/* DropFiles: combined from two functions - ideally they should be merged into one "smarter" function but this will do for now. - SKAN - http://www.autohotkey.com/board/topic/41467-make-ahk-drop-files-into-other-applications/#entry258810 - nimda - http://www.autohotkey.com/board/topic/79145-help-co...
by dirtyacc
17 Oct 2019, 01:29
Forum: 请求帮助
Topic: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved
Replies: 6
Views: 19677

Re: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved

fwejifjjwk2 wrote:
16 Oct 2019, 22:38
@dirtyacc
題外話,這段代碼的功能是什麼呢?
这是一段监听窗口生成、切换的代码,很多ahk代码里面都用到,我直接抄的,但是学艺不精遇到问题了。

在那个swithmessage里面可以按不同窗口的生成、切换、关闭做很多工作。
by dirtyacc
16 Oct 2019, 09:11
Forum: 请求帮助
Topic: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved
Replies: 6
Views: 19677

Re: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved

但如果先放settimer,后面的监听就不会生效了 你忘记贴出代码了。我把你英文板块的 帖子 的代码转过来吧: ReloadTimer := % 1000*5 ;reload timer Gosub,AutoReloadInit AutoReloadInit: SetTimer, SelfReload, % ReloadTimer return SelfReload: MsgBox, TEST reload return Gui +LastFound hWnd:=WinExist() DllCall("RegisterShellHookWindow", UInt,hWnd) MsgNum:=...
by dirtyacc
16 Oct 2019, 07:27
Forum: 请求帮助
Topic: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved
Replies: 6
Views: 19677

Re: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved

直接这两行也会导致 MsgBox 不会被执行: Return Msgbox, TEST Return 就是“返回”的意思,它会使脚本停止往下执行。解决方法应该不用我多说了吧。 Gui +LastFound hWnd:=WinExist() DllCall("RegisterShellHookWindow", UInt,hWnd) MsgNum:=DllCall("RegisterWindowMessage", Str,"SHELLHOOK") OnMessage(MsgNum, "SwitchMessage") HSHELL_WINDOWCREATED:=1 SwitchMessage( w...
by dirtyacc
16 Oct 2019, 05:28
Forum: Ask for Help (v1)
Topic: code not running after I register a shell hook
Replies: 3
Views: 795

Re: code not running after I register a shell hook

I don't think it has to do with the hook, but msgbox, TEST is unreachable code because of the return above it... just remove the return . gosh. you're right. But I still got problem: Gui +LastFound hWnd:=WinExist() DllCall("RegisterShellHookWindow", UInt,hWnd) MsgNum:=DllCall("RegisterWindowMessage...
by dirtyacc
16 Oct 2019, 01:27
Forum: 请求帮助
Topic: 监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved
Replies: 6
Views: 19677

监听系统消息后很多函数都不运行啊,怎么解决 Topic is solved

Gui +LastFound hWnd:=WinExist() DllCall("RegisterShellHookWindow", UInt,hWnd) MsgNum:=DllCall("RegisterWindowMessage", Str,"SHELLHOOK") OnMessage(MsgNum, "SwitchMessage") HSHELL_WINDOWCREATED:=1 Return Msgbox, TEST 我用这个很多地方都能找到的代码来监听系统消息,但我发现在这代码之后,很多代码不运行好像没效果一样,比如这里的Msgbox, TEST 都不会弹出来,应该怎么解决呢?我原...
by dirtyacc
16 Oct 2019, 01:24
Forum: Ask for Help (v1)
Topic: code not running after I register a shell hook
Replies: 3
Views: 795

code not running after I register a shell hook

Gui +LastFound hWnd:=WinExist() DllCall("RegisterShellHookWindow", UInt,hWnd) MsgNum:=DllCall("RegisterWindowMessage", Str,"SHELLHOOK") OnMessage(MsgNum, "SwitchMessage") HSHELL_WINDOWCREATED:=1 Return msgbox, TEST I used the above codes to hook the shell message, but I found the many code after th...

Go to advanced search