Sign in to follow this  
Followers 0
c0mplex

Internet Autoit

12 posts in this topic

hey im currently attempting to make a script that:

just clicks on one area of the screen (on the internet), clicks on a second point on the screen and then just repeatedly keeps switching on clicking on the two points on the screens (i have to find out the coordinates on the screen first.

well i think this is an easy script to make, but some suggestions would be greatly appreciated

ok, thanks a lot

Share this post


Link to post
Share on other sites



Have a look at AU3_Spy.exe to determine the positions on in the window.

Helpfile has a good explanation for it...


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

yea i already used the spy window

i have some knowledge in vb but im not too sure how to start my coding off.

this is what i have so far:

MouseClick ( "left" [, 38, 71 [, 1 [, 20 ]]] )

MouseClick ( "left" [, 343, 509 [, 1 [, 20 ]]] )

when i saved it as a .au3 file but when i run it, there is an error.

i am pretty sure that my coding is good for the actual mouse clicking but is there some coding that i should add?

thank you very much

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

remove the brackets:

MouseClick ( "left" , 38, 71 , 1 , 20  )
MouseClick ( "left" , 343, 509 , 1 , 20  )

Brackets mean optional

[optional]

bob(x,y[,z])=

bob(x,y)

or

bob(x,y,z)

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

thanks a lot script kitty

it works fine

i was wondering, how would i add to my script some kind of hotkey

so that when i enter a key on my keyboard the script completely closes?

thanks a lot

Edited by c0mplex

Share this post


Link to post
Share on other sites

While 1
     MouseClick ( "left" , 38, 71 , 1 , 20  )
     MouseClick ( "left" , 343, 509 , 1 , 20  )
WEnd

Share this post


Link to post
Share on other sites

oh ok thanks you very much

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

; Zero evaluates to FALSE and Non-zero evaluates to TRUE

; Code should run until you press Escape

HotKeySet("{Esc}", "Terminate")
While 1
   MouseClick ( "left" , 38, 71 , 1 , 20  )
   MouseClick ( "left" , 343, 509 , 1 , 20  )
   Sleep(100);prevent maxing-out CPU
WEnd

Func Terminate()
   Exit
EndFunc

EDIT: Too slow again :D

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

lol wow beat me to it haha thx :D

Share this post


Link to post
Share on other sites

hmm is there a way to either turn on my script with a hotkey or maybe delay the script for a few seconds when i open it?

Share this post


Link to post
Share on other sites

HotKeySet("{Esc}", "Terminate")
hotkeyset("{pause}","start")
$x=1
while $x=1
sleep(10)
wend

While 1
  MouseClick ( "left" , 38, 71 , 1 , 20  )
  MouseClick ( "left" , 343, 509 , 1 , 20  )
  Sleep(100);prevent maxing-out CPU
WEnd

Func Terminate()
  Exit
EndFunc

func start()
$x=0
endfunc


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

thanks a lot!

that worked perfectly

i really like the function with the pause key

ty :D

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
Sign in to follow this  
Followers 0