Sign in to follow this  
Followers 0
x2ruff4u

Help with my script

14 posts in this topic

HotKeySet("{ESC}", "quit")

While 1

WinWaitActive("MapleStory")

Send ("m")

Sleep(2000)

WEnd

Func quit()

Exit

EndFunc

Ok i got this setuped for me, on that window....Ok what i want to do is keep it on that window still, because i like to switch windows doing other stuff, how can i keep it still targeted on that window

Share this post


Link to post
Share on other sites



soooooo, is there a way to do that while its open on the desktop still or minimized also and what script, would i use and how do i put it in my script lol thnx

Share this post


Link to post
Share on other sites

what do u mean by the control id?? Like were is that located sry, im new still, tryin gmy hardest not to ask to many questions

Share this post


Link to post
Share on other sites

bump lol..

Share this post


Link to post
Share on other sites

HotKeySet("{ESC}", "quit")

While 1
    If WinExists("MapleStory")) Then _
            ControlSend("MapleStory", "", "", "m")
    Sleep(2000)
WEnd

Func quit()
    Exit
EndFunc
Try that.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Isent maplestory online-based? if it is like i think then you shoudlent be able to just send stuff to the controls.

You would know that better than I... If it looks like a duck and quacks like a duck then it ain't no armadillo!

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

well yah that is true, but i just put that as an example, im runing this in vmware and it alrdy worked for me, I just wannt it be mimized or moved to the side so i can do other stuff. heres wut i got

HotKeySet("{ESC}", "quit")

While 1

If WinExists("Clone of Windows XP Professional")) Then _

ControlSend("Clone of Windows XP Professional", "", "", "m")

Sleep(2000)

WEnd

Func quit()

Exit

EndFunc

Gives me line 16 Error for... If ERROR error unbalanced brackets in expression

Share this post


Link to post
Share on other sites

If WinExists("Clone of Windows XP Professional") Then _

You had one ) too many



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

ok sry been away i didnt get to work yet cuz i dont know were to find my control id...lol.. were is it and thnx in advance

Share this post


Link to post
Share on other sites

That couldn't be further than the truth!!

You've admitted that you have a "script" an your trying to run it from VMWare, and you're running into problems... So either post the script, and a detailed description of your problem, or find another language that won't ask so much and give un-neccessary answers.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

HotKeySet("{ESC}", "quit")

While 1

If WinExists("Untitled - Notepad") Then _

ControlSend("Untitled - Notepad", "", "15", "m")

Sleep(2000)

WEnd

Func quit()

Exit

EndFunc

ok i did a test for notepad that dont work how come?

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

x2ruff4u - Ok, There a couple of problems with this script. First of all, you don't need the underscore "_" after Then. Secondly, you must have an EndIf statement after the sleep line. Lastly, in controlsend, you must remove the Quotations "" from around the 15, these are confusing the AutoIt program as to where you want the data sent to. Oh yeah, try to put tabs in your code(indent) it makes it much easier to read. This is how it should look:

HotKeySet("{ESC}", "quit")


While 1
    If WinExists("Untitled - Notepad") Then
        ControlSend("Untitled - Notepad", "", 15, "m")
        Sleep(2000)
    EndIf
WEnd

Func quit()
    Exit
EndFunc

Just be careful when you make your Maple Story program, not to make these simple mistakes, because as simple as they may be, they can completely mess up your program.

EDIT: It also help if you use autoit tags to show your code :P

Edited by dandymcgee

- Dan [Website]

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