CoconutFlake Posted May 24, 2019 Posted May 24, 2019 Hi I'm new to autoit. The program I'm trying to write a script for I usually have in windowed mode and I move the window around quite often, wondering if theres a way to auto detect the corners of it and automate it into pixel search when script is activated? I saw a few function references like WinGetPos and WinGetClientSize that sounded like they might do it, but then I don't know how to generate it in the script without editing. Is this possible?
spudw2k Posted May 24, 2019 Posted May 24, 2019 46 minutes ago, CoconutFlake said: I don't know how to generate it in the script without editing I'm not sure what you mean by this; but to answer (what I think) your question is, can you track an application window size and location dynamically, yes. Those functions you listed would make for a good starting point. the help file has examples you can check out and play with. Let us know where you get stuck. 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 Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now