 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
hardcore
Joined: 11 May 2008 Posts: 1
|
Posted: Sun May 11, 2008 8:18 am Post subject: Ragnarok Online |
|
|
Heya, ok i made this short code so it would press Insert a couple of times every ten seconds. I want it so that it would still press the insert buttons ingame even though i have another window active, ie. firefox. is that possible? i tried using ifwinactive but failed miserably. lol
| Code: |
]::
IfWinActive //My ragnarok server censored
{
settimer, sendkey, 10000
}
return
\::
settimer, sendkey, off
return
sendkey:
{
send, {Insert}
sleep 100
send, {Insert}
}
return |
|
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 23
|
Posted: Sun May 11, 2008 9:21 pm Post subject: |
|
|
Use ControlSend. Also, you don't need brackets for a label.
I believe that your code should look like this:
| Code: | sendkey:
ControlSend, ahk_parent, {insert}, //your ragnarok window
sleep 100
ControlSend, ahk_parent, {insert}, //your ragnarok window
return |
However, I have always had problems making ControlSend/Click work properly, so... Sorry if that doesn't work for you.
And one more thing, when using something like this in a game environment, you might want to randomize the times spent between keypresses so it doesn't look like it's being botted. You may want to read the Gaming Tutorial thread by System Monitor, especially the part about randomization. You wouldn't want to get yourself banned for some simple insert keystrokes, would you?  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|