Jump to content

Zoar

Members
  • Posts

    5
  • Joined

  • Last visited

Zoar's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Ah Simple then, cheers
  2. We have a remote computer which users can log onto using Remote Desktop, at the end of the day they are supposed to log off and put the box into standby (saving the planet and all that) which surprise they nearly always forget. As there are a number of process that need dealing with I can;’t just use Windows Schedule so have a small script to take care of things. All is good except getting it into Standby, I have tried WinWaitActive("Run", "", 10) Send("%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState Standby{Enter}") nothing, I assume because no one is logged on when the script runs there is no GUI so nothing happens, I assume! Any ideas, is there another way of putting it into Standby from a script. Z
  3. Hi I have a script that doesn’t quite do what I expect (oh that never happens!) is there any way of running it in “STEP” mode so I can run one line at a time?
  4. Ah so simple, like me! Thanks for the very quick reply
  5. Hi, Very new to this so sorry if this is a little stupid. Just starting a script to open my web browser and am using “winwaitactive” with a timeout value which I understand. However how do I capture the “Return Value” which according to the help is “0” if the timeout fails, so I can redirect the script? WinWaitActive ( "title" [, "text" [, timeout]] ) Parameters title The title of the window to check. See Title special definition. text [optional] The text of the window to check. timeout [optional] Timeout in seconds Return Value Success: Returns handle to the requested window. Failure: Returns 0 if timeout occurred.
×
×
  • Create New...