SomeRandomGamer12 Posted March 16 Posted March 16 (edited) I will start off by saying i have very little experience coding in general. small amount of JAVA from HS but i have been able to take parts from examples and form together a script. Main issue im having is setting the 2 separate custom positions for the mouse. I'm attempting to save my X,Y via 2 separate binds with separate Global values so i can then call them in the F5 bind's KeyPress. MouseClickDrag ( "left" , $aPosA[0], $aPosA[1], $aPosB[0], $aPosB[1], 1) At the moment current error is "Subscript used on non-accessible variable" from the following line above. -snip- Edited March 16 by Jos
Nine Posted March 16 Posted March 16 Which game are you trying to automate ? Werty 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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
SomeRandomGamer12 Posted March 16 Author Posted March 16 just some menial crafting on an old SWG Emulator. i actually had everything needed to automate it already i just got a bit sucked into changing and optimizing what i originally found
SomeRandomGamer12 Posted March 16 Author Posted March 16 And honestly making it more efficient is a waste no matter what because of an internal cool-down with the process in-game. Original code i found was legit just a loop of all the above actions with a few exceptions i removed and changed. Figured out how to break it into separate segments to work with binds using some examples on here and other post that were answered and was making decent progress until i got stuck with the above problem which im sure is simple fix but with my lack of knowledge and its been 7-8 years since i tooled with JAVA.
argumentum Posted March 16 Posted March 16 1 hour ago, SomeRandomGamer12 said: $aPosA = MouseGetPos() https://www.autoitscript.com/autoit3/docs/functions/MouseGetPos.htm If dimension is not a number @error will be set to 1. The more you know error check. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
SomeRandomGamer12 Posted March 16 Author Posted March 16 (edited) So my understanding of leaving it blank was that it would return 2 separate values but i didn't notice the error your directing me at when it was arranged like the bottom image -snip- Edited March 16 by Jos
Solution argumentum Posted March 16 Solution Posted March 16 (edited) But, that's all I can help. If a mod. sees that am acting against forum rules ( no bot or gaming ), am going to get in trouble Edited March 16 by Jos YES you are. Musashi 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
SomeRandomGamer12 Posted March 16 Author Posted March 16 oh i should have checked that before i posted this, my mistake. argumentum 1
Developers Jos Posted March 16 Developers Posted March 16 (edited) Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question, I hope. The Moderation team PS: @argumentum, a bit disappointed as I thought you knew better than this! Edited March 16 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Recommended Posts