(AHK current version 1.1.33.09)
Hi, noob/former user here. it's been years since used AHK.
I just need a simple script for Total Commander file/folder move function.
In TC, when you drag a file somewhere, it does not move the file, it copies it. but if you hold alt while dragging, it will move the file. very tedious.
designers of said program refuse to incorporate the normal cut and paste action built into windows explorer.
I need a script that only works when total commander is active.
when I hold the left mouse button down after 1/2 a second, alt is triggered and held down until left mouse is released. well, actually alt is held down with a slight delay after left mouse is released. half second should do. so:
hold left mouse down - 1/2 second later, alt is triggered and held.
release left mouse - 1/2 second later alt is released too
only triggered with said application.
thank you!!
Hold mouse down triggers alt key for Total Commander
Re: Hold mouse down triggers alt key for Total Commander
It's achievable, but have you considered using F6 to move files? No drag, no hold-- just fast & easy.
Code: Select all
#IfWinActive Total Commander ahk_class TTOTAL_CMD ahk_exe TOTALCMD64.EXE
~LButton::
KeyWait, LButton, T.5
If !ErrorLevel
Return
SoundBeep, 1500
Send {Alt down}
KeyWait, LButton
Sleep, 500
Send {Alt up}
SoundBeep, 1000
Return
#IfWinActive
Re: Hold mouse down triggers alt key for Total Commander
Works flawlessly, thank you? yes I know of F6 and using a modifier button on my mouse, but this is easier and faster. all my tabs are set up for quick organization. Thank you.
Who is online
Users browsing this forum: JoeWinograd, prototype_zero, yabab33299 and 143 guests