left click on specific points in screen every second.

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
RunX
Newbie
Posts: 5
Joined: Wed May 11, 2005 10:59 am

left click on specific points in screen every second.

Post by RunX » Wed May 11, 2005 11:09 am

hey. im begginer in this software so thats why i ask you here.
hmm...i need the mouse to do left click every second on a specific points. hmm there is a 9 points i need to press left click on it every second (not on the same time but one point after another) but i need to do it fast. hmm i hope someone can help me. :)
thanx :)

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed May 11, 2005 11:49 am

Change x,y coords as necessary. Repeat the two lines for each point that must be clicked on. If necessary add a short delay between each click using the Wait command.

//Point 1
MouseMove>x1,y1
LClick
//Point 2
MouseMove>x2,y2
LClick
//etc etc
MJT Net Support
[email protected]

RunX
Newbie
Posts: 5
Joined: Wed May 11, 2005 10:59 am

Post by RunX » Wed May 11, 2005 12:58 pm

thanx alot.
but if i want to loop it for 5 minutes ? how i do that ?
hmm.. and how i make it press left click every 1 second ?
thanx alot.
RunX.

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed May 11, 2005 1:00 pm

Do you want to click on ALL 9 points every second or do you want to click on each point with a second delay between them?
MJT Net Support
[email protected]

RunX
Newbie
Posts: 5
Joined: Wed May 11, 2005 10:59 am

Post by RunX » Wed May 11, 2005 1:10 pm

i want to press one after another (one by one) with one second delay between this press. and i want to make it loop for 5 minutes.
hehe.. shortly, i want to press each point with a second delay between them?
how i do that ?
btw, thanx alot for helping me. :)

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed May 11, 2005 1:21 pm

A nice, easy way to check for elapsed time is to use VBScript's Timer function which returns the number of seconds elapsed since midnight.

To pause one second between events use the Wait command set to 1 second. So between each MouseMove/LClick we use Wait>1. Modify each MouseMove for the specific pixel positions you require.

//Tell script we want to use some VBScript
VBSTART
VBEND

//start is number seconds since midnight
VBEval>Timer,start

//end time will be start + 300 (300 secs = 5 mins)
Let>endtime=start+300

//start of loop
Label>start

MouseMove>x1,y1
LClick
Wait>1

MouseMove>x2,y2
LClick
Wait>1

MouseMove>x3,y3
LClick
Wait>1

MouseMove>x4,y4
LClick
Wait>1

MouseMove>x5,y5
LClick
Wait>1

MouseMove>x6,y6
LClick
Wait>1

MouseMove>x7,y7
LClick
Wait>1

MouseMove>x8,y8
LClick
Wait>1

MouseMove>x9,y9
LClick
Wait>1

//loop back to start if less than 5 mins has elapsed
VBEval>Timer,elapsed
If>elapsed
MJT Net Support
[email protected]

RunX
Newbie
Posts: 5
Joined: Wed May 11, 2005 10:59 am

Post by RunX » Wed May 11, 2005 1:47 pm

thanx alot!!!
hmm... last thing... what should i write here :

//start is number seconds since midnight
VBEval>Timer,start

if i want it to start on 16:00 ?
thanx! :)

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed May 11, 2005 1:49 pm

Hi,

Nothing. If you want to start it at 16:00 schedule the macro under Macro Properties/Run When. Right click on the macro in Macro Scheduler, select Macro Properties from the pop up menu and then select the Run When tab. In here check off all the days you want the macro to run on and enter 16:00 on the Time box.
MJT Net Support
[email protected]

RunX
Newbie
Posts: 5
Joined: Wed May 11, 2005 10:59 am

thanx alot man!

Post by RunX » Thu May 12, 2005 10:35 pm

thanx!!!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts