Solution Tehran123 Posted October 29, 2021 Solution Share Posted October 29, 2021 Hello! Today I started to program my first bot with autoit. My problem is that the func. _search won´t start after running the program and pressing "+". HotKeySet ( "{+}","_start" ) HotKeySet ( "{#}","_pause" ) HotKeySet ( "{-}","_exit" ) Global $go = 0 Func _start() $go = 1 EndFunc Func _pause() $go = 0 EndFunc Func _exit() Exit EndFunc Func _search () MouseClick(MOUSE_CLICK_LEFT, 992, 766, 1, 10) MouseClick(MOUSE_CLICK_LEFT, 1221, 982, 1, 10) MouseClick(MOUSE_CLICK_LEFT, 1438, 736, 2, 10) Send ( "{ENTER}" ) Send ( "{ENTER}" ) MouseClick(MOUSE_CLICK_LEFT, 133, 184, 1, 10) EndFunc While 1 If $go = 1 Then _search() Else Sleep (10) EndIf WEnd Where is the problem? The program runs with out any problem.. SkysLastChance and Musashi 2 Link to comment Share on other sites More sharing options...
Exit Posted October 29, 2021 Share Posted October 29, 2021 error: MOUSE_CLICK_LEFT(): undefined function. App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Earthshine Posted October 29, 2021 Share Posted October 29, 2021 (edited) he marked his question as the solution--it doesn't make any sense. oh well. Edited October 29, 2021 by Earthshine Musashi 1 My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
Zedna Posted October 29, 2021 Share Posted October 29, 2021 (edited) If you mean keys + and - on numeric part of keyboard then use {NUMPADADD} {NUMPADSUB} EDIT: Also "{-}" is not defined, use only "-" Edited October 29, 2021 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Nine Posted October 30, 2021 Share Posted October 30, 2021 He has 100% post solution ! Quite rare... Earthshine 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now