AutoHotkey Community

It is currently May 27th, 2012, 6:40 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: May 1st, 2011, 9:30 am 
Offline

Joined: June 1st, 2007, 2:00 pm
Posts: 180
I have a shortcut file pointing to his original file.
A Shortcut is a pointer to the original file.

I would like to make a copy of the original file in the folder where the shorcut is, and then delete optionally the shortcut.

Where can I find this script ?

I would like select with the mouse click one or more files and apply a shortkey to transform in the real files.

Best Regards


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 1st, 2011, 7:14 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Try this:
Code:
#c::
ClipboardBKP:=ClipboardAll
Clipboard=
Send ^c
ClipWait,0.5
Loop,Parse,ClipBoard,`n,`r
{
   FileGetShortcut,%A_LoopField%,file
   FileCopy,%file%,% SubStr(A_LoopField,1,InStr(A_LoopField,"\",1,0)) SubStr(file,InStr(file,"\",1,0)+1)
   FileDelete,%A_LoopField%
}
Clipboard:=ClipboardBKP
Return

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 2:06 am 
Offline

Joined: June 1st, 2007, 2:00 pm
Posts: 180
I'll try and comment.

Best Regards


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 3:48 am 
Offline

Joined: June 1st, 2007, 2:00 pm
Posts: 180
What's the shortkey I have to apply over the shortcut ?

I have executed the program and have in the tray icon.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 7:12 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Press Win & C

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 2nd, 2011, 12:57 pm 
Offline

Joined: June 1st, 2007, 2:00 pm
Posts: 180
Worksssssssssssssssssss

Image

Best Regards


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Bing [Bot], Exabot [Bot], JSLover and 59 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