Jump to content
eliass123

don't understand how to use ControlSend

Recommended Posts

eliass123

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

Share this post


Link to post
Share on other sites
eliass123

that also doesnt work:

ControlSend("OBS", "", "","+r")

Share this post


Link to post
Share on other sites
eliass123
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

Share this post


Link to post
Share on other sites
eliass123

got it, the window header is the top line text

Share this post


Link to post
Share on other sites
eliass123

but still dont know how to do it

Share this post


Link to post
Share on other sites
careca

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

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

Share this post


Link to post
Share on other sites
eliass123
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

Share this post


Link to post
Share on other sites
careca

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.

  • Like 1

Spoiler

Paster - Main function is to paste text, but has more functions. (No longer mantained, switched to String Trigger)

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.

Firefox Profile Backup - Backup/restore previously saved profile.

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

Share this post


Link to post
Share on other sites
Earthshine

That a QT app?


My resources are limited. You must ask the right questions

 

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

×