Jump to content

Script doesnt work on Macromedia Flash Game?


Recommended Posts

The script works fine on notepad. But when I try the script on the Flash game, the mouseclick part in the beginning works but the "send" commands don't work. Anyone know why this is happening, or how to fix it?

MouseClick("left", 495, 290)

Sleep(1500)

MouseClick("left", 510, 430)

Sleep(4000)

AutoItSetOption("SendKeyDelay", 400)

Send("{ASC 118}")

Send("{ASC 118}")

Sleep(1000)

AutoItSetOption("SendKeyDelay", 0)

HotKeySet("x", "xc")

HotKeySet("c", "cv")

HotKeySet("v", "vb")

HotKeySet("b", "bn")

HotKeySet("n", "nm")

While 1

Sleep(10)

WEnd

Exit

; Function xc

Func xc()

While 1

Send("{ASC 120}")

Send("{ASC 99}")

Wend

EndFunc

; Function cv

Func cv()

While 1

Send("{ASC 99}")

Send("{ASC 118}")

Wend

EndFunc

; Function vb

Func vb()

While 1

Send("{ASC 118}")

Send("{ASC 98}")

Wend

EndFunc

; Function bn

Func bn()

While 1

Send("{ASC 98}")

Send("{ASC 110}")

Wend

EndFunc

; Function nm

Func nm()

While 1

Send("{ASC 110}")

Send("{ASC 109}")

Wend

EndFunc

Edited by Andrew Chen
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...