Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 2:59 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
Dogs have 4 legs
Fish can swim
Elephants can fly
Chickens can talk
   

Topic review - run only when active window?
Author Message
  Post subject:  Re: run only when active window?  Reply with quote
You could use this: viewtopic.php?f=172&t=609 to always have your game as the active window or you can set triggers to start/stop your macro. That way if you accidentally click on a different window, you can hit your "stop" trigger, click on your game, and hit the "start" trigger to restart it.

There's other more complicated ways to do it. You can script BEM to get the active window name, if the active window matches your game (the intended macro destination), then begin macro (if not, do nothing until the game becomes the active window).
Post Posted: Tue Apr 19, 2016 12:15 pm
  Post subject:  run only when active window?  Reply with quote
any idea how to run the only macro on active window ??
and it will ignore if not in active window?
example sometimes i rest a bit after playing my favorite game. like browsing the internet,music, editing..
sometimes i accidentally hit my right click mouse while browsing in the internet and the whole macro is triggered lol.


if Mouse.Button is pressed("right")
begin
Keyboard.Hold keys("r")
Macro.Pause("50")
Keyboard.Release keys("r")
Keyboard.Hold keys("t")
Macro.Pause("50")
Keyboard.Release keys("t")
Keyboard.Hold keys("2")
Macro.Pause("53")
Keyboard.Release keys("2")
end
Macro.Restart("Yes")
end
Post Posted: Tue Apr 19, 2016 4:44 am

All times are UTC


Jump to:  


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