Posts: 16
Threads: 7
Joined: Aug 2005
Hi,
I apologize if this is documented somewhere obvious, but I've missed it somehow. I also searched this forum without success, but it seems pretty simple:
I a macro that will turn off my screen (monitor). Not hibernate or standby or anything like that. Just turn the monitor off like windows does automatically after a period of time.
How would I do this?
Thanks!
Tony
Posts: 16
Threads: 7
Joined: Aug 2005
Figured out something...
SendMessage -1 WM_SYSCOMMAND 0xF170 2
That gets us close. But it gets in this loop sometimes where it flashes the monitor on-off-on-off-on-off-on-off-on-off-on-off and I'm not sure how to make it quit when it gets started, but so far have managed to get it to stop that loop every time. (Vista 32bit)
Posts: 12,073
Threads: 140
Joined: Dec 2002
Quote:flashes the monitor on-off-on-off-on-off-on-off-on-off-on-off
On my computer works well.
Try to change -1 to _hwndqm.
Posts: 16
Threads: 7
Joined: Aug 2005
How would I make this run when I move the mouse to the top/left corner of the screen and let it sit there for 3 seconds?
Posts: 473
Threads: 33
Joined: Aug 2007
Macro
Trigger
#1
SendMessage _hwndqm WM_SYSCOMMAND 0xF170 2
With trigger #1, when you move your mouse with a medium/high speed to the top left corner of your screen it will run the macro. If you wanted it to wait 3 seconds, simply add a 3 second wait.
Macro
Trigger
#1
3
SendMessage _hwndqm WM_SYSCOMMAND 0xF170 2
Someone might have a better answer.
Taking on Quick Macros one day at a time
Posts: 1,769
Threads: 410
Joined: Feb 2003
I just saw this in LifeHacker and started to do some research on the Autohotkey script....just should have started looking here :lol:
Nice work all!