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 

How to "send to"

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
my english is very bad
Guest





PostPosted: Sun Feb 20, 2005 12:41 am    Post subject: How to "send to" Reply with quote

Is there a way to automatize the "send to" command?
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5376
Location: /b/

PostPosted: Sun Feb 20, 2005 1:04 am    Post subject: Reply with quote

If you mean moving/copying files from one location to another on your computer you could use FileCopy and FileDelete
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Sun Feb 20, 2005 1:41 am    Post subject: Reply with quote

If the item in the "Send To" menu you want is a normal shortcut, you might be able to simulate its behavior by running the shortcut and passing the file(s) as command line parameters:

Run, %USERPROFILE%\SendTo\My Shortcut "C:\File1.txt" "C:\File2.txt"
Back to top
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Sun Feb 20, 2005 8:25 am    Post subject: Reply with quote

@ my english is very bad
Where are you from ?
Back to top
my english is very bad
Guest





PostPosted: Sun Feb 20, 2005 10:58 am    Post subject: Reply with quote

Thank you.
I am trying rename multiple selected files.
I am doing this:
1 select the files, they are hundreds of jpg images.
2 right click and choose "send to" compiled script's shortcut.
It is working but I want to do with only one click/hotkey like what Chris wrote
Quote:
Run, %USERPROFILE%\SendTo\My Shortcut "C:\File1.txt" "C:\File2.txt"


The help file says that I can just use control-c to copy files in the clipboard and Autohotkey can get the paths of all files.
Is there a problem doing this with hundreds or thousands of files?

BoBo, I am chinese living in Brasil.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Sun Feb 20, 2005 12:38 pm    Post subject: Reply with quote

my english is very bad wrote:
The help file says that I can just use control-c to copy files in the clipboard and Autohotkey can get the paths of all files.
Is there a problem doing this with hundreds or thousands of files?
It's designed to work with an unlimited number of files. However, passing these files to a script as parameters might be limited because I believe the OS limits how long a command line can be. Therefore, it's probably best to have the script always-running and make it fetch the files via a hotkey like this:
Code:
#c::  ; Win+C hotkey.
Clipboard =
Send ^c
ClipWait 1
if ErrorLevel
    return
; Otherwise, we have some files on the clipboard.
Loop, parse, clipboard, `n, `r
{
    MsgBox File number %A_Index% is:`n%A_LoopField%.
}
return
Back to top
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Sun Feb 20, 2005 1:10 pm    Post subject: Reply with quote

@ my english is very bad (which is kinda understatement Wink )
Quote:
I am chinese living in Brasil
Lucky guy, speaking (minimum) three of the most important languages. Chinese, brasilian Portugiese (guessing), English, ... .
Wo/man I'm jealous Wink
Back to top
BoBo
Guest





PostPosted: Sun Feb 20, 2005 1:13 pm    Post subject: Reply with quote

wrong = Portugiese
correct = Portuguese

Desculpe & Adeus Wink
Back to top
my english is very bad
Guest





PostPosted: Sun Feb 20, 2005 2:17 pm    Post subject: Reply with quote

Chris, your way is much better. Thank you.

BoBo, you can't believe how difficult Portuguese is, english is much easier, hehehe
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Feb 20, 2005 3:52 pm    Post subject: Reply with quote

I found Portuguese to be quite simple, actually. I picked up a lot in the few months I was there (Brazil), whereas in France I hardly learned anything new (they talk too damn fast!).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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