Renderer Posted October 29, 2022 Posted October 29, 2022 Hello everyone! Is there a function in autoit to get the mouse info inside a foreign window? Like for example WinGetMouseInfo('Utitled - Notepad'). There is only the GuiGetCursorInfo() function but it only gets the infomation of the cursor inside of a Window created inside an AutoIt Script using GUICreate and MouseGetPos to find the mouse info inside the desktop. Thanks!
Nine Posted October 29, 2022 Posted October 29, 2022 Not in a single function, but you can easily create your own. With GuiGetCursorInfo you get: $aArray[0] = X coord (horizontal) $aArray[1] = Y coord (vertical) $aArray[2] = Primary down (1 if pressed, 0 if not pressed) $aArray[3] = Secondary down (1 if pressed, 0 if not pressed) $aArray[4] = ID of the control that the mouse cursor is hovering over (or 0 if none) Use MouseGetPos for x/y coord with the appropriate Opt("MouseCoordMode", x) Use _IsPressed to see if mouse down on prim and sec Use _WinAPI_WindowFromPoint to get handle of the control based on position ioa747 and pixelsearch 2 “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
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