eaasy hotkey script please help
Posted: 23 Sep 2017, 11:16
I want to make script that press spacebar and e button when i press n
Let's help each other out
https://www.autohotkey.com/boards/
https://www.autohotkey.com/boards/viewtopic.php?f=18&t=37398
Code: Select all
n:: ;hotkey, in this case n
send {space}e ;send characters, note, only special keys must be enclosed in braces
return ;return script to idle
f8::exitapp ;press f8 to close program
;save as SCRIPTNAME.ahk, then run to start script
i had wrote the same but when i push e with shift and w in game, it do nt work,only when it pushed aloneSpawnova wrote:Code: Select all
n:: ;hotkey, in this case n send {space}e ;send characters, note, only special keys must be enclosed in braces return ;return script to idle f8::exitapp ;press f8 to close program ;save as SCRIPTNAME.ahk, then run to start script
You will need to add a wildcard to your hotkey, so that it ignores other modifiersZergShadow wrote:when i push e with shift and w in game, it do nt work,only when it pushed alone
without return it also work.
Code: Select all
*n:: ;hotkey, in this case n, * allows hotkey to work regardless of control/shift/alt being held down
send {space}e ;send characters, note, only special keys must be enclosed in braces
return ;return script to idle
also i need that they work ssame time.Spawnova wrote:You will need to add a wildcard to your hotkey, so that it ignores other modifiersZergShadow wrote:when i push e with shift and w in game, it do nt work,only when it pushed alone
without return it also work.
Code: Select all
*n:: ;hotkey, in this case n, * allows hotkey to work regardless of control/shift/alt being held down send {space}e ;send characters, note, only special keys must be enclosed in braces return ;return script to idle
Hi,ZergShadow wrote:how to make this work same time ? space and e in same moment.
Code: Select all
sendmode,play ;or input
n::
send {space}{e}
return
it dont work without *.yessorryno wrote:Hi,ZergShadow wrote:how to make this work same time ? space and e in same moment.
Code: Select all
sendmode,play ;or input n:: send {space}{e} return
Hi,ZergShadow wrote:it dont work without *.yessorryno wrote:Hi,ZergShadow wrote:how to make this work same time ? space and e in same moment.
Code: Select all
sendmode,play ;or input n:: send {space}{e} return
And with * sometimes it work sometimes not.its sbout gameping?
Code: Select all
sendmode,play ;or input ,To execute in the game, please add this line of code, and vice versa do not need to add.
n::
send {space}{e}
return
yessorryno wrote:Hi,ZergShadow wrote:it dont work without *.yessorryno wrote:Hi,ZergShadow wrote:how to make this work same time ? space and e in same moment.
Code: Select all
sendmode,play ;or input n:: send {space}{e} return
And with * sometimes it work sometimes not.its sbout gameping?Code: Select all
sendmode,play ;or input ,To execute in the game, please add this line of code, and vice versa do not need to add. n:: send {space}{e} return
ZergShadow wrote:yessorryno wrote:Hi,ZergShadow wrote:it dont work without *.yessorryno wrote:Hi,ZergShadow wrote:how to make this work same time ? space and e in same moment.
Code: Select all
sendmode,play ;or input n:: send {space}{e} return
And with * sometimes it work sometimes not.its sbout gameping?Code: Select all
sendmode,play ;or input ,To execute in the game, please add this line of code, and vice versa do not need to add. n:: send {space}{e} return
nothing new in last post.sometimes it works and sometims not only with *
Code: Select all
#Maxthreadsperhotkey 2
N::
If toggle := !Toggle
Loop
{
If toggle
{
Send, {Space}
Sleep, 10
Send, {E}
Sleep, 10
}
Else
break
}
return