Jump to content

don't understand how to use ControlSend


 Share

Recommended Posts

Hey,

I just wanna send the hotkeys shift r to my obs window while it is inacitve.

At first I used 

if ProcessExists("obs64.exe") Then
    winactivate("OBS")
    EndIf
Send("+r")

That thing works so the name of the window "OBS" is correct. But I don't want to have the window in the foreground so I tried controlsend like this

ControlSend ("OBS", "+r")

and it doesn't work at all so I wanted to know what to change

 

Greetings

Link to comment
Share on other sites

  • Developers

What does au3info tell you for the information on this window and how does the window header look?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

18 minutes ago, Jos said:

What does au3info tell you for the information on this window and how does the window header look?

Jos

cFu6fEe.png

not sure if this is the relevant information

don't know what a window header is, but that's a screenshot of the obs window

 

BFoUJ7L.png

Link to comment
Share on other sites

Well first of all, is there any other option to do what you want? What does the Shift-R do? Maybe you can controlclick the item you need.

In any case, you're not providing the Id for the control, this is generally intended to send characters to a control, say a edit.

What you want to do, as far i get, is to send a key combination for that window, while in foreground.

That im not sure how to do, maybe activate the window, then send, then inactivate the window.

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

2 hours ago, careca said:

Well first of all, is there any other option to do what you want? What does the Shift-R do? Maybe you can controlclick the item you need.

In any case, you're not providing the Id for the control, this is generally intended to send characters to a control, say a edit.

What you want to do, as far i get, is to send a key combination for that window, while in foreground.

That im not sure how to do, maybe activate the window, then send, then inactivate the window.

shift r starts the recording, I could change that keybinding or if by "controlclick" you mean clicking on the "start recording"-button instead I don't believe it's possible while the program is in the background, is it?
do I need to provide te control ID? Don't know where to find it

the window activating thing might be possible but could be problematic if I was in a videogame

Link to comment
Share on other sites

It is possible yes, you drag the info tool into the control and see if it gives you an ID, some applications dont, but there are other methods, check the link in my signature.

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