AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Select file (win explorer)& move it to specific other fo

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
EdScriptNewbie



Joined: 20 Jan 2007
Posts: 110

PostPosted: Mon Apr 27, 2009 12:17 am    Post subject: Select file (win explorer)& move it to specific other fo Reply with quote

I thought this would be easy, but I've looked around in Help and searched here in the forum, and haven't a seen a way to do it: I want to select a file or folder in a Windows Explorer view, and then key a hotkey that moves the selected item to a specific folder.

So lets say I've opened the "My Documents" folder and can see icons for several different file. I select a Word document called "ThisLists.doc" by single-clicking on. Then I press the hotkey win-alt-shift-L and its script moves ThisLists.doc to the folder "My Documents\lists"

Then say I open the folder "My Documents\Other Stuff" and select the excel document "AnotherList.xls" and again press the same hotkey win-alt-shift-L and the same script moves AnotherList.xls into the folder "My Documents\lists"

How would I write that win-alt-shift-L script?

THANKS

[Moved from Scripts & Functions forum. ~jaco0646]
_________________
...Ed
Back to top
View user's profile Send private message
ManaUser



Joined: 24 May 2007
Posts: 1121

PostPosted: Mon Apr 27, 2009 1:39 am    Post subject: Reply with quote

Code:
#!+l::
SavedClip := ClipboardAll
Clipboard =
Send ^c
ClipWait 1
If NOT Errorlevel
   FileMove %Clipboard%, C:\Foo\Bar\
Clipboard := SavedClip
Return
Back to top
View user's profile Send private message
EdScriptNewbie



Joined: 20 Jan 2007
Posts: 110

PostPosted: Wed May 06, 2009 10:41 am    Post subject: (realized I didn't reply) THANKS this worked great! Reply with quote

THANKS!
_________________
...Ed
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group