看板 EzHotKey 關於我們 聯絡資訊
我使用的是Windows XP SP3; AHK 1.0.47.06 在每次開啟.ahk檔時 AHK都會自動把TweakUI內的"Prevent applications from steal focus"設定取消 不過這讓我使用上增加不少困擾... 常打字到一半就有別的視窗跳出 下面這篇說這是AHK故意的 因為該設定會讓WinActivate "less reliable" http://www.autohotkey.com/forum/viewtopic.php?t=4632 也提供了一個解法: 在.ahk檔內加入 dllcall("SystemParametersInfo", SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, SPIF_SENDCHANGE) 不過我自己試了以後發現沒有用... 我也在AHK的forum發問過 http://www.autohotkey.com/forum/viewtopic.php?t=40013 不過大概是我對於dllcall的使用方法仍不了解吧 在最後TheGood的回文中說需指定argument types 我不知道該指定成什麼type 所以就先猜是unsined integer 改成下面這樣: dllcall("SystemParametersInfo",uint, 8193,uint, 0,uint, 0,uint, 2) 不過依然是沒有作用.... 想問問看版友是否知道我哪個地方寫錯了? 先謝謝大家囉 :) -- To dream the impossible dream To fight the unbeatable foe To bear with unbearable sorrow To run where the brave dare not go -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.161.123.223 ※ 編輯: peter53 來自: 218.161.123.223 (03/01 11:35) ※ 編輯: peter53 來自: 218.161.123.223 (03/01 11:35)