Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed May 27, 2020 10:14 pm

All times are UTC




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
Options:
BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Please click and drag the 2 correct statements to the right hand side.
Please click and drag the 2 correct statements to the right hand side.
Please select the options below to the correct list to avoid automated registrations.
Statements
2 correct statements
Fish can swim
Dogs have 4 legs
Chickens can talk
Elephants can fly
   

Topic review - Help Request
Author Message
  Post subject:  Re: Help Request  Reply with quote
Syrifina wrote:
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":
Code:
 begin
     Macro.Start stopwatch("2min")
     Keyboard.Press key("a")
     Macro.Pause("100")
     Macro.Read stopwatch("2min", "x")
     if  Variable.Is greater than (Math)("x", "1190")
          begin
               Keyboard.Press key("b")
               Macro.Reset stopwatch("2min")
          end
 end
 
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

I like it
Post Posted: Mon Feb 10, 2020 4:32 pm
  Post subject:  Re: Help Request  Reply with quote
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":
Code:
 begin
     Macro.Start stopwatch("2min")
     Keyboard.Press key("a")
     Macro.Pause("100")
     Macro.Read stopwatch("2min", "x")
     if  Variable.Is greater than (Math)("x", "1190")
          begin
               Keyboard.Press key("b")
               Macro.Reset stopwatch("2min")
          end
 end
 
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
Post Posted: Wed Oct 02, 2019 11:21 pm
  Post subject:  Help Request  Reply with quote
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
then
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
Post Posted: Wed Oct 02, 2019 11:44 am

All times are UTC


Jump to:  


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