x2ruff4u Posted August 29, 2006 Posted August 29, 2006 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
x2ruff4u Posted August 29, 2006 Author Posted August 29, 2006 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
dandymcgee Posted August 29, 2006 Posted August 29, 2006 HotKeySet("{ESC}", "quit") While 1 WinWaitActive("MapleStory") ControlSend("MapleStory", "", "PUT CONTROL ID HERE", "m") Sleep(2000) WEnd Func quit() Exit EndFunc PUT CONTROL ID HERE: use autoit window info and put in the control ID of what you are sending "m" to. - Dan [Website]
x2ruff4u Posted August 29, 2006 Author Posted August 29, 2006 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
Moderators SmOke_N Posted August 30, 2006 Moderators Posted August 30, 2006 HotKeySet("{ESC}", "quit") While 1 If WinExists("MapleStory")) Then _ ControlSend("MapleStory", "", "", "m") Sleep(2000) WEnd Func quit() Exit EndFuncTry that. 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.
spyrorocks Posted August 30, 2006 Posted August 30, 2006 Isent maplestory online-based? if it is like i think then you shoudlent be able to just send stuff to the controls. [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center]
Moderators SmOke_N Posted August 30, 2006 Moderators Posted August 30, 2006 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! 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.
x2ruff4u Posted August 30, 2006 Author Posted August 30, 2006 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 gotHotKeySet("{ESC}", "quit")While 1 If WinExists("Clone of Windows XP Professional")) Then _ ControlSend("Clone of Windows XP Professional", "", "", "m") Sleep(2000)WEndFunc quit() ExitEndFuncGives me line 16 Error for... If ERROR error unbalanced brackets in expression
BigDod Posted August 30, 2006 Posted August 30, 2006 If WinExists("Clone of Windows XP Professional") Then _ You had one ) too many 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
x2ruff4u Posted September 4, 2006 Author Posted September 4, 2006 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
Moderators SmOke_N Posted September 4, 2006 Moderators Posted September 4, 2006 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. 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.
x2ruff4u Posted September 4, 2006 Author Posted September 4, 2006 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?
dandymcgee Posted September 4, 2006 Posted September 4, 2006 (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 Edited September 4, 2006 by dandymcgee - Dan [Website]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now