Jump to content

Set focus to an application


Recommended Posts

I am making a tool for maplestory. Something that just moves for me yet it wont work.

WinSetState("MapleStory", "", @SW_MAXIMIZE)


    $Loop = 1
    While $Loop
        sleep(10000)
        Send("{LEFT}")
    sleep(10000)
    Send("{RIGHT}");
    Wend

I am trying to set focus to maplestory

then have it move right and left every 10 seconds. It is not working and I need help :D

Link to comment
Share on other sites

Look at the help file...

This request reminds me of an old app I made..

;;MS\focus.au3
while 1 == 1
    If WinActive( "MapleStory" ) == 0 Then
        WinActivate( "MapleStory" )
    EndIf
WEnd

According to the filetime, the last time I used this was the 24th of September, 2005.

#)

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...