Jump to content

Recommended Posts

Guest spaceroy
Posted

Helow :-)

I made a simple script to help me afk in mu online (www.muonline.com)

it does not work in game. i can turn it on and off when in game with the '

symbol (like the script says).

But Mu never registers anything... strange

it works with half-life 2 and other stuff with no problems.

it seems the script is not emulating the keystrokes propely :-(

---------------------------------------------------------

Global $togg

HotKeySet("'", "Toggle")

While 1

Sleep(100)

WEnd

Func Toggle()

$togg = NOT $togg

While $togg

MouseClick("right")

sleep(1000)

Send ("{SPACE}")

WEnd

EndFunc

----------------------------------------------------------

Posted

I know nothing about games but it may be worth using ControlSend instead of Send.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Guest spaceroy
Posted

I know nothing about games but it may be worth using ControlSend instead of Send.

Oooo, send goes to active window.

hmmmm isnt there anyway of sending keystrokes and mouseclicks to system as if it was genuine keystrokes?

Guest spaceroy
Posted

Damn, I started out trying to make a prog in delphi but i got the same prob there.

So If I understand correctly autoit falls short here?

Hmmmm, guess I have to dig deeper in delphi.

Posted

Welcome to the forums!

Try placing this near the start of your script:

opt("sendKeyDownDelay", 50)

Does this work any better for you?

  • 1 year later...

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
  • Recently Browsing   0 members

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