BlockABoots Posted November 27, 2015 Share Posted November 27, 2015 (edited) Im trying to open OBS MultiPlatform with a simple Autoit script.."Run("C:\Program Files (x86)\obs-studio\bin\64bit\OBS64.exe")"but upon loading the script i get the following message...."This application failed to start because it could not find or load Qt platform plugin "windows".Reinstalling the application may fix this problem."Any ideas?? Edited November 27, 2015 by BlockABoots Link to comment Share on other sites More sharing options...
Developers Jos Posted November 27, 2015 Developers Share Posted November 27, 2015 (edited) Try setting the Workdir parameter in the Run statement to the program directory.Jos Edited November 27, 2015 by 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...
BlockABoots Posted November 27, 2015 Author Share Posted November 27, 2015 As in the 'Program Folder'?If so there is only the standard OSB folder in there not OBS MultiPlatform Link to comment Share on other sites More sharing options...
Developers Jos Posted November 27, 2015 Developers Share Posted November 27, 2015 Just like this:Run("C:\Program Files (x86)\obs-studio\bin\64bit\OBS64.exe","C:\Program Files (x86)\obs-studio\bin\64bit")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...
BlockABoots Posted November 27, 2015 Author Share Posted November 27, 2015 Great!, that worked!Next problem, with the standard OBS program if i use the Autoit Window info application, i can find out that the 'Start Record' command uses....[CLASS:Button; INSTANCE:5]but with OBS MultiPlatform, when i try and use the Autoit Window info application, it doesn appear to be able to determin the value for the 'Start record' button, instead when i try hovering the cursor over the 'Start Record' button it seems to just hightlight the whole lower panel of the OBS Multiplatform window. Any ideas how else i can find the right value for the 'Start Record' button? Link to comment Share on other sites More sharing options...
BlockABoots Posted November 28, 2015 Author Share Posted November 28, 2015 anyone? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 28, 2015 Moderators Share Posted November 28, 2015 BlockABoots,Please do not bump your own threads within 24 hours.Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare. You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
BlockABoots Posted November 28, 2015 Author Share Posted November 28, 2015 (edited) Ok sorry, i have found a work around now, but have a new issue.This is my script for opening my 2 programs...Run("C:\Program Files (x86)\obs-studio\bin\64bit\OBS64.exe","C:\Program Files (x86)\obs-studio\bin\64bit")WinActivate("OBS 0.12.2 (64bit, windows) - Profile: Untitled - Scenes: Untitled")sleep(700)send ("{r}")Run("C:\Pro Capture HDMI\SDK\Bin\x64\Release\XID_MultiAudioCapture.exe")WinActive("XID_MultiAudioCapture")sleep(250)send ("{space}")and the script stopping the recording....WinActive("XID_MultiAudioCapture")send ("{space}")WinActivate("OBS 0.12.2 (64bit, windows) - Profile: Untitled - Scenes: Untitled")send ("{r}")now while OBS does indeed stop recording, the MultiAudioCapture program doesnt stop recording, i i click on the MultiAudioCapture window to 'focus' on it and press 'space' then it does stop. Do you know why the script above isnt working as intended? Edited November 28, 2015 by BlockABoots Link to comment Share on other sites More sharing options...
Developers Jos Posted November 28, 2015 Developers Share Posted November 28, 2015 Pretty sure the winactivate is done too soon after the run() statement for both as I doubt the program is started yet when it is performed.Put a sleep() after the run() or do a winwait() to ensure it exists before doing the winactivate.Also try working with ControlSend() in staed of Send() when possible.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...
BlockABoots Posted November 28, 2015 Author Share Posted November 28, 2015 Ok have i have change the stop recording script to....Winwait("XID_MultiAudioCapture")WinActive("XID_MultiAudioCapture")sleep(550)Send("{space}")Winwait("OBS 0.12.2 (64bit, windows) - Profile: Untitled - Scenes: Untitled")WinActivate("OBS 0.12.2 (64bit, windows) - Profile: Untitled - Scenes: Untitled")sleep(550)Send("{r}")but it, still doesnt stop the XID MultiAudioCapture program from recording (OBS stops fine). I have tired the ControlSend command but when i use that i get an error message...Error: Incorrect number of parameters in function call Link to comment Share on other sites More sharing options...
Developers Jos Posted November 28, 2015 Developers Share Posted November 28, 2015 I have tired the ControlSend command but when i use that i get an error message...Error: Incorrect number of parameters in function callThen you have coded it wrong 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...
BlockABoots Posted November 28, 2015 Author Share Posted November 28, 2015 Then you have coded it wrong Well all i have done to replaced 'send' with 'ControlSend' Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted November 28, 2015 Share Posted November 28, 2015 Well all i have done to replaced 'send' with 'ControlSend'You need to look them up in the helpfile. They have completely different parameters.Welcome to the forum .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Developers Jos Posted November 28, 2015 Developers Share Posted November 28, 2015 Well all i have done to replaced 'send' with 'ControlSend'As stated, look at the proper format in the helpfile and show what you have in case you still have issues.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...
BlockABoots Posted November 29, 2015 Author Share Posted November 29, 2015 (edited) Ok, this is just a simple script to get the audio capture program to load and and start recording....Run("C:\Pro Capture HDMI\SDK\Bin\x64\Release\XID_MultiAudioCapture.exe")sleep(250)WinActive("XID_MultiAudioCapture")sleep(250)ControlSend("XID_MultiAudioCapture", "Record To File", "[CLASS:Button; INSTANCE:1]")But im getting a script error......if i change 'ControlSend' to 'ControlClick' then it loads the program and starts to record just fine. Any pointers to what wrong with my script to not allow the ControlSend command to work?. I have used AutoIt's Info Program and the record button for the MultiAudioCapture gives the following info... Edited November 29, 2015 by BlockABoots Link to comment Share on other sites More sharing options...
Developers Jos Posted November 29, 2015 Developers Share Posted November 29, 2015 mmm, well, when the intent is to click a button I would indeed use ControlClick() and not ControlSend().As to the error: see previous comments as they are still valid.So, Start to read the helpfile and find the appropriate functions and their format to use. 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...
BlockABoots Posted November 29, 2015 Author Share Posted November 29, 2015 (edited) mmm, well, when the intent is to click a button I would indeed use ControlClick() and not ControlSend().As to the error: see previous comments as they are still valid.So, Start to read the helpfile and find the appropriate functions and their format to use. Jos Gotcha!, i did get it to work i had to add an addition "", in between the title and text sections, so the line reads....ControlSend("XID_MultiAudioCapture", "", "Record To File", "[CLASS:Button; INSTANCE:1]")But are you suggestion that i should use 'Controlclick' instead then?I have an issue with OBS MultiPlatform where i cannot get Autoit's Info porgram to tell me what CLASS the record button is, as it seems to just highlight the whole control panel at the bottom of OBS's main window, this quick video i made shows the issue...any ideas how i can find the info for the record button? Edited November 29, 2015 by BlockABoots Link to comment Share on other sites More sharing options...
Developers Jos Posted November 29, 2015 Developers Share Posted November 29, 2015 Gotcha!, i did get it to work i had to add an addition "", in between the title and text sections, so the line reads....ControlSend("XID_MultiAudioCapture", "", "Record To File", "[CLASS:Button; INSTANCE:1]") No you did not and please tell me you didn't look at the helpfile yet to come up with this solution? 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...
BlockABoots Posted November 29, 2015 Author Share Posted November 29, 2015 No you did not and please tell me you didn't look at the helpfile yet to come up with this solution?I think did need to add the extra ' " ", ', because if i have the line in the script as.......ControlSend("XID_MultiAudioCapture", "", "Record To File", "[CLASS:Button; INSTANCE:1]")Then the program loads and starts to record as intended!, but if i have the script line as......ControlSend("XID_MultiAudioCapture", "Record To File", "[CLASS:Button; INSTANCE:1]")so missing out the "", in between, "XID_MultiAudioCapture" & "Record To File" i get a script error!! Link to comment Share on other sites More sharing options...
Developers Jos Posted November 29, 2015 Developers Share Posted November 29, 2015 (edited) Understand the error will disappear but that doesn't mean you have solved it correctly.Somehow you keep avoiding my HelpFile comments... there is a hint in there!Anyway you need to continue with ControlClick for now so just think about the last remark as a thing for the next time you do need it!Jos Edited November 29, 2015 by 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...
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