Coldfuzz Posted January 24, 2011 Share Posted January 24, 2011 Func Mine() Sleep(100) MouseMove(810,250,3) Sleep(500) MouseClick("left") Sleep(500) MouseMove(703,390,3) Sleep(500) MouseClick("right") Sleep(500) MouseMove(733,475,3) Sleep(500) MouseMove(810,474,3) Sleep(500) MouseClick("left") Sleep(500) MouseMove(810,250,3) Sleep(500) MouseClick("left") Sleep(500) EndFuncThis is intended to open a menu, move the mouse to the appropriate category, and select the first option in that category.Command order:Move outside of menu, left to stabilize (pick the proper screen portion to prepare for execution).Move to menu, open menu with right click.Move to unexpanded label, no click. (label then expands to options)Move to and left click first option.Return to original position in case of failure (the menu has slight movement, occasionally causing a miss).Click origin position to stabilize (that is, select the proper screen portion needed to re-execute).The problemAbout half the time the function delivers the commands completely out of order! Please help! Ive done everything I can to try and get it to execute properly. But then it just starts executing out of order and opening the wrong menus because the clicks go off in completely wrong places.The weirdest thing is the mouse hops around even though there are no click coordinates. I intentionally put in mousemove so it wouldn't do that, and now its worse than ever...The rest of my script is functioning perfectly fine, only this function is screwing up. I should mention that this is in a full-screen or windowed java-based game, meant to automate the click sequence required for a menu action. Similar functions for different menus are working fine.Also, I am relatively new to scripting, but fast learner. So please just elaborate heavily. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 24, 2011 Moderators Share Posted January 24, 2011 ColdfuzzI should mention that this is in a full-screen or windowed java-based gameThen you should also read this so you will not be lying awake at night wondering why you are getting no help. 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...
Coldfuzz Posted January 24, 2011 Author Share Posted January 24, 2011 (edited) ColdfuzzThen you should also read this so you will not be lying awake at night wondering why you are getting no help. M23I am only making hotkeys for a complex action.How is this botting? Automatic series of clicks in response to my hotkey (also known as a macro)? Yes. Botting or automating the game? Not even close.I understand you don't want to help botters which is almost always against a games ToS. Macroing, however, is rarely against the ToS, and in many games is actually encouraged... Edited January 24, 2011 by Coldfuzz Link to comment Share on other sites More sharing options...
guinness Posted January 24, 2011 Share Posted January 24, 2011 (edited) Because most users who mention the word Game generally tend to want to automate the Game itself and this is bad for the reputation of AutoIt. You might have good intentions (who knows) and it's just unfortunate that users before you have abused the Helpfulness of the AutoIt Community into creating a program to break the TOS of the respective Game.Edit: Macroing, however, is rarely against the ToS, and in many games is actually encouraged...This is news to me?! If I was a Game Developer I would class botting, macro'ing etc.. as the same thing, a series of clicks to automate the process of playing the Game, therefore giving a disadvantage to those who don't (or cheating!) Edited January 24, 2011 by guinness 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...
Coldfuzz Posted January 24, 2011 Author Share Posted January 24, 2011 (edited) Because most users who mention the word Game generally tend to want to automate the Game itself and this is bad for the reputation of AutoIt. You might have good intentions (who knows) and it's just unfortunate that users before you have abused the Helpfulness of the AutoIt Community into creating a program to break the TOS of the respective Game.Respectfully, I just don't really see how what I'm doing with hotkeys is even applicable or in the same ballpark. Wouldn't a botter need to set up color recognition and all kinds of crazy, complex thing that run the game without their presence? I wouldn't even know where to begin to get a bot that actually intuitively plays a sandbox game like this.So, any script discussion in relation to utility in a game is off limits too? Perhaps the announcement should be more specific. Your post stands more representative of the actual intent than the announcement, then.Edit: This is news to me?! If I was a Game Developer I would class botting, macro'ing etc.. as the same thing, a series of clicks to automate the process of playing the Game, therefore giving a disadvantage to those who don't (or cheating!)Many online games even have built in macro systems to help in overly complicated execution of actions. Say, if you wanted to do something in a particular order without having to worry about clicking each of 9 (in my case) buttons.Calling a macro cheating is kind of like saying using a tractor and irrigation is cheating in farming... Edited January 24, 2011 by Coldfuzz Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 24, 2011 Moderators Share Posted January 24, 2011 (edited) Coldfuzz,Automatic series of clicks in response to my hotkeyThis is "automating a game" and as such is not allowed here - as clearly stated in the announcement.Just accept that there is absolutely NO flex at all in this matter and move on. Take my advice and do not try to argue the point as that will just mean that your stay here could end in tears - as it has for so many others. M23Edit: Having seen your last post I make an even stronger plea to drop it NOW! Edited January 24, 2011 by Melba23 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...
Coldfuzz Posted January 24, 2011 Author Share Posted January 24, 2011 (edited) Coldfuzz,This is "automating a game" and as such is not allowed here - as clearly stated in the announcement.Just accept that there is absolutely NO flex at all in this matter and move on. Take my advice and do not try to argue the point as that will just mean that your stay here could end in tears - as it has for so many others. M23Edit: Having seen your last post I make an even stronger plea to drop it NOW!Then perhaps the announcement should be yet more specific and clarify that all game discussion or mentioning of the word what so ever is off limits.Don't worry, I'm leaving myself. Not because no one helped, but because you are being rather rude and threatening when I am merely talking passively. Edited January 24, 2011 by Coldfuzz Link to comment Share on other sites More sharing options...
PartyPooper Posted January 25, 2011 Share Posted January 25, 2011 I understand you don't want to help botters which is almost always against a games ToS. Macroing, however, is rarely against the ToS, and in many games is actually encouraged...That's a steaming pile of .... just ask the multitude of WOW boyz who used to write automated keyclick macros to collect gold so they didn't have to be at the computer all the time. What they were doing is exactly what you're asking for - creating an automated keyclick game bot. ALL online games protected by VAC or Punkbuster consider "macro'ing" as cheating and ban/kick for it. Link to comment Share on other sites More sharing options...
Recommended Posts