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 

Export Registry Keys

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






PostPosted: Wed Aug 11, 2004 9:12 pm    Post subject: Export Registry Keys Reply with quote

Still very new to this...

What I want to do is create a script that backs up a registry key to a file and gives it a time-stamped file name. I've accomplished this but I'm guessing that I could do it more efficently.

Here is the basic script.

Run Regedit
Alt FE to open export dialog
use send command to send file name and to identify registry key

This works perfectly, but when the script runs you can see it "type" the long strings out. I'm guessing that there is a better way to dump reg keys?

Thanks again to everyone...you've been very helpful thus far.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Aug 11, 2004 10:13 pm    Post subject: Reply with quote

I believe regedit.exe has some command line options to export specific keys. You can probably do a Google search to discover the parameters it accepts.

Also, you can use SetKeyDelay to make typing go faster, or assign the text to the clipboard and then send ^v to paste it quickly into an edit field.

Finally, the following script is somewhat related and might be of interest:
http://www.autohotkey.com/forum/viewtopic.php?t=139
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Wed Aug 11, 2004 11:15 pm    Post subject: Found 1 Solution Reply with quote

I used clipboard= and then sent ^v

Script runs much faster now, but I'm still not convinced that it is streamlined.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Aug 12, 2004 12:51 am    Post subject: Reply with quote

In addition to SetBatchLines, the following commands may also affect performance depending on the nature of the script: SetKeyDelay, SetMouseDelay, SetWinDelay, SetControlDelay, and SetDefaultMouseSpeed.

In particular, SetWinDelay might make your script run faster if it calls the windowing commands many times in a Loop, or consecutively.
Back to top
View user's profile Send private message Send e-mail
ILL.1
Guest





PostPosted: Thu Aug 12, 2004 5:05 pm    Post subject: Reply with quote

Can't you use the command RegRead to get what you want?
Back to top
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