Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
launching macro on idle/screensaver
#1
I searched help & forums but couldn't find the answers...

1. Is there a way to trigger a macro by (a) screensaver is launched; or (b) computer is idle for (x) minutes?

Maybe if the screensaver is a "window" that has a name that could trigger a macro ... but I have no idea how to find that name...

thanks!
Ze'ev
#2
Screensaver window class usually is WindowsScreenSaverClass.

This macro shows screensaver window name and class. Run this macro and then, during 10 seconds, run screensaver (Control Panel -> Display -> Screen Saver -> Preview).

Code:
Copy      Help
10
int h=win(mouse)
str s.getwintext(h) ss.getwinclass(h)
out s
out ss

To run macro on idle, use Windows Task Scheduler (Properties -> Schedule -> OK -> Schedule -> New -> When Idle).


Forum Jump:


Users browsing this thread: 1 Guest(s)