I want to create a toggle situation with my Main monitor and my external monitor. When I press the hotkey, I want the macro to test to see if the window is on the Main monitor. If it is, then I want it to move the window to the external monitor, else move the window back to the Main monitor.
I constructed and If Then Else macro and attempted to use the variable condition "screen = 0" to test if the window was on the main monitor. However, that doesn't seem to be firing.
How can I test to see if the window is on the Main monitor?
Thanks. The problem is that I want the hotkey to act as a toggle. I need a way to reference the current monitor. If the window is on monitor 1, I want to move it to monitor 2. If it's on monitor 2, I want to move it to monitor 1.
I thought this would be possible with the screen variable. For example,
if screen = 0
then move the window to screen 1
else,
move the window to screen 0