Entkalker Posted April 7, 2016 Share Posted April 7, 2016 Hi I wann to Program a random Generator of 5 Different buttons which i want to click with the left mouse Button. Im sorry if the question already exist Thank for all answers Link to comment Share on other sites More sharing options...
Developers Jos Posted April 8, 2016 Developers Share Posted April 8, 2016 Welcome, 9 hours ago, Entkalker said: Im sorry if the question already exist Not sure what you mean as you haven't really asked any question. So what is it you want to automate and what is the question you have? 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...
Entkalker Posted April 8, 2016 Author Share Posted April 8, 2016 i have 5 buttons on a program which i want to click in a random way. Button 1 (256, 562) Button 2 (603, 561) Button 3 (958, 559) Button 4 (256, 742) Button 5(958, 769) everytime i start the program it should take a button in a random generator. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 8, 2016 Developers Share Posted April 8, 2016 Ok, ... but my previous answer is still valid as you haven't asked any question yet and not told is what you are automating. I hope you are not expecting people to start building something for you now! 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...
Entkalker Posted April 8, 2016 Author Share Posted April 8, 2016 I want to automate a VPN browsing of my websites Link to comment Share on other sites More sharing options...
Developers Jos Posted April 8, 2016 Developers Share Posted April 8, 2016 Sorry for my persistence here, but you are not making much sense when I combine your last post with the random mouse clicking. Either way, start your research here in the forum and the AutoIt3 Helpfile and let us know when you have a specific questions on the thing your are trying. Also show the code you have tried and isn't working. While you're at it: Also take a couple of minutes to read our forumrules. 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...
Entkalker Posted April 8, 2016 Author Share Posted April 8, 2016 here i have an example of my try with only 2 buttons $param = "{57,237| 59,446}" MouseClick("left"(,$param)) Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 8, 2016 Moderators Share Posted April 8, 2016 I guess I am having the same problem as Jos - if you state the script is for testing browsing of your websites through a VPN, then random mouse clicks seems to be completely counter intuitive to achieving this goal. Can you please explain, in detail, step by step what you're trying to accomplish, rather than forcing us to guess? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Entkalker Posted April 9, 2016 Author Share Posted April 9, 2016 I want to Start on HMA VPN Software to connect to a VPN There I have Radio Buttons which connect for example to New York or Las Vegas. I want that the Software randomly to a City. After that IT Should browse my sites Link to comment Share on other sites More sharing options...
Entkalker Posted April 9, 2016 Author Share Posted April 9, 2016 What I want what the Software should Do is to decide automatically beween given parameters of the x and y axes like pos.1 (100, 100) pos.2 (200, 200) and pos. 3 (300,300) and in the taken pos the Software should Do a left mouse click Link to comment Share on other sites More sharing options...
Developers Jos Posted April 9, 2016 Developers Share Posted April 9, 2016 (edited) 22 hours ago, Jos said: Either way, start your research here in the forum and the AutoIt3 Helpfile and let us know when you have a specific questions on the thing your are trying. Also show the code you have tried and isn't working. So what have you done yet that you are having issues with? Edited April 9, 2016 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...
Entkalker Posted April 9, 2016 Author Share Posted April 9, 2016 MouseClick("left",1917, 1058) ;show desktop MouseClick("left",150, 1063) ;open hide my ass software Sleep (500) MouseClick("left",135, 219) ;goto country selection Sleep (1000) ;this mouseclick should click in automate way one of the following im new to the topic and i dont know which command i can use for this MouseClick("left",255,799) ;connecticut trumbull ;Or MouseClick("left",604,739);california orange county ;Or MouseClick("left",606,708);california los angelos ;Or MouseClick("left",956,680) ;arizona phoenix ;and here the normal way should go on Link to comment Share on other sites More sharing options...
JohnOne Posted April 9, 2016 Share Posted April 9, 2016 (edited) Look at this... Local $aArrayOfMouseClickCoordinates[4][2] $aArrayOfMouseClickCoordinates[0][0] = 255 $aArrayOfMouseClickCoordinates[0][1] = 799 $aArrayOfMouseClickCoordinates[1][0] = 604 $aArrayOfMouseClickCoordinates[1][1] = 739 $aArrayOfMouseClickCoordinates[2][0] = 606 $aArrayOfMouseClickCoordinates[2][1] = 708 $aArrayOfMouseClickCoordinates[3][0] = 956 $aArrayOfMouseClickCoordinates[3][1] = 680 $iRandom = Random(0, 3, 1); 0 - 3 MouseClick("Primary", $aArrayOfMouseClickCoordinates[$iRandom][0], $aArrayOfMouseClickCoordinates[$iRandom][1]) Try to figure out what is going on, by using help file, before you ask any further questions. Edited April 9, 2016 by JohnOne Entkalker 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Entkalker Posted April 10, 2016 Author Share Posted April 10, 2016 thank you for the script do you have a instruction how that script work because i need up to 10 variables the next coordinate would be $aArrayOfMouseClickCoordinates[4][0] = 400 $aArrayOfMouseClickCoordinates[4][1] = 400 and so on? but then i need to change/ add worth in the first row and in the random row? Is that right? You are amazing Link to comment Share on other sites More sharing options...
JohnOne Posted April 10, 2016 Share Posted April 10, 2016 Yes $HowManyIneed = 10 Local $aArrayOfMouseClickCoordinates[$HowManyIneed][2] $Random = Random(0, $HowManyIneed -1, 1) Entkalker 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Entkalker Posted April 10, 2016 Author Share Posted April 10, 2016 Thank you for your help Everything works like i thought The Thread can be closed 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