Jump to content

Mouse click into external GUI subwindow


Recommended Posts

Hi guys,

I'm stuck with a very basic problem. My code moves a window dialogue into the corner of the screen. Now I am basically just trying to get the mouse to click in a sub-window of the dialogue to be able to choose a certain file in list. When I write the code to do this, the mouse doesn't move, and there isn't any other indication that the code is working how I think it should be. My code is below, and I'll attach a screenshot. I did use Window Info to learn about the title of the sub-window, etc. but couldn't figure this out. Again I realize this is uber-simple, but for some reason can't get it to work. Thanks!

;select sub-window of the file select dialogue in which to make active

WinWaitActive("[CLASS:ListBox;INSTANCE:1]", "")

; move mouse into position to select the first file; use mouse click to enter into list; press enter

Mousemove(30,5)

Mousedown("left")

Mouseup("left")

send({ENTER})

post-55595-12643979052047_thumb.jpg

Link to comment
Share on other sites

WinWaitActive("[CLASS:ListBox;INSTANCE:1]", "")

That's the ID of the CONTROL not the window.

ID the window instead of the control and WinWaitActive() should work.

:D

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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...