Sign in to follow this  
Followers 0
Velnes

clicking button in diffent window

11 posts in this topic

hi again,ive tryed searching but i dont actualy even hav an idea of wat to search for htis

i want to know how can i press a button of winrar window... like when u run "example.sfx.exe" and then the window opens there u press install..

i would like to knw how to press install without moving mouse there...

thnx very much for who will help

Share this post


Link to post
Share on other sites



Velnes,

Use the Window Info tool to get some details of the GUI and the button in question and then use ControlClick. :)

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

look at the controlclick function. I always use wingetclasslist first to find which button I need to press.

If wingetclasslist returns more then one button, you'll have to search for the button with controlclick (button1, button2, etc.)


Many times you need to think like hobby-bob:')

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Velnes,

Use the Window Info tool to get some details of the GUI and the button in question and then use ControlClick. :)

M23

Nice! Where can I find that window info tool? I don't have it. Edited by Gideon

Many times you need to think like hobby-bob:')

Share this post


Link to post
Share on other sites

Gideon,

I don't have it

Yes you do - it comes as part of AutoIt! ;)

If you did a standard install you will find it at "C:\Program Files\AutoIt3\Au3Info.exe". It is pretty easy to use - just drag the "gunsight" over the GUI you want to investigate and you get lots of info about it. :)

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

Gideon,

Yes you do - it comes as part of AutoIt! ;)

If you did a standard install you will find it at "C:\Program Files\AutoIt3\Au3Info.exe". It is pretty easy to use - just drag the "gunsight" over the GUI you want to investigate and you get lots of info about it. :)

M23

Really nice<3, I didn't saw that it was installed..

Many times you need to think like hobby-bob:')

Share this post


Link to post
Share on other sites

Gideon,

When you reply please use the "Add Reply" button at the top and bottom of the page rather then the "Reply" button in the post itself. That way you do not get the contents of the previous post quoted in your reply and the whole thread becomes easier to read. :)

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

@M23

Sorry, better like this?


Many times you need to think like hobby-bob:')

Share this post


Link to post
Share on other sites

thank you all for your help..sry i didnt reply im just busy all day every day :)

ill try all ur stuff that u sayd ;) thnx again

Share this post


Link to post
Share on other sites

hmm this control click isnt so accurate...maybe there si a better way?

Share this post


Link to post
Share on other sites

Velnes,

What did the Window Info tool tell you about the GUI and the control and what did you put into the ControlClick parameters? :)

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

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