erf5wg2 Posted March 16, 2008 Share Posted March 16, 2008 Hello,I've been vainly trying to open VLC media player by using the code below :Opt("MouseCoordMode", 0) Run("C:\Program Files\VideoLAN\VLC\vlc.exe")WinActivate ("[Class:wxWindowClassNR]")ControlClick("[Class:ToolbarWindow32]","","[ClassNN:ToolbarWindow321]",'left',1,15,12)I've already tried this :Opt("MouseCoordMode", 0) Run("C:\Program Files\VideoLAN\VLC\vlc.exe")WinActivate ("VLC media player")ControlClick("wxWindowClassNR","","[ClassNN:ToolbarWindow321]",'left',1,15,12)Coordinates 15,12 are relative. I also tried with 135,106.Here are the informations given by Win Info Tool :1-MAIN WINDOWa-window tabTitle: VLC media playerClass: wxWindowClassNRPostion 122,47Size 355,105b-Nothing on Control tab2-SELECTION OF THE TOOLBARa-window tabTitle VLC media player Class wxWindowClassNRPostion 122,105Size 355,105b-control tabTitle ToolBarWindow32Instance 1ClassnameNN ToolBarWindow321ID TextPosition 0,0Size 692,28ControlClick Coords 45,11Thanks for helping a newbi. Link to comment Share on other sites More sharing options...
GaryFrost Posted March 16, 2008 Share Posted March 16, 2008 Beta: #include <GuiToolbar.au3> Run(@ProgramFilesDir & "\VideoLAN\VLC\vlc.exe") WinWait("VLC media player") WinActivate("VLC media player") WinWaitActive("VLC media player") $hToolbar = ControlGetHandle("VLC media player", "", "ToolbarWindow321") _GUICtrlToolbar_ClickIndex($hToolbar, 0, "left", True) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
erf5wg2 Posted March 16, 2008 Author Share Posted March 16, 2008 Beta: #include <GuiToolbar.au3> Run(@ProgramFilesDir & "\VideoLAN\VLC\vlc.exe") WinWait("VLC media player") WinActivate("VLC media player") WinWaitActive("VLC media player") $hToolbar = ControlGetHandle("VLC media player", "", "ToolbarWindow321") _GUICtrlToolbar_ClickIndex($hToolbar, 0, "left", True) Thank you for such a fast answer. Give me some time to study it. Link to comment Share on other sites More sharing options...
erf5wg2 Posted March 16, 2008 Author Share Posted March 16, 2008 Thank you for such a fast answer. Give me some time to study it.Hi,At present I'm using SciTE4AutoIt3 and the report of the compiler is :C:\Program Files\AutoIt3\vlclaunch3.au3 (8) : ==> Unknown function name.: _GUICtrlToolbar_ClickIndex($hToolbar, 0, "left", True) ^ ERRORI tried to found some explanations of the function _GUICtrlToolbar_ClickIndex in the Reference Functions of autoit website but couldn't find it Where can I get it? Thanks Link to comment Share on other sites More sharing options...
GaryFrost Posted March 16, 2008 Share Posted March 16, 2008 Hi,At present I'm using SciTE4AutoIt3 and the report of the compiler is :C:\Program Files\AutoIt3\vlclaunch3.au3 (8) : ==> Unknown function name.: _GUICtrlToolbar_ClickIndex($hToolbar, 0, "left", True) ^ ERRORI tried to found some explanations of the function _GUICtrlToolbar_ClickIndex in the Reference Functions of autoit website but couldn't find it Where can I get it? ThanksDon't use color text.Beta SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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