| View previous topic :: View next topic |
| Author |
Message |
wolive
Joined: 20 Jul 2004 Posts: 21 Location: South Africa
|
Posted: Sat Mar 26, 2005 6:50 am Post subject: Drag & Drop |
|
|
| I would like to create a hotkey that enables and disables drag and drop on the desktop. I share my PC with my kids and they generally re-position my icons on the desktop. Any idea how I can detect if the mouse has moved while the left mouse button is down. |
|
| Back to top |
|
 |
Jon
Joined: 28 Apr 2004 Posts: 373
|
Posted: Sat Mar 26, 2005 9:09 pm Post subject: |
|
|
This script will not let you click on a desktop icon for more than 200ms-
| Code: | ~*Lbutton::
MouseGetPos, , , , OutputVarControl
;if the desktoop is under the mouse
if OutputVarControl = SysListView321
{
;if mouse is held for 200ms
sleep, 200
;automatically release left mouse button
MouseClick, Left, , , , , U
}
return |
|
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4078 Location: Pittsburgh
|
Posted: Sun Mar 27, 2005 12:23 am Post subject: |
|
|
| Clever! |
|
| Back to top |
|
 |
wolive
Joined: 20 Jul 2004 Posts: 21 Location: South Africa
|
Posted: Sun Mar 27, 2005 7:21 am Post subject: |
|
|
| Thanks. It's exactly what I was looking for. |
|
| Back to top |
|
 |
|