Entkalker

Random Generator mouseclick

16 posts in this topic

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

 

Share this post


Link to post
Share on other sites



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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I want to automate a VPN browsing of my websites

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

here i have an example of my try with only 2 buttons

$param = "{57,237| 59,446}"
MouseClick("left"(,$param))

 

Share this post


Link to post
Share on other sites

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?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#11 ·  Posted (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 by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

 

Share this post


Link to post
Share on other sites

#13 ·  Posted (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 by JohnOne
1 person likes this

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

Thank you for your help
Everything works like i thought
The Thread can be closed

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