Sign in to follow this  
Followers 0
yurka333

Send control to send a button in a window.

7 posts in this topic

#1 ·  Posted (edited)

Is there any way to send (with ControlSend() or Send() ) to a specific window command to press button.

I don't need ControlClick()..

it maybe something like:

Send("&Next") and it should press button (in a window) with name Next

Waiting for help.

Thanks for attention!

Edited by yurka333

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Send("{TAB n}") (where n is the number of tabs required) to get to the button

Send("{SPACE}") usually 'presses' the button

Send("{ENTER}") will also work if that is how the window is written

I would use WInActivate() to ensure that you have focus on the right window before using Send()

Edited by shornw

[font='Comic Sans MS']Eagles may soar high but weasels dont get sucked into jet engines[/font]

Share this post


Link to post
Share on other sites

If it is a standard MS Window, most will also accept Alt+N, so

Send("!n")

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

I said i need to click button Next, so its not standart window key.

http://yurka333.ucoz.com/1.jpg

I need to press the button which in red rectangle with command ControlSend or Send

Share this post


Link to post
Share on other sites

I want understand how to send that what I've asked,and just used that Bot as example because it one thing i have with English button,and it was closest to test.

Why i didn't used any other Window tool? Because I've changed Unicode from Russian to English,and since all my Windows programs are Russian i can't use Russian text in AutoIt.

So i need that program not for a bot,it will close&save changes in Notepad,later when i will change Unicode back to Russian.But for now i need only English Unicode.

Share this post


Link to post
Share on other sites

yurka333,

So i need that program not for a bot,it will close&save changes in Notepad

Perhaps.... ;)

But the Forum Rules are quite clear. Choose an example that does not infringe them next time. :)

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
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0