Jump to content

Annoying Mouseclick and mousemove


 Share

Recommended Posts

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)
EndFunc

This 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 problem

About 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

  • Moderators

Coldfuzz

I should mention that this is in a full-screen or windowed java-based game

Then you should also read this so you will not be lying awake at night wondering why you are getting no help. :)

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

Coldfuzz

Then you should also read this so you will not be lying awake at night wondering why you are getting no help. :)

M23

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

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 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 parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

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

  • Moderators

Coldfuzz,

Automatic series of clicks in response to my hotkey

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. :)

M23

Edit: Having seen your last post I make an even stronger plea to drop it NOW!

Edited by Melba23

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

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. :)

M23

Edit: 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 by Coldfuzz
Link to comment
Share on other sites

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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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