Go Back   > Race War Kingdoms Forums > RWK Related Discussion > Game Discussion

Reply
 
Thread Tools Display Modes

AutoHotKey Script (Should work with new browsers)
Old 12-01-2019, 09:29 PM   #1
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default AutoHotKey Script (Should work with new browsers)

Download AutoHotKey (google it)
Copy this script and change names to what you want.

Format

*:: * = hotkey
Send = sends text
Win Things = Window controls
Always end with a return

Never use a hotkey, to send a hotkey ie,

NEVER
i::
Send, i

(will infinite loop)

SAVE YOUR SCRIPT AS AN .AHK and then double click on it to activate it. You will have to rightclick on the desktop icon (system tray) to stop it,



w::
WinActivate, Anubis - Mozilla Firefox
WinWaitActive, Anubis - Mozilla Firefox
Send, {Up}
WinActivate, Forsaken - Mozilla Firefox
WinWaitActive, Forsaken - Mozilla Firefox
Send, {Up}
return

d::
WinActivate, Anubis - Mozilla Firefox
WinWaitActive, Anubis - Mozilla Firefox
Send, {Right}
WinActivate, Forsaken - Mozilla Firefox
WinWaitActive, Forsaken - Mozilla Firefox
Send, {Right}
return

a::
WinActivate, Anubis - Mozilla Firefox
WinWaitActive, Anubis - Mozilla Firefox
Send, {Left}
WinActivate, Forsaken - Mozilla Firefox
WinWaitActive, Forsaken - Mozilla Firefox
Send, {Left}
return

s::
WinActivate, Anubis - Mozilla Firefox
WinWaitActive, Anubis - Mozilla Firefox
Send, {Down}
WinActivate, Forsaken - Mozilla Firefox
WinWaitActive, Forsaken - Mozilla Firefox
Send, {Down}
return

q::
WinActivate, Anubis - Mozilla Firefox
WinWaitActive, Anubis - Mozilla Firefox
Send, 1
WinActivate, Forsaken - Mozilla Firefox
WinWaitActive, Forsaken - Mozilla Firefox
Send, 1
return

e::
WinActivate, Anubis - Mozilla Firefox
WinWaitActive, Anubis - Mozilla Firefox
Send, 1
WinActivate, Forsaken - Mozilla Firefox
WinWaitActive, Forsaken - Mozilla Firefox
Send, 1
return
  Reply With Quote

Old 12-01-2019, 09:45 PM   #2
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default

Ask any questions here Ill try to answer so people can see them
  Reply With Quote

Old 12-01-2019, 10:40 PM   #3
Neophyte
 
NotAemnesia is offline
Join Date: Dec 2019
Posts: 1
Default

OK, so I've got this working. However, the old version worked a bit faster because button presses happened simultaneously between windows. In this version, it takes a bit for it to register between multiple windows. Here's what my script looks like:

F::
WinActivate, Aemnesia - Mozilla Firefox
WinWaitActive, Aemnesia - Mozilla Firefox
Send, F
WinActivate, Almahest - Mozilla Firefox
WinWaitActive, Almahest - Mozilla Firefox
Send, F
return

A::
WinActivate, Aemnesia - Mozilla Firefox
WinWaitActive, Aemnesia - Mozilla Firefox
Send, A
WinActivate, Almahest - Mozilla Firefox
WinWaitActive, Almahest - Mozilla Firefox
Send, A
return

T::
WinActivate, Aemnesia - Mozilla Firefox
WinWaitActive, Aemnesia - Mozilla Firefox
Send, T
WinActivate, Almahest - Mozilla Firefox
WinWaitActive, Almahest - Mozilla Firefox
Send, T
return
  Reply With Quote

Old 12-02-2019, 06:46 AM   #4
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default

Yeah i noticed its slower as well, im trying to see if there is a way i can get it to speed up.
  Reply With Quote

Old 12-02-2019, 11:43 AM   #5
Administrator
 
Glitchless's Avatar
 
Glitchless is offline
Join Date: May 2008
Posts: 321
Default

Just to verify, these are ok because they are activated with 1 action and only send 1 action to each character with no logic. Anything more would be illegal. If you have anything reading data off the screen and changing actions based on that or any other information, you will be banned when caught using it.
__________________
Computing the probability that at least one of the following events will occur:
P(a or b ... or z) = 1 - P(!a and !b ... and !z)
Probability
  Reply With Quote

Old 12-02-2019, 03:01 PM   #6
Boss Hunter
 
Anubis is offline
Join Date: Jul 2016
Posts: 378
Default

Thanks Jeff.
  Reply With Quote
Reply



All times are GMT -5. The time now is 07:50 PM
Boards live since 05-21-2008