It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
low rated
i need a script, preferably in AutoHotKey which does this - when i press a combination of 2 buttons like Ctrl+a, the script starts and it presses F9 and F10, F9 again etc with a time difference of 0.5 seconds in between. if i press Ctrl+a again, the script should stop. can someone give me script hm? i know that AutoHotKey can also compile a script into an exe but if you give me exe without the script itself, i don't trust you!
Ask Alaric as he is trust worthy.
^a
::
If State=50
State=Off
else
State=50
SetTimer SendKey, %State%
Return

SendKey:
Send F10
Sleep, 500
Send F9
Sleep, 500
Return

Did not test.
Post edited February 11, 2017 by LexRoost
Hmmm... Here's a working version. Tested.

[code]

Sendmode, Input
SetKeyDelay, 50, 50
State:="Off"

^a::
If (State != "Off")
State:="Off"
else
State=500
SetTimer SendKey, %State%
Return

SendKey:
if Toggle
Send {F9}
else
Send {F10}
Toggle := !Toggle
Sleep, 500
Return

[/code]
Attachments:
source.png (4 Kb)
Post edited February 11, 2017 by rtcvb32
guys i made a little script myself but it has 2 problems - biggest, sometimes when i ctrl + left click to jump in conquer online while i spam healing potions by script, it acts as if the ctrl key isn't pressed and my character walks in that direction instead of jumping. and the smaller problem is that i have to press "ctrl + d" a couple of times for script to stop. so first i press cltr + a because flag is already 0 and script starts potting, then i press ctrl + d to stop it and if i want to restart, i press ctrl + s and then ctrl + a... here is what i did. i think the script sometimes ignores that i press Control because of the sleep command which i'd like to avoid. i also tried with +a, +d and +s i mean shift + a, etc but it's same problem, my char sometimes walks instead of jump

flag = 0

^a::
loop,
{
if (flag = 1)
{
;flag = 0
;return
exit
}
;send, {F1}
if (flag = 0)
{
send, {F9}
sleep, 100
send, {F10}
sleep, 400
;MouseClick, Left
}
}
return

^s::
flag = 0
return

^d::
flag = 1
;exit
return
Post edited February 11, 2017 by ciomalau
PS man ok? ok.. i tried to "send, {Ctrl}" too not just F9 and F10 and it does the same thing like i'm not pressing ctrl to jump. wtf man.. :-/
guys i think i solved the problem with not being able to jump sometimes. i used this

flag = 0

^a::
loop,
{
if (flag = 1)
{
exit
}
Send, {Control down}
sleep, 200
Send, {Control down}
send, {F9}
Send, {Control down}
sleep, 200
Send, {Control down}
send, {F10}
}
return

^s::
flag = 0
return

^d::
Send, {Control up}
flag = 1
return

now while i pot i can't walk, only jump. but i can still make melee attacks by left click so that's not very bad i think i can live with this (^_^)
That is why I love this forum :-)
Awesome.
avatar
ciomalau: guys i made a little script myself but it has 2 problems - biggest, sometimes when i ctrl + left click to jump in conquer online while i spam healing potions by script, it acts as if the ctrl key isn't pressed and my character walks in that direction instead of jumping. and the smaller problem is that i have to press "ctrl + d" a couple of times for script to stop. so first i press cltr + a because flag is already 0 and script starts potting, then i press ctrl + d to stop it and if i want to restart, i press ctrl + s and then ctrl + a... here is what i did. i think the script sometimes ignores that i press Control because of the sleep command which i'd like to avoid. i also tried with +a, +d and +s i mean shift + a, etc but it's same problem, my char sometimes walks instead of jump
Hmmm... you could program it to detect if the control key is pressed down, and then make the appropriate key calls before restoring the key press state...

Although honestly if you are going to have a toggle or specific key to turn on/off the script, i'd recommend Scroll Lock, as that's more or less a dead key that i find useful for a toggle.