Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Oct 23, 2019 6:30 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help Request
Thanked: 0 time(s)  Unread post Posted: Wed Oct 02, 2019 11:44 am 
New User
New User

Joined: Wed Oct 02, 2019 11:38 am
Posts: 1
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 10
So, I've been trying for quite few days now and I seem not to succed.

I need a macro that basically presses one key repeatedly but every two minutes it has to press another key:

Press 1 on loop
Then every two minutes press 2

I thought something like:
Press one and pause for 120 seconds
while the "pause" is going on, press 1

Is it possible? I might have explained like a donkey but this is all new to me :D

Reply with quote  
 Post subject: Re: Help Request
Thanked: 1 time(s)  Unread post Posted: Wed Oct 02, 2019 11:21 pm 
Partner / License admin
Partner / License admin
User avatar

Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1945
Location: USA
Been thanked: 428 time(s)
Has thanked: 33 time(s)
Contribution Points: 16719
If you're trying to time something, you can use a stopwatch. Here's one way to do it that you can test by opening Notepad after you hit "run":
     Macro.Start stopwatch("2min")
     Keyboard.Press key("a")
     Macro.Read stopwatch("2min", "x")
     if  Variable.Is greater than (Math)("x", "1190")
               Keyboard.Press key("b")
               Macro.Reset stopwatch("2min")
So it starts a stopwatch named "2min"
it presses the "a" key and then pauses for 100ms
- I did this to test it because I didn't want it repeating at lightspeed
- so you could use this pause to establish how fast you want it to push your first key
then it reads the stopwatch to see how much time has elapsed
2 minutes would be 120000 ms; for testing I used a shorter time
- also I would put it for greater than 119k or 119999 ms if you need it more exact and not over 2 minutes
If it's over 2min (or whatever time you input) then it presses the "b" key and resets the stopwatch back to zero to start again for the next cycle

Hope that helps

*note: Oh yea, you need to put the macro on "infinite" loops or it will just run once; checkmark on left side when creating macro

PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group