Jump to content

Send control to send a button in a window.


 Share

Recommended Posts

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

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]

Link to comment
Share on other sites

  • Moderators

Hi, Yurka. Since your screenshot shows KDBotLite, please refer to the forum rules to see why you will not receive any assistance. :)

http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

Link to comment
Share on other sites

  • Moderators

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

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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