qwee Posted April 25, 2009 Share Posted April 25, 2009 Hey!Going for a new bot, 100% coded. Wont copy-paste this time!What I need is: (A picture says more then 1000 words)If Character=5 then the bot gonna use 513,142 as coords for mouseclick. If Character=1 then the bot gonna use 251,317 as coords for mouseclick.That's all for now, making a new thread with more questions when I'm gettin' started with this bot!Thanks in advance Link to comment Share on other sites More sharing options...
Developers Jos Posted April 25, 2009 Developers Share Posted April 25, 2009 (edited) Hey!Going for a new bot, 100% coded. Wont copy-paste this time!What I need is: (A picture says more then 1000 words)If Character=5 then the bot gonna use 513,142 as coords for mouseclick. If Character=1 then the bot gonna use 251,317 as coords for mouseclick.That's all for now, making a new thread with more questions when I'm gettin' started with this bot!Thanks in advance Start coding and come back when you have AutoIt3 questions.Oh... and no rush.. we have all the time in the world.Jos Edited April 25, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
qwee Posted April 25, 2009 Author Share Posted April 25, 2009 Start coding and come back when you have AutoIt3 questions.Oh... and no rush.. we have all the time in the world.JosIt's a AutoIt3 question... Link to comment Share on other sites More sharing options...
Developers Jos Posted April 25, 2009 Developers Share Posted April 25, 2009 (edited) No it is not: It is a "code me a script" question, not "help me with a problem I have with my script" question. and especially the part where you state "Need help asap!" is ridiculous. Edited April 25, 2009 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Qousio Posted April 25, 2009 Share Posted April 25, 2009 It's a AutoIt3 question... Seriously did you ever read the helpfile? Did you search? These questions are so... so.... simple, you could even guess how you should do it without learning the autoit syntax. Anyway what you need is: Use "IniRead" to read the ini. Use String commands to trim the "Character=" part Use If $Array=1 then ControlClick ( "title", "text", controlID [, button [, clicks [, 251 [, 317 ]]]] ) EndIf if $Array=5 Then ControlClick ( "title", "text", controlID [, button [, clicks [, 513 [, 142 ]]]] ) EndIf Obviously $Array = Your String command used Link to comment Share on other sites More sharing options...
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