Jump to content

CaryLewis

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by CaryLewis

  1. I am working on some computer benchmarking scripts, and one of the things I want to do is determine when a computer has completed booting up. My idea is to monitor the CPU and other metrics and when the things I am monitoring are within predetermined limits, declare that the system is idle, and therefore fully booted. I am thinking of monitoring the following: Tray Icons - When the number of icons stops increasing - chances are the start up programs are complete CPU Usage - when less than 15% for at least 5 seconds, system may be idle Disk Usage - This is reason I am posting to the forum, I can not figure out a way to cleanly monitor disk usage. I essentially want a way for autoit to determine if there has been any disk activity on drive c:\. Any suggestions would be appreciated.
  2. Is it possible to use an AutoIt script to send keystrokes to the windows logon screen? How do I obtain a handle to the logon window? As well, how would that script be run? I would imagine that it has to run as a service. However, when I run an AutoIt script as a service, the service only sees a certain subset of windows, if that service is started automatically and then I log on to the machine. If I start the service once I have logged in then the script sees all of the desktop windows. Ideally, once the logon process has completed I would like the same script to be able to interact with the desktop - launch programs, etc. Thanks for any help.
  3. I have been trying to get an AutoIt script to run as a service. I need to be able to monitor a Logon Window, and when the user has logged on, detect subsequent windows, and interact with them from the script, by clicking on buttons, sending keystrokes, launching new programs, etc. But I can not get this work at all. When I run a script as service, it can not see all of the desktop windows. If I uncheck the "Allow Service to Interact with Desktop" the script can see more windows than if it is checked. I have tried: the service.au3 code, srvany, and even Cygwin's cygrunsrv service wrapper. Clearly, I am missing something. Should I be able to interact with any open window from inside a script that is running as a service? Can anyone explain why I can not use Winlist from a script running as a service? Can someone provide an example as to how to run an autoit script as a service, detect when someone has logged on, and then launch a program, and then interact with it from inside the script. Thanks for any help.
  4. I would like to be able to pass arguments to my scripts when I run the script from inside the SciTE editor. How can this be done? Thank you.
  5. I am trying to create and control a MS PowerPoint viewer and automatically open and then print a powerpoint presentation, but I want to completely hide the MS PowerPoint point GUI from the user. I have tried to automate Notepad.exe, and I can use the @SW_HIDE when using the Run() function, but any subsequent dialogs (save as, file already exists, etc.) display in the foreground. Can someone please suggest a way to completely hide an application and still be able to control with the AutoIt? I have thought of the following ideas, but I am not sure how practical they are: 1. Create a dialog application or GUI within AutoIt, and have this screen be always on top, so as to obscure the underlying applicaiton. 2. Create the application to be controlled on a 'fake' monitor. Thanks for any help.
×
×
  • Create New...