Eragon Posted October 2, 2016 Share Posted October 2, 2016 Hi there, The purpouse of this thread is just educational since i really want to learn some maths. What i'm doing is searching using pixelsearch the color of the name below the characters, after getting it i'm positioning the mouse -30 pixels up their name. The problem is that when their name is too long, the program following the logic finds a pixel, goes up 30 pixels up, but because of the name being too long it will not target the character. Summing it up: since the X coordinate is displaced by the pixel which is far away from the character due to their name being too long it will not proper set the mouse pointer on the character. Any helps? I thought that i could search for the first pixel colour of the name, and the last, and then get the mid-point so i get exactly the X coordinate where the character is... The problem is that the pixel search is looking for a pixel around an invisible rectangle around my mouse pointer so i can't get exactly the first and last pixel around the name... Example: If you see the name Leminer, if the pixelsearch gets the "L" blue pixel colour it will not set the mouse on the character, instead it will set the mouse on the grass. Thanks you in advance, Yours sincerely: Eragon Link to comment Share on other sites More sharing options...
water Posted October 2, 2016 Share Posted October 2, 2016 What makes you think that this is a legit question? The forum rules clearly state: "Launching, automation or script interaction with games or game servers, regardless of the game." What you ask for is script interaction with a game - may it be for "educational purpose" or not. When you search the forum you will find a few threads asking for help on game automation - just for "education purpose". They all have been locked. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts