hi,guys,i wanna do these:
1、from the moment i press space,remap it from 3 to 4,for every 3 senconds
2、while space down,send shift+click once for every 3 senconds
how to do these in ahk?plz help,thank u very much
Search found 6 matches
- 07 Jun 2018, 01:37
- Forum: Ask for Help (v1)
- Topic: how to remap space from 3 to 4 for every 3 second?
- Replies: 0
- Views: 583
- 07 Jun 2018, 01:28
- Forum: 请求帮助
- Topic: 求助:每隔三秒重新设置重映射如何实现?
- Replies: 1
- Views: 4005
求助:每隔三秒重新设置重映射如何实现?
各位大神,我想实现这么一个功能:
从按下space起,每隔三秒,将space轮流重映射为3和4
只要space按下,每隔三秒,发送一次shift+click
请问怎么实现啊
这是我的代码,似乎有无数问题
$space:: {
If v_Enable
func(3)
else
func(4)
}
return
func(key) {
space::key
v_Enable:=!v_Enable
if getkeystate("space", "p") {
send, {shift down}
click
send, {shift up}
}
sleep 3000
return
}
从按下space起,每隔三秒,将space轮流重映射为3和4
只要space按下,每隔三秒,发送一次shift+click
请问怎么实现啊
这是我的代码,似乎有无数问题
$space:: {
If v_Enable
func(3)
else
func(4)
}
return
func(key) {
space::key
v_Enable:=!v_Enable
if getkeystate("space", "p") {
send, {shift down}
click
send, {shift up}
}
sleep 3000
return
}
- 06 Apr 2018, 21:40
- Forum: Gaming Help (v1)
- Topic: How to stop this immediately when I release the botton?
- Replies: 1
- Views: 571
How to stop this immediately when I release the botton?
$C::
SetTimer, F_Break, 500
If GetKeyState("C", "P")
{
Send, 3
Sleep 100
Send, {4 Down}
Sleep, 2100
Send, {4 Up}{Shift Down}
Click
Send, {Shift Up}{4 Down}
Sleep, 2100
Send, {4 Up}
}
return
SetTimer, F_Break, 500
If GetKeyState("C", "P")
{
Send, 3
Sleep 100
Send, {4 Down}
Sleep, 2100
Send, {4 Up}{Shift Down}
Click
Send, {Shift Up}{4 Down}
Sleep, 2100
Send, {4 Up}
}
return
- 03 Apr 2018, 01:14
- Forum: Gaming Help (v1)
- Topic: How to pause script while diablo is not the active window?
- Replies: 1
- Views: 690
How to pause script while diablo is not the active window?
how to combine "#ifwinnotactive" and "pause"?
- 24 Mar 2018, 21:09
- Forum: Ask for Help (v1)
- Topic: how to combining two Conditional statements in while-loop? Topic is solved
- Replies: 2
- Views: 847
Re: how to combining two Conditional statements in while-loop? Topic is solved
thank u very muchswagfag wrote:Code: Select all
while (WinActive("Diablo III") && GetKeyState("C", "P")) { doStuff() }
- 24 Mar 2018, 06:26
- Forum: Ask for Help (v1)
- Topic: how to combining two Conditional statements in while-loop? Topic is solved
- Replies: 2
- Views: 847
how to combining two Conditional statements in while-loop? Topic is solved
I wanna do while{} when WinActive("Diablo Ⅲ") and GetKeyState("C", "P") are both ture.
Is "while WinActive("Diablo Ⅲ")&&GetKeyState("C", "P") ; {}return" legal ?
Is "while WinActive("Diablo Ⅲ")&&GetKeyState("C", "P") ; {}return" legal ?