eliass123 Posted December 10, 2017 Share Posted December 10, 2017 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 More sharing options...
eliass123 Posted December 10, 2017 Author Share Posted December 10, 2017 that also doesnt work: ControlSend("OBS", "", "","+r") Link to comment Share on other sites More sharing options...
Developers Jos Posted December 10, 2017 Developers Share Posted December 10, 2017 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 More sharing options...
eliass123 Posted December 10, 2017 Author Share Posted December 10, 2017 18 minutes ago, Jos said: What does au3info tell you for the information on this window and how does the window header look? Jos 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 Link to comment Share on other sites More sharing options...
eliass123 Posted December 10, 2017 Author Share Posted December 10, 2017 got it, the window header is the top line text Link to comment Share on other sites More sharing options...
eliass123 Posted December 10, 2017 Author Share Posted December 10, 2017 but still dont know how to do it Link to comment Share on other sites More sharing options...
careca Posted December 10, 2017 Share Posted December 10, 2017 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 More sharing options...
eliass123 Posted December 10, 2017 Author Share Posted December 10, 2017 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 More sharing options...
careca Posted December 10, 2017 Share Posted December 10, 2017 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. Earthshine 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 More sharing options...
Earthshine Posted December 11, 2017 Share Posted December 11, 2017 That a QT app? My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now