Jump to content

Recommended Posts

ever wanted to write many registry keys at once using regwrite within a script ??

tired about fileinstall a .reg file and run regedit -s ??

this script helps you converting your .reg files (exported with regedit from registry)

to .au3 code ready to paste into your script.

yes, it can read UNICODE files (exported with windows 2000/xp).

Unicode-Reading is limited to ANSI-Code only!

an other handicap is that autoit could not write every kind of registry

value types like REG_NONE or REG_LINK and others.

look at my way to read a simple unicode text file ...

the script is not well commented yet - give it a try.

comments / ideas are welcome.

Reg2au3.au3

Edited by Sigi2
Link to post
Share on other sites

ever wanted to write many registry keys at once using regwrite within a script ??

tired about fileinstall a .reg file and run regedit -s ??

first use regedit to export a registry tree (yes windows 2000 / xp unicode file is

supported) and afterwards convert it to autoit code.

the only handicap is that autoit could not write every kind of registry

value types like REG_NONE or REG_LINK and others.

look at my way to read a simple unicode text file ...

the script is not well commented - give it a try.

comments / ideas are welcome.

<{POST_SNAPBACK}>

+

Hello Sigi Great Tool i like it ! :lmao: Thx you) o:)

Link to post
Share on other sites

*I was planning on updating it soon anyway*

I know a way to convert Unicode to ASCII format.

I only need to know how to detect/recognize an Unicode file.

Then I'll be able to the following:

- Recognize if file Unicode: Convert and save to the TempDir

- Perform actions as usual

Edited by SlimShady
Link to post
Share on other sites

you're right - i have not seen the post before.

now, this is my way ...

this version can read unicode files, has full regdelete support and is tested with many complicated registry exports.

try this key with any other tool:

[HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatibility]

have you already tryed it out ?

Link to post
Share on other sites

first use regedit to export a registry tree (yes windows 2000 / xp unicode file is

supported) and afterwards convert it to autoit code.

@Sigi2

I think you mentioned external tools :lmao: ? Sugi just reflected on what you said.

Link to post
Share on other sites

o:):):)

@MHz

have you read the purpose of the script ???

have i used any external tools / commands whitin the script ???

do i look as a bloody beginner to you ??

:):whistle::huh2:

i have written this script on my own, without anybodies help or

stealing code from others.

@all

has anybody tested the script - any comments ?

helpful suggestions are welcome

Thx,

Sigi

PS: like testing around with reg2au3 ??

see the attechment (rename it to .reg first) and test it.

you can test it against oter reg2au3 skripts and see what happens ... :lmao:

reg_test.txt

Edited by Sigi2
Link to post
Share on other sites

ANSI reg files converts fine. But script have troubles with non-english characters in the unicode reg-files.

<{POST_SNAPBACK}>

Yes, I only tested with ANSI files - without any problem.

:lmao: As i know there is no way dealing with Unicode Chars in AutoIt .

But hey, there are many more Limitations to live with: o:)

some Types of Registry Values: ( * = supported in AutoIt )

* hex: REG_BINARY

hex(0): REG_NONE - Null value

* hex(1): REG_SZ - Null terminated Unicode fixed string value

* hex(2): EXPAND_SZ - Null terminated unexpanded Unicode/ANSI environment string value

* hex(3): REG_BINARY - Binary value of any form/length

* hex(4): REG_DWORD - 32-bit numerical value

hex(4): REG_DWORD_LITTLE_ENDIAN - little-endian 32-bit numerical value (same as REG_DWORD)

hex(5): REG_DWORD_BIG_ENDIAN - 32-bit reversed numerical value

hex(6): REG_LINK - Symbolic Unicode link string value

* hex(7): REG_MULTI_SZ - Array of multiple Unicode strings separated/ended by null characters

hex(8): REG_RESOURCE_LIST - Device driver list of hardware resources in Resource Map tree

hex(9): REG_FULL_RESOURCE_DESCRIPTOR - List of hardware resources in Description tree

hex(a): REG_RESOURCE_REQUIREMENTS_LIST - Device driver list of hardware resource requirements in Resource Map tree

hex(?): REG_QWORD - 64-bit numerical value

hex(?): REG_QWORD_LITTLE_ENDIAN - little-endian 64-bit numerical value (same as REG_QWORD)

an other limitation is the maximum line and string-lenght ...

this key

[HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\Session Manager\AppCompatibility]

is to big to handle.

@sugi

RunWait('cmd /c type possibleunicode.txt > plaintext.txt', '', @SW_HIDE)

works only with ANSI-Chars too ..

Thx,

Sigi

Edited by Sigi2
Link to post
Share on other sites

@MHz

ok, thanx for your exeption

i updated my 1st post now and hope there is no more misunderstanding.

:lmao:

<{POST_SNAPBACK}>

MisUnderstanding perhaps yes. I do appreciate your redifining of your first post. Members only respond to what is feed to them. I am glad that you can see this simple misunderstanding.

Cheers.

Link to post
Share on other sites

RunWait('cmd /c type possibleunicode.txt > plaintext.txt', '', @SW_HIDE)

works only with ANSI-Chars too ..

Yes, of course this can only work with characters in the correct code page. But that's the problem with the missing unicode support in AutoIt. As long continues to support out of date systems like Win9x it wont be possible to support unicode without problems.
Link to post
Share on other sites
  • 1 year later...

Way to reply to someone over one year after they have written their post :)

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)
Link to post
Share on other sites

As long continues to support out of date systems like Win9x it wont be possible to support unicode without problems.

I for one don't want to see AI drop support for 9x systems. That is the one area where you will best be able use AutoIt scripting to the benifit of all Windows users. MS will no longer be providing support for 9x (and not because it's*out of date*) so it will be up to individuals to provide the support and tools to do it. By the looks of the way things are shaping up with Vista you also won't get a lot of coding opportunities there. Using your theory of dropping support for *out of date systems* you are limiting yourself to Windows 2K (if you are a home user then support ended a year ago. As a commercial user you have 4 years left),

Server 2003 (Mainstream support ends next year, Extended support ends in 2012),

XP (Support ends in 2008, 2 years from now). In 2 years your XP will be *out of date* so should AutoIt no longer support it after that time?

BTW I run a MultiBoot system with 3OS's. One of those will always be 98SE even though I seldom work in it anymore.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...