Jump to content

Random Generator mouseclick


Recommended Posts

  • Developers

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

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

  • Developers

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

  • Developers

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

  • Moderators

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

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

  • Developers
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 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

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

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 by JohnOne

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

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

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