Jump to content

Pressing button does not work


grimmlock
 Share

Recommended Posts

Hey everyone

I want to be able to press a button within a application however so far what I have tried does not seem to be working. I have successfully made the application (window) active, but when I try:

    WinActivate("- AdwCleaner - v4.109")
    WinWaitActive("- AdwCleaner - v4.109")
    send("{Tab}{Space}") ; even ("{TAB}{SPACE}")

 

    WinActivate("- AdwCleaner - v4.109")
    WinWaitActive("- AdwCleaner - v4.109")
    ControlSend("- AdwCleaner - v4.109", "", "[CLASSNN:Button3]", "{SPACE}")

 

    WinActivate("- AdwCleaner - v4.109")
    WinWaitActive("- AdwCleaner - v4.109")
    ControlClick("- AdwCleaner - v4.109", "Scan", "[CLASS:Button;INSTANCE:3]")

 

I have tried using the finder utility and that is how I got the Class and instance number but nothing is working. Could someone help?

Thanks

Grimm

post-76479-0-21762500-1422986938_thumb.p

Thanks

Grimm

Link to comment
Share on other sites

this worked find for me:

Local $hndle = WinActivate("- AdwCleaner -")

WinWaitActive($hndle)

Send("{Tab}")
Send("{Space}")

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

Hm, give this one a try:

Run("AdwCleaner.exe")

WinWaitActive("- AdwCleaner -")

Send("{Tab}")
Send("{Space}")
Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

A shot in the dark, but put #RequireAdmin at the top of your script and try it again.

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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

×
×
  • Create New...