Jump to content

Macro not working under Vista/7 for Ragnarok Online


Storm
 Share

Recommended Posts

Hi,

I made a macro for myself a while ago for use with Ragnarok Online.

It works just as I want under windows xp, but under windows vista or 7, I cant even use the hotkey to start the macro.

The macro will definitely work outside of the game, but inside the game, it is as if any keys I send are not even registering. Anything I press just doesn't reach the program.

Though, I don't think you need the code, but here it is anyway.

HotKeySet("{pgup}", "Start")
HotKeySet("{pgdn}", "Pause")
Opt("SendKeyDelay", 1)

While 1
Sleep(5000)
WEnd

Func Pause()
While 1
Sleep(5000)
WEnd
EndFunc

Func Start()
HotKeySet("{1}", "one")
HotKeySet("{2}", "two")
HotKeySet("{3}", "three")
HotKeySet("{4}", "four")
HotKeySet("{5}", "five")
HotKeySet("{6}", "six")
HotKeySet("{7}", "seven")
HotKeySet("{8}", "eight")
HotKeySet("{9}", "nine")
HotKeySet("{`}", "tilde")
HotKeySet("{N}", "N")
HotKeySet("{M}", "M")

While 1
Sleep(5000)
WEnd
EndFunc

Func one()
send ("{F12}{F1}{F12}{F12}")
Start()
EndFunc

Func two()
send ("{F12}{F2}{F12}{F12}")
Start()
EndFunc

Func three()
send ("{F12}{F3}{F12}{F12}")
Start()
EndFunc

Func four()
send ("{F12}{F4}{F12}{F12}")
Start()
EndFunc

Func five()
send ("{F12}{F5}{F12}{F12}")
Start()
EndFunc

Func six()
send ("{F12}{F6}{F12}{F12}")
Start()
EndFunc

Func seven()
send ("{F12}{F7}{F12}{F12}")
Start()
EndFunc

Func eight()
send ("{F12}{F8}{F12}{F12}")
Start()
EndFunc

Func nine()
send ("{F12}{F9}{F12}{F12}")
Start()
EndFunc

Func tilde()
send ("{F5}")
MouseClick("primary")
Start()
EndFunc

Func N()
send ("{N}")
MouseClick("primary")
send ("{F}")
Start()
EndFunc

Func M()
send ("{M}")
MouseClick("primary")
send ("{F}")
Start()
EndFunc

I have to use windows xp just because this is one game I play a lot, and would rather use my macro with it to make it easier for me.

P.S. This macro isn't considered cheating on the server I play on, just in case this matters.

Edited by Storm
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...