Changing drag & drop behaviour in Windows 7's explorer for touch screen use
Solution 1:
This is possible. Let's ask ourselves two questions:
-
What hapens when we drag and drop a file?
- An API function is called to start dragging the file.
- A window is shown while you drag.
- An API function is called when you drop the file.
- The operation is performed.
-
How can we modify the drag-drop behavior?
- We could hook the API function(s) and adjust the parameters/code to move instead of copy.
- But, there is an easier way: We could use a hotkey modifier while dragging...
So, by some simple scripting, we can hold the SHIFT key when you drop the file based on the window!
After some research to figure out the name of the window (hook Window Title functions with API Monitor) we can now create an AutoHotkey script that will hold the SHIFT key until after you drop the file.
LButton Down::
Send, {LButton Down}
IfWinExist, ahk_class SysDragImage
{
Send, {LShift Down}
}
return
LButton Up::
IfWinExist, ahk_class SysDragImage
{
Send, {LButton Up}
Sleep, 500 ; Feel free to adjust higher/lower to improve the behavior.
Send, {LShift Up}
}
Send, {LButton Up}
return
Haven't really tried the above code, but I think I believe it should work.
Possible improvements:
- Use AutoIt instead with a function like WinWait, so you don't have to react on the mouse.
- Go for the hard stuff and write and hook the API functions, although you might need to hack a bit.
I hope the above script works or that I gave you a good start. :-)
Solution 2:
Drag the file across and just before you're about to take your finger off the screen to copy, tap somewhere else on the screen at the same time.
If you have a computer with a touchscreen, you might find that gestures (motions that you make with one or two fingers) are easier to use than a mouse, pen, or keyboard.
See Using touch gestures for more information.
Press and tap (for touch screens with multiple touch points)
Press the item with one finger, then quickly tap with another finger, while continuing to press the item with the first finger.
Use press and tap to access the shortcut menu. Press and tap does the same thing as press and hold or right-clicking an item.
Press and hold (for touch screens with a single touch point)
Press and hold does the same thing as right-clicking an item. To perform the action, touch the screen where you want to right-click, hold until a complete circle appears, and then lift your finger. The shortcut menu appears after you lift your finger.
... I guess you could perform this action to cut the file and then the same action to paste it into the destination folder if your touch screen only has a single touch point.
Lots of other tricks on the webpage too, including panning, zoom and rotation.
Solution 3:
I have searched a bit and for what I can tell, it's not possible.