Sign in to follow this  
Followers 0
erf5wg2

ControlClick

5 posts in this topic

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 WINDOW

a-window tab

Title: VLC media player

Class: wxWindowClassNR

Postion 122,47

Size 355,105

b-Nothing on Control tab

2-SELECTION OF THE TOOLBAR

a-window tab

Title VLC media player

Class wxWindowClassNR

Postion 122,105

Size 355,105

b-control tab

Title ToolBarWindow32

Instance 1

ClassnameNN ToolBarWindow321

ID

Text

Position 0,0

Size 692,28

ControlClick Coords 45,11

Thanks for helping a newbi.

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

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)

^ ERROR

I 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

Share this post


Link to post
Share on other sites

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)

^ ERROR

I 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

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

 

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
Sign in to follow this  
Followers 0