Jump to content

Controlsend and ControlClick doesnt work


JonnyBr
 Share

Recommended Posts

Hi all,

I am just trying to open a software (a small window titled "Welcome") and click in a button or send a "Shift+r", but this is not working..

I've send ControlSend("+r") in Notepad, and this is working, but not working in the "Welcome window"..

I tried ControlSend and ControlClick and nothing is working..

I've attached the code here..

 

Sorry, I'm new in programming.. What am I doing wrong ?

Am I forget something ?

 

Thanks,


 

 

erro 2.PNG

erro autoit.PNG

Link to comment
Share on other sites

For the run button, why not this?

WinActivate('Welcome')
ControlClick('Welcome', '', 1)

 

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

  • Moderators
4 minutes ago, Earthshine said:

is this like a brute force approach?

How is this helpful to a person who begins by admitting he is new to scripting? How about providing alternatives for the OP, or simply letting others do so if you are not of a mind to help.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

ok, 

so how about just waiting until the form is active and sending an CTRL-r. Either CTRL or ALT, one or the other that activates it. can;t check right now

WaitWinActive("Welcome")
Send("^r")

 

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

No, its not a brutal force approach.

Ive just writted all this code to show you that no alternative worked..

I really thought that ControlClick or ControlSend should works, but its not.. Thats why I came to the forum asked if I am forgetting something..

Take a look below again... 

err1.PNG

Link to comment
Share on other sites

Huh, i have that program, and the code i posted was tested, and it worked here.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

I can't figure out why it wouldn't work there.

Any antivirus that may be blocking the script?

Really weird

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

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...