Jump to content

Why won't this code execute in game


Recommended Posts

I made this simple code for Rose Online where it should send different F-Keys with different delays. It doesn't seem to work in the game, but if i go to notepad for example it works. anyone have any idea why?

WinActivate("Rose Online [Ver. 174]")
while 1
Sleep (10000)
Send("{F2}")
Sleep (200)
Send("{F2}")
Sleep (200)
Send("{F1}")
Sleep (300)
Send("{F3}")
Sleep (1000)
Send("{F4}")
Sleep (200)
WEnd
Link to comment
Share on other sites

I made this simple code for Rose Online where it should send different F-Keys with different delays. It doesn't seem to work in the game, but if i go to notepad for example it works. anyone have any idea why?

WinActivate("Rose Online [Ver. 174]")
while 1
Sleep (10000)
Send("{F2}")
Sleep (200)
Send("{F2}")
Sleep (200)
Send("{F1}")
Sleep (300)
Send("{F3}")
Sleep (1000)
Send("{F4}")
Sleep (200)
WEnd
Some games (Like MapleStory, for example) have people who look around for languages like this, and then block anything that might automate the game or change its values.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

HotKeySet("{HOME}", "Go")
Func Go()
WinActivate("Rose Online [Ver. 174]")
while 1
Sleep (10000)
Send("{F2}")
Sleep (200)
Send("{F2}")
Sleep (200)
Send("{F1}")
Sleep (300)
Send("{F3}")
Sleep (1000)
Send("{F4}")
Sleep (200)
WEnd
EndFunc

Thats my guess

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

I tired the following code and it had the same results. It would correctly open the game up, but it wouldn't cast any skills.

Does the code look correct? Any ideas why it's not working?

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{HOME}", "Go")
;;;; Body of program would go here;;;;
while 1
    Sleep (100)
    WEnd
Func Go()
WinActivate("Rose Online [Ver. 175]")
while 1
Sleep (10000)
Send("{F2}")
Sleep (2000)
Send("{F2}")
Sleep (2000)
Send("{F1}")
Sleep (3000)
Send("{F3}")
Sleep (10000)
Send("{F4}")
Sleep (2000)
WEnd
EndFunc
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMessage()
    MsgBox(4096,"","This is a message.")
EndFunc
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...