Jump to content

nyedfam

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by nyedfam

  1. What process can I monitor to initialized system idle time whenever usb scanner is used? Thanks
  2. Any function to popup dropdown list when I hover over it ? I want to avoid clicking the dropdown arrow all the time. Thanks
  3. How can I make WinActive to look for the most current window?
  4. Sorry it should be WinActive($lock). It received an active window when my if statement executes. I do with script to run when the window is still active but to continue my loop.
  5. I have a script which execute base on idle time of 5 minutes, but I want the script to stop executing when WinActivate($lock). I received $lock input from the first execution when system was idle for 5 minutes. Any inputs? Thanks.
  6. I end up using <Timers.au3> and it working as expected. Thanks for your help.
  7. When there keyboard and mouse activities within notepad, the script never execute. Which is how I wanted. The only problem is , I am expecting the script to execute every 10 minutes of inactivity, but it doesn't. Any work around this? I appreciate your help.
  8. it works, but CPU percentage snoozes up when there is continues active. Scripts goes to sleep and never wakes.
  9. I am using Notepad to test my script. I need the script to lock a program when is it not in use for 10 minutes. I want the script to go to sleep when the application is locked. I tried using timer.au3 by seize my keyboard.
  10. I reinitialized the timer, but script still execute when window is active. See script below. Global $TIMER = TimerInit() local $var = WinGetTitle("Untitled - Notepad") While 1 ;If this application is active then reset the timer: If WinActive($var) Then $TIMER = TimerInit() EndIf ;if the timer is more than 5 minutes then: If TimerDiff($TIMER) >= 5 * 60 * 1000 Then Send("{CTRLDOWN}{F1}") ; Set $timer value to 0 $TIMER = TimerInit() EndIf Sleep(10000) WEnd
  11. I am trying to send the keystrokes below to application whenever it stays idle for 5 minutes. I able to send the keys but timer doesn't reset when application is active. It loops when application is active. The application becomes active with mouse movement, keystrokes and window refresh. I want the script to script to sleep when the application and only runs once when it becomes idle. See code below. Thanks Global $TIMER = TimerInit() local $var = WinGetTitle("Untitled - Notepad") While 1 ;If this application is active then reset the timer: If WinActive($var) Then $TIMER = TimerInit() EndIf ;if the timer is more than 5 minutes then: If TimerDiff($TIMER) >= 5 * 60 * 1000 Then Send("{CTRLDOWN}{F1}") EndIf ;Sleep for 1 seconds before looping again: Sleep(10000) WEnd
  12. i got it. thanks
  13. Is there a way to reset without a msgbox ? Thanks.
  14. How can reset my drop down list to default after an item is selected from the list. See the example below. "select an item" Dog chicken monkey cat "select an item" is my default item and I want my list to reset back to "select an item" Thanks in advance.
×
×
  • Create New...