AutoHotkey Community

It is currently May 22nd, 2012, 2:29 pm

All times are UTC [ DST ]


Search found 23 matches
Search these results:

Author Message

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 5th, 2011, 10:45 pm 

Replies: 14
Views: 367


Also, I should mention that your script takes files from folders of varying depths and dumps them into a single folder, and if the filenames are the same, not all of them will be backed up. Here's an example of two files that would collide, losing one of the files in the process: C:\Orig\qwer\file....

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 5th, 2011, 1:17 pm 

Replies: 14
Views: 367


Thanks so much for your patience with this. I learned a lot; I'm glad you didn't just write it for me (although you sort of did in the end). I really appreciate this.

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 4th, 2011, 10:19 pm 

Replies: 14
Views: 367


When I run this nothing happens. It does check the directory; the hard drive is active while the script runs, but no files are copied. It seems like this should be working now, but it isn't. Loop, C:\Users\Name\Documents\usb backup\, 1, 1 { possiblePath=H:\%A_LoopFileName% if RegExMatch(A_L...

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 4th, 2011, 9:28 pm 

Replies: 14
Views: 367


I don't know why this is so hard for me to figure out. I've tried a number of iterations and none seem to work. I've tried: Loop, "C:\Users\Name\Documents\usb backup\", 1, 1 { if RegExMatch(A_LoopFileExt, "(txt|doc)") FileCopy, C:\Users\Name\Documents\usb bac...

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 4th, 2011, 3:06 pm 

Replies: 14
Views: 367


You need a filename of the destination... not a folder name. This allows you to rename the file, if desired. Okay. So from my first example, how do I tell AHK to use all the same file names if I have to give a file name for the destination? We have this: Loop, "C:\Users\Name\Documents\usb back...

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 4th, 2011, 1:38 pm 

Replies: 14
Views: 367


Something is wrong on my end. I can't get this to do anything even:

Code:
FileCopy, "C:\Users\Name\Documents\usb backup\test.txt", H:\


The file test.txt is in that directory and the USB stick is definitely on the H drive. What am I doing wrong?

 Forum: Support   Topic: Copy files of X type, recursively, from one dir to another

Posted: May 4th, 2011, 4:46 am 

Replies: 14
Views: 367


Hi All, I've been working on this for about an hour now and can't figure it out. To be fair, I don't know AHK well, but I have searched extensively and can't make this work. I want to search a directory and its subdirectories for doc and xls files, and then copy those to my USB drive. I've found abo...

 Forum: Support   Topic: How to convert from one script format to another?

Posted: April 23rd, 2011, 11:53 pm 

Replies: 5
Views: 131


An automated replacement should be easy. I just need some test data. Even if you already did it, here's the automated approach. FileRead, Input, %A_Desktop%\Hotstrings.txt Format = ( $1 Clipboard = $2 SendInput, ^v return ) Msgbox % RegExReplace(Input, "(:.*?:.*?::)(.+&...

 Forum: Support   Topic: How to convert from one script format to another?

Posted: April 23rd, 2011, 8:29 pm 

Replies: 5
Views: 131


:R:hairfall;:: Clipboard=In English we say someone's 'hair fell out'.`r`nFor ex: After my accident all my hair fell out.`r`n/'fell out' Send ^v Return This may be the simplest solution; I'm going to try it and report back. Not an automated replacement, but should be fine for a few minutes' work. Th...

 Forum: Support   Topic: How to convert from one script format to another?

Posted: April 23rd, 2011, 3:44 pm 

Replies: 5
Views: 131


Hi All, Here's my situation: I have a long set of keywords that replace the bound keystrokes with long strings of formatted text. AHK types the formatted text into the window, but I want it to be first copied to the clipboard and then pasted into the window, since it is considerably faster. Here is ...

 Forum: Support   Topic: Script VERY slow when pasting text -- PATH problem?

Posted: March 3rd, 2011, 5:21 am 

Replies: 13
Views: 275


xXDarknessXx:

Do you happen to know (or know how I can find out--I've been searching) how to paste my output with formatting? With my existing script I can use the `r for formatting control because I'm having it typed word-for-word. I can't figure out how to do that with your code.

 Forum: Support   Topic: Script VERY slow when pasting text -- PATH problem?

Posted: March 3rd, 2011, 4:53 am 

Replies: 13
Views: 275


If its trying to type it all out then try and change your hotstrings to instead, Set the clipboard to the value and then past so instead of :R:fr;::favorite restaurant use :R:fr;:: PutText("favorite restaurant") ; Putting it on the next line is necessary or else it will just type ...

 Forum: Support   Topic: Script VERY slow when pasting text -- PATH problem?

Posted: March 3rd, 2011, 4:08 am 

Replies: 13
Views: 275


Then it would be the program is slow and not responding fast enough. I've considered that. Before the reinstall FF was very slow, but AHK was still very fast--as it has always been. Since the reinstall FF is still slow, albeit less so, but AHK is very slow. Using AHK to input the text is ticker-tap...

 Forum: Support   Topic: Script VERY slow when pasting text -- PATH problem?

Posted: March 3rd, 2011, 3:26 am 

Replies: 13
Views: 275


rseding91 wrote:
Have you tried adding:

setbatchlines -1
setkeydelay 0


I tried that just now and it had no effect.

 Forum: Support   Topic: Script VERY slow when pasting text -- PATH problem?

Posted: March 3rd, 2011, 12:57 am 

Replies: 13
Views: 275


Have you changed the scripts at all? Does it also lag in things like notpad? or just specific applications? I add to this particular script all the time, but only lines like the one in my example. The script itself has about 150 lines, but only 5 or so added since the reinstall. This particular scr...
Sort by:  
Page 1 of 2 [ Search found 23 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group