| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Wed Aug 11, 2004 9:12 pm Post subject: Export Registry Keys |
|
|
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
|
Posted: Wed Aug 11, 2004 10:13 pm Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Wed Aug 11, 2004 11:15 pm Post subject: Found 1 Solution |
|
|
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
|
Posted: Thu Aug 12, 2004 12:51 am Post subject: |
|
|
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 |
|
 |
ILL.1 Guest
|
Posted: Thu Aug 12, 2004 5:05 pm Post subject: |
|
|
| Can't you use the command RegRead to get what you want? |
|
| Back to top |
|
 |
|