Hey Cory,
Thanks for your answer, sorry for placing all my issues in same post, I am new to macro building and got close to 0 skill in coding/variables.
I've attached the mex file, please take a look. Simply put, I'm trying to automate hunting/healing and repairing inside a game.
Start, select game window, check health, heal if wounded, start hunting otherwise, check health again and keep hunting if health is there (doing this with pixel color about 45% in the life bar, trying to place that pixel color inside variable and compare it to what color code should be when healthy, not sure I'm using the right colorcode number though).
Debugging the macro with notepad in the foreground it starts with 1 and keeps hitting 4 forever, even if I cycle notepad in fullscreen or 50% of screen to let the life bar be visible (simulating lifebar color change).
Game runs in fullscreen so I'm not able to click the running man :), I need a key combination to stop the macro.
Repairing should occur every 30min and loop a different set of keystrokes (I've not configured yet) and finally, after 2h of runtme, to execute some steps to exit game and stop script (I've not configured yet).
Is all this doable with Macro Express Pro?
auto-hunt-heal-repair.mex