Jump to content

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


tp9191
 Share

Recommended Posts

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)
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
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.

Link to comment
Share on other sites

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.

Link to comment
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.
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...