Jump to content

WinWaitClose PopUp Window


Recommended Posts

didn't want to break forum rules so posting here about my first "example script" that I'm trying to improve....

I've tried looking at ProcessListProperties for

If process CPU usage 0 for 1 min then ProcessClose

to continue the script rather than using Sleep

AutoIt v3 Window Info picks up

>>>> Window <<<<

Title: Cleanup Finished

Class: tooltips_class32

Position: 805, 707

Size: 309, 74

Style: 0x940006C3

ExStyle: 0x00080088

Handle: 0x00010132

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Name:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle:

>>>> Mouse <<<<

Position: 966, 746

Cursor ID: 0

Color: 0xF1F2F7

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

I would have thought that WinWaitClose would have covered the "Cleanup Finished" and "tooltips_class32" but no

So which way now? I'm not experienced enough to find how to use the ProcessListProperties to watch when idle!!!

Link to comment
Share on other sites

here goes my attempt using Novatek's ProcessList

While 1
   
    $iProcessCPU = _ProcessGetCPU($sProcess, 300 )
    $sTip = "Process " & $sProcess & " CPU: " & $iProcessCPU & "%"
  If $iProcessCPU > 0 Then
  traytip("", $sTip   ,1)
  Else
  ProcessClose("360Amigo.exe")
  Endif
;~  sleep(1000)  ;set your own sleep time for LOOP mode
WEnd

thinking that if the process was in use the traytip would continue, if the process was not being used ( 0 CPU usage) then ProcessClose would action but ProcessClose kicks in before the process is completed....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...