Blue Eye Macro http://blueeye-macro.com/ |
|
run only when active window? http://blueeye-macro.com/viewtopic.php?f=122&t=27504 |
Page 1 of 1 |
Author: | wynther [ Tue Apr 19, 2016 4:44 am ] |
Post subject: | run only when active window? |
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 |
Author: | Syrifina [ Tue Apr 19, 2016 12:15 pm ] |
Post subject: | Re: run only when active window? |
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). |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |