Jump to content

autoclick within an allowed area question


nick21
 Share

Recommended Posts

If I want it to autoclick left a selected area how would I go about doing that.

For example I want it to click this area:

; top left corner
MouseClick ("left",152,130)
; top right corner
MouseClick ("left",796,130)
; bottom right corner
MouseClick ("left",796,620)
; bottom left corner
MouseClick ("left",152, 620)

any help would be great

Thank you,

nick21

Link to comment
Share on other sites

If I want it to autoclick left a selected area how would I go about doing that.

For example I want it to click this area:

; top left corner
MouseClick ("left",152,130)
; top right corner
MouseClick ("left",796,130)
; bottom right corner
MouseClick ("left",796,620)
; bottom left corner
MouseClick ("left",152, 620)

any help would be great

Thank you,

nick21

Just in case you want it to randomly click a bunch of times in a set area then...

Local $Clicks = 0
Do
$Clicks += 1
MouseClick("left", Random(152,796), Random(130,620))
Until $Clicks = 5

I wouldn't have bothered but since it seems you're fairly new I figured this would be a good script because it seems in line with what you'll probably be using AutoIt for in the future.

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