annelinn Posted May 9, 2009 Share Posted May 9, 2009 Is there a clever way to detect that a window, with handle $windowhandle, is being dragged? MouseGetCursor() doesn't seem to offer a solution, and GUIGetCursorInfo() only works on AutoIT windows. Even a "detect that mouse left button is down at all" would be enough. Link to comment Share on other sites More sharing options...
Yashied Posted May 9, 2009 Share Posted May 9, 2009 WinGetPos()? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
annelinn Posted May 9, 2009 Author Share Posted May 9, 2009 WinGetPos()?Only works if the window has been stationary for some unacceptably long number of milliseconds - it won't detect that the window's title bar is still being dragged. Link to comment Share on other sites More sharing options...
martin Posted May 9, 2009 Share Posted May 9, 2009 Only works if the window has been stationary for some unacceptably long number of milliseconds - it won't detect that the window's title bar is still being dragged.I didn't know that WinGetPos didn't return the position of a window while it is being dragged. Assuming that is correct then maybe you could detect that the left mouse button is pressed with _IsPressed(01) and check to see if the mouse is over the window title bar, then, if it is, track the mouse position and translate that into the current window position. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 9, 2009 Moderators Share Posted May 9, 2009 Maybe try this:http://www.autoitscript.com/forum/index.ph...c=56536&hl= Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
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