jonix007 Posted July 15, 2015 Share Posted July 15, 2015 Hi guys, i'm new here. So lets go to the problem, i'm making a bot (trying), its ok,, is not easy but is not hard. When i used this command:Do $i = $i + 1 Sleep(1000) PixelSearch(0,0,1023,767, 0x7F7968) Until Not @error Or $i = 120 Sleep(500) MouseClick("Left", 825, 619,10) ; Press Start or Play from the launcher Sleep(500) MouseClick("Left", 525, 550,10)I got a error, this:Line 10 (File "C:\Users\João Augusto\ Desktop\wotzwot.au3"):Until NotUntil ^ ERRORError: Error in expression. Can anyone help me ?Sorry my english, thanks. Link to comment Share on other sites More sharing options...
RaiNote Posted July 15, 2015 Share Posted July 15, 2015 Do $i = $i + 1 Sleep(1000) PixelSearch(0,0,1023,767, 0x7F7968) Until Not @error Or $i = 120 Sleep(500) MouseClick("Left", 825, 619,10) ; Press Start or Play from the launcher Sleep(500) MouseClick("Left", 525, 550,10)That should work but you would need to declare $i before and If you would have looked up for short the help for Until you would know how it work.I hope that was helpfull. C++/AutoIt/OpenGL Easy Coder I will be Kind to you and try to help you till what you want isn't against the Forum Rules~ Link to comment Share on other sites More sharing options...
UEZ Posted July 15, 2015 Share Posted July 15, 2015 (edited) Hi guys, i'm new here. So lets go to the problem, i'm making a bot (trying), its ok,, is not easy but is not hard. When i used this command:Do $i = $i + 1 Sleep(1000) PixelSearch(0,0,1023,767, 0x7F7968) Until Not @error Or $i = 120 Sleep(500) MouseClick("Left", 825, 619,10) ; Press Start or Play from the launcher Sleep(500) MouseClick("Left", 525, 550,10)I got a error, this:Line 10 (File "C:\Users\João Augusto\ Desktop\wotzwot.au3"):Until NotUntil ^ ERRORError: Error in expression. Can anyone help me ?Sorry my english, thanks.@jonix007: please read this first: Forum Rules Edited July 15, 2015 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Venix Posted July 15, 2015 Share Posted July 15, 2015 @jonix007Making a bot for what? Link to comment Share on other sites More sharing options...
RaiNote Posted July 15, 2015 Share Posted July 15, 2015 It looks like a bot to start an Launcher of an Game ^-^Hi guys, i'm new here. So lets go to the problem, i'm making a bot (trying), its ok,, is not easy but is not hard. When i used this command:===>MouseClick("Left", 825, 619,10) ; Press Start or Play from the launcher<=== C++/AutoIt/OpenGL Easy Coder I will be Kind to you and try to help you till what you want isn't against the Forum Rules~ Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 Thanks, sorry for the post. I'm trying to make a bot , to talk (like AI). But is the first time i use this.Thanks. Link to comment Share on other sites More sharing options...
Nutster Posted July 15, 2015 Share Posted July 15, 2015 Until needs a complete condition after the keyword. "Not" can be part of a condition, but it is not complete on its own. "Not" reverses the truth value of what follows it (True becomes False or False becomes True). David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
guinness Posted July 15, 2015 Share Posted July 15, 2015 It looks like a bot to start an Launcher of an Game ^-^ ...and yet knowing this you still continued to help the OP. Very strange indeed. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 Is confuse now, is not a game, i picked this commands in a site, and i'm trying to edit, i wanna make a bot like CleverBot. Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 Just a question, why a bot go open a game? Like he ( the bot ) can play the game ? Link to comment Share on other sites More sharing options...
guinness Posted July 15, 2015 Share Posted July 15, 2015 Well the code above has little correlation to something like CleverBot. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 Hm , i'm so idiot, . Why i cant do anything. Sorry guys.But at last i'm trying. Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 Ok, pls help now, why the command mouseclick is so slow?Look This:Sleep(500) MouseClick("Left", 825, 619,10) Sleep(500) MouseClick("Left", 825, 619,10)I think 500= 5 seconds? But here is like after 1 minute.What i do ? Link to comment Share on other sites More sharing options...
RaiNote Posted July 15, 2015 Share Posted July 15, 2015 (edited) 1000 = 1SecondMouseClick ( "button" [, x, y [, clicks = 1 [, speed = 10]]] )Sleep(500) MouseClick("Left", 825, 619, 1, 100) ;slowest Sleep(500) MouseClick("Left", 825, 619, 1, 1) ;fastestMaybe Something wrong o_o Edited July 15, 2015 by RaiNote C++/AutoIt/OpenGL Easy Coder I will be Kind to you and try to help you till what you want isn't against the Forum Rules~ Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 1000 = 1SecondMouseClick ( "button" [, x, y [, clicks = 1 [, speed = 10]]] )Sleep(500) MouseClick("Left", 825, 619,100) ;slowest Sleep(500) MouseClick("Left", 825, 619,1) ;fastest OK, but i wanna say when the window appears, the mouse have to go and click in a button to open the chat, but this not works, and when i close the window of the chat, the mouse go and click. ( A lot of times ) Link to comment Share on other sites More sharing options...
RaiNote Posted July 15, 2015 Share Posted July 15, 2015 Sleep(500) MouseClick("Left", 825, 619, 1, 100) ;slowest Sleep(500) MouseClick("Left", 825, 619, 1, 1) ;fastest^^ at the begin fail but i already edited it so this should work C++/AutoIt/OpenGL Easy Coder I will be Kind to you and try to help you till what you want isn't against the Forum Rules~ Link to comment Share on other sites More sharing options...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 Sleep(500) MouseClick("Left", 825, 619, 1, 100) ;slowest Sleep(500) MouseClick("Left", 825, 619, 1, 1) ;fastest^^ at the begin fail but i already edited it so this should work FO you have skype, steam or something? I go creat my own script, this is a old script then i find in the web, have a lot of bugs, can u help me ? Link to comment Share on other sites More sharing options...
RaiNote Posted July 15, 2015 Share Posted July 15, 2015 Skype: Not tellingSteam: Not TellingIm not really good and also you could also send a Message on AutoItScript Forum but if it looks like it is against Forum Rules i not gonna trying to help. C++/AutoIt/OpenGL Easy Coder I will be Kind to you and try to help you till what you want isn't against the Forum Rules~ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 15, 2015 Moderators Share Posted July 15, 2015 jonix007,; Press Start or Play from the launcherwhen the window appears, the mouse have to go and click in a button to open the chatA simple question: What application are you trying to "bot"?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...
jonix007 Posted July 15, 2015 Author Share Posted July 15, 2015 OK, i creat a new script, this other i picket from the web, i'm new but i think i can do it. Thanks all. Skype: Not tellingSteam: Not TellingIm not really good and also you could also send a Message on AutoItScript Forum but if it looks like it is against Forum Rules i not gonna trying to help.Ok, thanks to try the problem of mouse. Link to comment Share on other sites More sharing options...
Recommended Posts