yurka333 Posted January 12, 2012 Share Posted January 12, 2012 (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 NextWaiting for help.Thanks for attention! Edited January 12, 2012 by yurka333 Link to comment Share on other sites More sharing options...
shornw Posted January 12, 2012 Share Posted January 12, 2012 (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 January 12, 2012 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 More sharing options...
Moderators JLogan3o13 Posted January 12, 2012 Moderators Share Posted January 12, 2012 If it is a standard MS Window, most will also accept Alt+N, so Send("!n") "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 More sharing options...
yurka333 Posted January 12, 2012 Author Share Posted January 12, 2012 I said i need to click button Next, so its not standart window key.http://yurka333.ucoz.com/1.jpgI need to press the button which in red rectangle with command ControlSend or Send Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 12, 2012 Moderators Share Posted January 12, 2012 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 More sharing options...
yurka333 Posted January 12, 2012 Author Share Posted January 12, 2012 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 More sharing options...
Moderators Melba23 Posted January 12, 2012 Moderators Share Posted January 12, 2012 yurka333,So i need that program not for a bot,it will close&save changes in NotepadPerhaps.... 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts