展开全部
脚本代码:
UserVar key1=DropList{"无按键":"0"|"`":"192"|"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"|"-":"189"|"=":"187"|"F1":"112"|"F2":"113"|"F3":"114"|"F4":"115"|"F5":"116"|"F6":"117"|"F7":"118"|"F8":"119"|"F9":"120"|"F10":"121"|"F11":"122"|"F12":"123"|"空格":"32"|"回车":"13"|"↑":"38"|"↓":"40"|"←":"37"|"→":"39"} "按键一"
UserVar key2=DropList{"无按键":"0"|"`":"192"|"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"|"-":"189"|"=":"187"|"F1":"112"|"F2":"113"|"F3":"114"|"F4":"115"|"F5":"116"|"F6":"117"|"F7":"118"|"F8":"119"|"F9":"120"|"F10":"121"|"F11":"122"|"F12":"123"|"空格":"32"|"回车":"13"|"↑":"38"|"↓":"40"|"←":"37"|"→":"39"}=0 "按键二"
UserVar key3=DropList{"无按键":"0"|"`":"192"|"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"|"-":"189"|"=":"187"|"F1":"112"|"F2":"113"|"F3":"114"|"F4":"115"|"F5":"116"|"F6":"117"|"F7":"118"|"F8":"119"|"F9":"120"|"F10":"121"|"F11":"122"|"F12":"123"|"空格":"32"|"回车":"13"|"↑":"38"|"↓":"40"|"←":"37"|"→":"39"}=0 "按键三"
UserVar Delay1=30 "一键延时(毫秒)"
UserVar Delay2=30 "二键延时(毫秒)"
UserVar Delay3=30 "三键延时(毫秒)"
hwnd = Plugin.Window.GetKeyFocusWnd()
Rem a
Call Plugin.Window.SendKeyPress(hwnd,key1)
Delay Delay1
Call Plugin.Window.SendKeyPress(hwnd,key2)
Delay Delay2
Call Plugin.Window.SendKeyPress(hwnd,key3)
Delay Delay3
Goto a
需要使用按键精灵8.X版本,自定义的按键我使用的是下拉框选择,设置的是常用的按键,你可以自己添加
UserVar key1=DropList{"无按键":"0"|"`":"192"|"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"|"-":"189"|"=":"187"|"F1":"112"|"F2":"113"|"F3":"114"|"F4":"115"|"F5":"116"|"F6":"117"|"F7":"118"|"F8":"119"|"F9":"120"|"F10":"121"|"F11":"122"|"F12":"123"|"空格":"32"|"回车":"13"|"↑":"38"|"↓":"40"|"←":"37"|"→":"39"} "按键一"
UserVar key2=DropList{"无按键":"0"|"`":"192"|"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"|"-":"189"|"=":"187"|"F1":"112"|"F2":"113"|"F3":"114"|"F4":"115"|"F5":"116"|"F6":"117"|"F7":"118"|"F8":"119"|"F9":"120"|"F10":"121"|"F11":"122"|"F12":"123"|"空格":"32"|"回车":"13"|"↑":"38"|"↓":"40"|"←":"37"|"→":"39"}=0 "按键二"
UserVar key3=DropList{"无按键":"0"|"`":"192"|"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"|"-":"189"|"=":"187"|"F1":"112"|"F2":"113"|"F3":"114"|"F4":"115"|"F5":"116"|"F6":"117"|"F7":"118"|"F8":"119"|"F9":"120"|"F10":"121"|"F11":"122"|"F12":"123"|"空格":"32"|"回车":"13"|"↑":"38"|"↓":"40"|"←":"37"|"→":"39"}=0 "按键三"
UserVar Delay1=30 "一键延时(毫秒)"
UserVar Delay2=30 "二键延时(毫秒)"
UserVar Delay3=30 "三键延时(毫秒)"
hwnd = Plugin.Window.GetKeyFocusWnd()
Rem a
Call Plugin.Window.SendKeyPress(hwnd,key1)
Delay Delay1
Call Plugin.Window.SendKeyPress(hwnd,key2)
Delay Delay2
Call Plugin.Window.SendKeyPress(hwnd,key3)
Delay Delay3
Goto a
需要使用按键精灵8.X版本,自定义的按键我使用的是下拉框选择,设置的是常用的按键,你可以自己添加
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询