Sign in to follow this  
Followers 0
madasraka

regedit+autoit+my script acting weird !!!

6 posts in this topic

#1 ·  Posted (edited)

Guys please look at my script.

I am very confused on why regedit exports whole registry instead of one specified in _registrybackup()function

If _registrybackup() run on its own without being in this script, then it saves correct registry and everything is ok, but once this function (_registrybackup()) becomes a part of this script, whole registry is exported to 115MB files and it takes long time (well couple of seconds but still very long)

Can you guys please look at this and tell me what is it that makes it act this way ?

Thanks in advance.

Autodesk Loader.au3

Edited by madasraka

Share this post


Link to post
Share on other sites



Could you use RegRead and RegWrite direct from Autoit?

William

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

$ReadCurrentAutodesk = RegRead ("HKEY_CURRENT_MACHINE\SOFTWARE\Autodesk",'')

MsgBox(0,'',$ReadCurrentAutodesk)

returns nothing

I dont want to complicate the script having regread to search for keys.

I need the script to export it regardless if it being there or not, regedit will not export if data is not there so its ok.

Problem is that script exports every key in the registry instead of one specified.

Anyway to fix it ?

Am 100% sure that export line is correct for each registry key, but once they run from the same script its not working right.

It works right only if registry part of the script runs on its own and not being a part of the main script.

WEIRDDDDDD

Edited by madasraka

Share this post


Link to post
Share on other sites

I just noticed another thing that should be reported to bugs report page

I run the script

It backs up registry as it was told. It backs whole thing as it shouldnt

Then

I press F1 before script exist so that script runs again

This time it saves everything correct

I added msgbox right before 1st registry export command and its not poping up inless i press F1 to run the script again before 1st one exits

Some tech needs to look at this please caz this is not the first time i get this problem

Share this post


Link to post
Share on other sites

When you are running your script from SciTE: This is a known "feature"/problem in SciTE and no need to report as a Bug as it is a SciTE problem.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

thanks jos

Also i noticed that functions were executing in a funny order but i think i got it fixed now by telling regedit in restorefunction to import as appose to export.

That solved the problem for mass exporting :blink:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0