However, I have to hit the keyboard command twice for it to work. When the file is first selected, by moving the selection up/down in the Explorer window, a tooltip type message hovers to display specs on the file and I think that is stealing focus from AHK seeing Win Explorer as Active. It only takes a second or two for the display to disappear and then AHK script will do its thing just fine. But, I'm having to hit Win-z twice for the script to execute.
Not sure that the information display box is what's causing this; just a guess. I've tried a few different Sleep periods to see if that would work and the Escape line to make the display box go away, but it isn't having an effect.
Code: Select all
#IfWinActive ahk_class CabinetWClass
#z::
Send {Esc}
Send,^c
;Sleep 10
Loop, parse, clipboard, `n, `r
{
FileMove,%A_LoopField%,L:\PES\PES Work Orders\Delain WOs\U&E Requests\To be done
}
Return
#IfWinActive ;this line must remain or scripts below here will not load properly -dg
weg