Ok so hello everyone this is my first ever post and actually the first ever script I have made! I thought this was extremely useful as it is already a function on mac however not on windows
What it is is a script that allows you to create a new folder which either copies or cuts selected files into it! i have been searching for hours for this but could not find it so i decided i would try to make it myself. It is a really simple script so anyone starting out should be able to understand the functions.
Alright so enough typing... Here it is!
Update1 :
New:
If folder name isnt entered script is canceled
Fixes:
Fixed problem where cut(^x) would stay after inputbox closed.
Fixed problem where it would copy before going into folder (added sleep before copy)
Update 2:
New: added Gui instead of Copy or move inputbox!
#IfWinActive, ahk_class CabinetWClass !^+n:: Gui, Add, Text, , Would you like to Copy or Move the files? Gui, Add, Button, gLabel1, Copy Gui, Add, Button, gLabel2, Move Gui, Show, w250 h100 Return label1: Gui, Submit { inputbox, foldername, Create new Folder, What would you like to name the folder? If (foldername="") { return } send ^c sleep 100 send ^+n send %foldername% send {enter} sleep 100 send {enter} sleep 300 send ^v Return } label2: Gui, Submit { inputbox, foldername, Create new Folder, What would you like to name the folder? If (foldername="") { return } send ^x sleep 100 send ^+n send %foldername% send {enter} sleep 100 send {enter} sleep 300 send ^v Return }
Old - Without Gui
#IfWinActive, ahk_class CabinetWClass !^+n:: inputbox, copycut, would you like to "copy" or "cut" the files? if (copycut="copy") { inputbox, foldername, Create new Folder, what would you like to name the folder? If (foldername="") { return } send ^c sleep 100 send ^+n send %foldername% send {enter} sleep 100 send {enter} sleep 300 send ^v } if (copycut="cut") { inputbox, foldername, Create new Folder, what would you like to name the folder? If (foldername="") { return } send ^x sleep 100 send ^+n send %foldername% send {enter} sleep 100 send {enter} sleep 300 send ^v } else return