Sign in to follow this  
Followers 0
tp9191

Please tell me what i'm doing wrong. (control click: about coords)

23 posts in this topic

http://i45.tinypic.com/nqw8k6.jpg

All i'm trying to do is to click the "..." button at the very top for "video input"

And yes, I realize there is coords difference in the screenshot where it says 8,12, because I was screwing around with stuff. But, I tried both Position and ControlClick Coords from the InfoTool that you see in the screenshot.

When I run the script it simply does nothing to click open the video input box.

I've tried plenty of stuff for like the last 45 minutes (lol @ me spending that much time for something so easy). I assume it has to do something with the coordinates but I can't figure it out.

It would have been nice if the help file example used the coords so people could see how it's done.

Opt("MouseCoordMode" , 0 )
winactivate ("MeGUI - MP4 Muxer")
controlclick ("MeGUI - MP4 Muxer", "", 1, 8, 12)

Share this post


Link to post
Share on other sites



tp9191,

Welcome to the AutoIt forum. :)

Have you tried using the control indentification you have obtained like this:

ControlClick("MeGUI - MP4 Mixer", "", "[NAME:openButton]")

Then you do not need the coordinates at all. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Thanks. I'll try that. How to make use of the entry for 'Advanced Mode' was actually my other question that I was gonna ask but I was in a rush this morning to make the thread.

Share this post


Link to post
Share on other sites

Okay, well I just tried it but it did not do squat. lol

Share this post


Link to post
Share on other sites

tp9191,

Such is life! :(

So we return to the coordinates. Reopen the Window Info tool and use the <Options - Coord Mode> menu to set "Window". Now highlight the control again and note the position and size values in the "Control" tab. Then try this:

ControlClick("MeGUI - MP4 Mixer", "", "", "primary", 1, X, Y)

where:

X = x postion + width/2
Y = y position + height/2

Now you should be clicking in the middle of the button. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Still it did not work.

position = 408, 25

size = 24, 24

so it should be:

ControlClick("MeGUI - MP4 Muxer", "", "", "primary", 1, 216, 24)

Is the reason why it isn't working have anything to do with the fact that this program uses the .NET framework? I was reading something about that in the ControlID section in the help file.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

With it not being a standard control, it is entirely possible

that the actual ID (16581002) is static.

Try

ControlClick("MeGUI - MP4 Mixer", "", 16581002)

EDIT:

Also, treble check the window title is correct, copy and past from info tool.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

It's muxer, not mixer, guys :)

And it appears to be dynamic, because it worked but when I opened the mp4 muxer window again, it didn't work.

Bah, Perhaps we should go back to the coords?

Share this post


Link to post
Share on other sites

no solutions?

Share this post


Link to post
Share on other sites

You think I should what everything I have tried? Could you repeat that, please? lol

Share this post


Link to post
Share on other sites

some controls refuse to be clickable by controlclick() if the their parent isnt active window.

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Try this out.

Give the tittle and name of button when using the MsClick() IN the command dont change the function

Edited by ileandros

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

some controls refuse to be clickable by controlclick() if the their parent isnt active window.

As you can see from the original post I did use WinActivate, though.

Yes.

I think you should.

I'm sorry but I don't understand what you were trying to say in your post, which is why I said to repeat it.

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

There was nothing specfically I was trying. It was more of me just trying to familiarize on how to input some of the commands and whatnot. That's what I meant when I said I was trying different stuff for like an hour.

Try this out.

Give the tittle and name of button when using the MsClick() IN the command dont change the function

$size = WinGetClientSize("") ;Add Client name here for Background windows

I don't quite understand what client is. Do I need to input something there, or ignore it?

Edited by tp9191

Share this post


Link to post
Share on other sites

bump

Share this post


Link to post
Share on other sites

tp9191,

Please do not bump your threads within 24 hours. :naughty:

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. Just be patient - it might be urgent for you but it is not for anyone else. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Yes the name of the your window...


I feel nothing.It feels great.

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