Jump to content
Macro Express Forums

Help Macro Script


Lemonadez
 Share

Recommended Posts

Ok here the thing which I dont get.

 

Repeat Start (Repeat 99999 times)
 Repeat Start (Repeat 9000 times)
   Mouse Left Button Down
     Delay 10 Milliseconds
   Mouse Left Button Up
 Repeat End
 Delay 190 Milliseconds
 Text Type: 1
Repeat End

190+10MS = 200 MS

1,8e6 / 200MS = 9000

 

Here what I want.

1.) I want to click left mouse over and over again [1 MS speed]

2.) Must In every 30mins. It will press 1 key [the 1 key above on Letter Q]

3.) Then I want to keep repeating it over again.

 

But I think my command is wrong. Can anyone help me out.

Link to comment
Share on other sites

This macro will click your mouse 5 times per second and hit the "1" key once every 30 minutes (all times are approximate).

Repeat Until %N1% <> %N1%
 Repeat Start (Repeat 9000 times)
   Mouse Left Button Click
   Delay 200 Milliseconds
 Repeat End
 Text Type: 1
Repeat End


<REP3:08:000002:000002:0001:1:01:N1><REP3:01:000001:000001:09000:0:01:><LCLK><MSD:200><ENDREP><TEXTTYPE:1><ENDREP>

Link to comment
Share on other sites

Can i ask what are the equation..im new :( i want to learn more

 

Repeat Until %N1% <> %N1% [what this do?]

Repeat Start (Repeat 9000 times) [ does this mean it will repeat click 9000x]

Mouse Left Button Click

Delay 200 Milliseconds [this is the speed of clicking mouse] [what if i adjust it to 10 milliseconds? what going to happen..

 

Can this work..

Repeat Until %N1% <> %N1%
Repeat Start (Repeat 9000 times)
  Mouse Left Button Click
  Delay 10 Milliseconds  
Repeat End
Text Type: 1
Repeat End

 

I change the Delay 200MS to 10MS

Link to comment
Share on other sites

The Repeat Until %N1% <> %N1% construct is just my way (and pretty much the whole Macro Express world's way) of generating an infinite loop. N1 will always equals N1 (10 always equals 10, 3 always equals 3, etc) so the loop never rings true, and therefore always loops.

 

The Repeat Start (Repeat 9000 times) command says to loop 9,000 times.

 

The Delay 200 Milliseconds command says to wait 1/5th of a second before looping again. Changing the delay to 10 ms means it will wait for only 1/100th of a second before looping. Which means that your macro will Text Type "1" now every 1-1/2 minutes (90 seconds) instead of 30 (1,800 seconds) minutes.

 

The Delay commands are accurate unto themselves, but in the overall scheme of processor overhead and the time it takes your computer to run a command, they should be considered only as approximations. In other words, I wouldn't use them to re-sequence DNA strands.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...