Sign in to follow this  
Followers 0
Storm

Macro not working under Vista/7 for Ragnarok Online

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Is the game run with "administrator privileges"? If so, while the game has focus, Windows won't allow applications with limited permissions manipulate / automate the administrator application.

Fire the line

#RequireAdmin

at the top of your script.

Share this post


Link to post
Share on other sites

Thanks a lot mate.

This fixed my problem. ;)

Share this post


Link to post
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
Sign in to follow this  
Followers 0