按键精灵改个后台运行喊话的脚本,在一个窗口运行之后就可以做其他事那种 这是我的脚本
For16959SetSimMode0KeyDown17,1KeyPress86,1KeyUp17,1KeyPress"Enter",1Delay10000Next===...
For 16959
SetSimMode 0
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
KeyPress "Enter", 1
Delay 10000
Next
======================
有高手改好把脚本发来最好,Q68347815@qq。com,有追分 展开
SetSimMode 0
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
KeyPress "Enter", 1
Delay 10000
Next
======================
有高手改好把脚本发来最好,Q68347815@qq。com,有追分 展开
1个回答
展开全部
按键精灵不支持后台组合键,游戏里面喊话好像是只要按enter键就可以了吧?不懂你为什么要加ctrl键,如果是组合键只支持半后台(也就是你可以去做别的事情如:聊Q,上网,看电影,但是游戏窗口不能最小化),两种代码我都写给你吧
第一种:
UserVar str1="你要喊的话 1" ""
UserVar str2="你要喊的话 2" ""
UserVar Yanshi="180000" ""//延迟时间设置
Hwnd = Plugin.Window.MousePoint()//获取游戏窗口句柄
SetSimMode 0
Delay 500
Rem go
Call Plugin.Window.SendString(Hwnd, str1)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay Yanshi
Call Plugin.Window.SendString(Hwnd, str2)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay Yanshi
//等待100秒后,进行下一轮叫卖
For 2
Delay 50000
Next
Goto go
第二种:(要按ctrl键的喊话,只支持半后台)
UserVar str1="你要喊的话 1" ""
UserVar str2="你要喊的话 2" ""
UserVar Yanshi="180000" ""//延迟时间设置
Hwnd = Plugin.Window.MousePoint()//获取游戏窗口句柄
SetSimMode 0
Delay 500
Rem go
Call Plugin.Window.SendString(Hwnd, str1)
Call Plugin.Bkgnd.KeyDown(Hwnd, 17)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Call Plugin.Bkgnd.KeyUp(Hwnd, 65)
Delay Yanshi
Call Plugin.Window.SendString(Hwnd, str2)
Call Plugin.Bkgnd.KeyDown(Hwnd, 17)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Call Plugin.Bkgnd.KeyUp(Hwnd, 65)
Delay Yanshi
//等待100秒后,进行下一轮叫卖
For 2
Delay 50000
Next
Goto go
第一种:
UserVar str1="你要喊的话 1" ""
UserVar str2="你要喊的话 2" ""
UserVar Yanshi="180000" ""//延迟时间设置
Hwnd = Plugin.Window.MousePoint()//获取游戏窗口句柄
SetSimMode 0
Delay 500
Rem go
Call Plugin.Window.SendString(Hwnd, str1)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay Yanshi
Call Plugin.Window.SendString(Hwnd, str2)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Delay Yanshi
//等待100秒后,进行下一轮叫卖
For 2
Delay 50000
Next
Goto go
第二种:(要按ctrl键的喊话,只支持半后台)
UserVar str1="你要喊的话 1" ""
UserVar str2="你要喊的话 2" ""
UserVar Yanshi="180000" ""//延迟时间设置
Hwnd = Plugin.Window.MousePoint()//获取游戏窗口句柄
SetSimMode 0
Delay 500
Rem go
Call Plugin.Window.SendString(Hwnd, str1)
Call Plugin.Bkgnd.KeyDown(Hwnd, 17)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Call Plugin.Bkgnd.KeyUp(Hwnd, 65)
Delay Yanshi
Call Plugin.Window.SendString(Hwnd, str2)
Call Plugin.Bkgnd.KeyDown(Hwnd, 17)
Call Plugin.Bkgnd.KeyPress(Hwnd,13)
Call Plugin.Bkgnd.KeyUp(Hwnd, 65)
Delay Yanshi
//等待100秒后,进行下一轮叫卖
For 2
Delay 50000
Next
Goto go
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询