[Ex] RegTo.Au3

Partagez vos scripts, et vos applications AutoIt.
Règles du forum
.
Répondre
Greenhorn
Niveau 2
Niveau 2
Messages : 25
Enregistré le : sam. 19 avr. 2008 02:16
Status : Hors ligne

[Ex] RegTo.Au3

#1

Message par Greenhorn »

Bonjour,

here I wrote a script, that converts *.reg files into AutoIt code.

It also can convert pathnames in the *.reg file to AutoIt macros, just see in the example.
Maybe somebody find it useful, I do. :mrgreen:

Example:
► Afficher le texte
A zip archiev is attached ...


Salut
Greenhorn
Fichiers joints
src.zip
(3.83 Kio) Téléchargé 448 fois
Modifié en dernier par Tlem le sam. 13 déc. 2008 10:57, modifié 3 fois.
Raison : Ajout de la balise [Ex] dans le titre.
Avatar du membre
minoui
Niveau 4
Niveau 4
Messages : 58
Enregistré le : jeu. 01 mai 2008 21:01
Localisation : Paris 13
Status : Hors ligne

Re: RegTo.Au3

#2

Message par minoui »

WOW thx!
Boom head-shot
Avatar du membre
Tlem
Site Admin
Site Admin
Messages : 11784
Enregistré le : ven. 20 juil. 2007 21:00
Localisation : Bordeaux
Status : Hors ligne

Re: RegTo.Au3

#3

Message par Tlem »

Tanks for sharing, but it seems not working with v3.2.10.0.

I noticed a problem with the line :

Code : Tout sélectionner

$sRegFile = StringRegExpReplace(FileRead($fhRegFile), '(\\\r\n  )', '')
how don't transform the break line in the tmp file.

No time to debug sorry. ;)
Thierry

Rechercher sur le forum ----- Les règles du forum
Le "ça ne marche pas" est une conséquence commune découlant de beaucoup trop de raisons potentielles ...

Une idée ne peut pas appartenir à quelqu'un. (Albert Jacquard) tiré du documentaire "Copié n'est pas volé".
Greenhorn
Niveau 2
Niveau 2
Messages : 25
Enregistré le : sam. 19 avr. 2008 02:16
Status : Hors ligne

Re: [Ex] RegTo.Au3

#4

Message par Greenhorn »

The problem is here:

Code : Tout sélectionner

Local $arSectionNames = IniReadSectionNames(StringReplace($sPathRegFile, '.reg', '.tmp'))
I don't understand it, as I built it, it worked fine. :shock:

Try the attached Registry file, it works.
Why the other files are failing to be read the section names ..., hmmm, I don't know ...

Salut
Fichiers joints
AutoIt_v3.reg.txt
(103.92 Kio) Téléchargé 325 fois
Avatar du membre
Tlem
Site Admin
Site Admin
Messages : 11784
Enregistré le : ven. 20 juil. 2007 21:00
Localisation : Bordeaux
Status : Hors ligne

Re: [Ex] RegTo.Au3

#5

Message par Tlem »

Yes, it work, but if you cut the end of the file before here :

Code : Tout sélectionner

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{3D54C6B8-D283-40E0-8FAB-C97F05947EE8}\InProcServer32]
@="C:\\Programme\\AutoIt3\\AutoItX\\AutoItX3.dll"
"ThreadingModel"="Both"
 
It doesn't work anymore !!!
I really don't understand why, but it's a fact.
Thierry

Rechercher sur le forum ----- Les règles du forum
Le "ça ne marche pas" est une conséquence commune découlant de beaucoup trop de raisons potentielles ...

Une idée ne peut pas appartenir à quelqu'un. (Albert Jacquard) tiré du documentaire "Copié n'est pas volé".
Répondre