Terrafire Posted March 27, 2018 Share Posted March 27, 2018 (edited) Hello! I'm working on a program to detect the end of an animation . (I'm trying to detect when the text stops moving on these attached GIFs. ) IMGR Links: Originally I thought this would be very straightforward. A simple use of Pixelchecksum should detect a lack of animation, without any trouble. However! It turns out that even after the text stops moving, there are still some animations happening in the background. For example, the image below, there is a animated cursor. What I'd like to do is calibrate it beforehand (Perhaps make the user draw a box over any blinking cursors and exclude those animations), but I'm not sure how to even BEGIN to approach the problem of the blinking cursor in the above screenshot, because it's never in the same coordinates. Things I've tried:Image Search Library won't work because because there are multiple images, and there's heavy transparency on the animating icons.PixelSearch won't work, because the icons and text are the same color.FindPixelChecksum should allow me to find the location of the cursor... except I don't think I can use pixelchecksum on an animating, semi-transparent cursor. Any useful advice on how to detect when the text stops moving (while ignoring the blinking icon) would be greatly appreciated. Edit: A possible solution occurred to me. Instead of trying to identify the change and ignore it, perhaps I can detect if the location of the animation is always the same over the course of 1000ms, and if so, assume the animation is merely an animated cursor, not text? I will search for a UDF library that will give me the coordinates of the changes. Edit #3: FastFind appears to return the region location of all changed areas. Looking into it as an alternative solution... Edited March 27, 2018 by Terrafire Link to comment Share on other sites More sharing options...
spudw2k Posted March 29, 2018 Share Posted March 29, 2018 Forgive me for raining on your parade, but this specific technique application looks like game automation to me...which the forum rules don't permit discussion of. Even if they are interactive stories which blur the line of being classified as "games", I am wondering what the legitimate purpose of automating them would be? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Bert Posted March 29, 2018 Share Posted March 29, 2018 7 hours ago, spudw2k said: Forgive me for raining on your parade, but this specific technique application looks like game automation to me...which the forum rules don't permit discussion of. Even if they are interactive stories which blur the line of being classified as "games", I am wondering what the legitimate purpose of automating them would be? Agreed. Game automation is not allowed in the AutoIt Forum. I'm reporting this thread to a moderator and asking for their assistance on this. The OP may have a legit reason and it isn't our job to determine that. That is the responsibility of the moderator. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 29, 2018 Moderators Share Posted March 29, 2018 (edited) Terrafire, To me this looks very much like a game - so as explained above, it breaks the Forum rules and so will be locked. If you feel that my interpretation of the program you are trying to automate does not fall into the "game" category then please PM me with an explanation of why you are of this opinion and, if I agree, I will reopen the thread. M23 Edit: After PM discussion I am convinced that these things are indeed games as user interaction is required to alter the plot lines - the thread remains locked. Edited March 29, 2018 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...
Recommended Posts