Sign in to follow this  
Followers 0
Haveskillz

hi im tryin

3 posts in this topic

a housekeep thing.. to uninstall some programs :/

the only problem is:

Opt("RunErrorsFatal", 0)
Run("C:\Program Files\Webroot\Spy Sweeper\unins000.exe", "", @SW_MAXIMIZE)
sleep(5000)

; Get the handle of the Uninstall window 
$handle = WinGetHandle("classname=Uninstall", "") 
If @error Then  
    MsgBox(4096, "Error", "Could not find the correct window") 
    exit 
Else 
$i = 0
Do
    
    


;   MsgBox(4096, "success", "The window handle is " & $handle) 
   ; Send some text directly to this window's edit control 
   ;ControlClick("handle=" & $handle, "", "", "left") 
    sleep(2500)
    ControlSend("handle=" & $handle, "", "", "{TAB}") 
    sleep(36) 
    ControlSend("handle=" & $handle, "", "", "{SPACE}")  
    sleep(20000)
    ControlSend("handle=" & $handle, "", "", "{SPACE}")
    $i = $i + 1   
    Until $i = 1

EndIf 

exit

dont work i get the error 'Could not find correct Window'

i really dont know what the "Classname=" should be *-)

could you please help me out.. then it would be alot easier :)

Share this post


Link to post
Share on other sites



Opt("RunErrorsFatal", 0)
Run("C:\Program Files\Webroot\Spy Sweeper\unins000.exe", "", @SW_MAXIMIZE)
sleep(5000)

Opt("WinTitleMatchMode", 4)

; Get the handle of the Uninstall window 
$handle = WinGetHandle("classname=Uninstall Spy Sweeper", "") 
If @error Then  
    MsgBox(4096, "Error", "Could not find the correct window") 
    exit 
Else 
$i = 0
Do
    
    


;   MsgBox(4096, "success", "The window handle is " & $handle) 
   ; Send some text directly to this window's edit control 
   ;ControlClick("handle=" & $handle, "", "", "left") 
    sleep(2500)
    ControlSend("handle=" & $handle, "", "", "{TAB}") 
    sleep(36) 
    ControlSend("handle=" & $handle, "", "", "{SPACE}")  
    sleep(20000)
    ControlSend("handle=" & $handle, "", "", "{SPACE}")
    $i = $i + 1   
    Until $i = 1

EndIf 

exit

that dont help :/

but whats the Classname anyways? can some1 search that for me

i really dont understand that part :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0