AutoHotkey Community

It is currently May 26th, 2012, 5:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 27th, 2009, 1:17 am 
Offline

Joined: January 20th, 2007, 7:47 pm
Posts: 110
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2009, 2:39 am 
Offline

Joined: May 24th, 2007, 3:45 am
Posts: 1121
Code:
#!+l::
SavedClip := ClipboardAll
Clipboard =
Send ^c
ClipWait 1
If NOT Errorlevel
   FileMove %Clipboard%, C:\Foo\Bar\
Clipboard := SavedClip
Return


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 6th, 2009, 11:41 am 
Offline

Joined: January 20th, 2007, 7:47 pm
Posts: 110
THANKS!

_________________
...Ed


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, BrandonHotkey, G. Sperotto, Google Feedfetcher, Miguel, Mtes, rafaelloureiro, Yahoo [Bot] and 72 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group