GTA IV: Model=770770717 zu Hexadezimal im Clipboard
Posted: 08 May 2017, 10:16
Hallo, ich baue leidenschaftlich in GTA IV mit Simple Native Trainer Häuser, Garagen, Inseln und alles mögliche. Seitdem neuen Patch 1.0.8.0 funktioniert Simple Native Trainer nicht mehr und ich konvertiere einfach per Hand die Objects.ini zu einer .sco Datei. Gibt zwar auch Programme zum Konvertieren, doch dann sind oft viele Fehler enthalten und wenn ich es auf meine Weise mache, dann kann ich insgesamt den Code viel individueller gestalten. Folgendes möchte ich mir mit AHK viel leichter machen:
Wenn ich z.B. das markiere und kopiere:
[12]
x=-1657.77
y=-298.914
z=10.55
h=315.324
Model=770770717
qx=0
qy=0
qz=-0.380071
qw=0.924957
Dynamic=0
und ich Strg und V drücke, soll das rauskommen:
Push 0xC
Push 0x2DF1071D
PushF -1657,77
PushF -298,914
PushF 10,55
PushF 315,324
PushF 0
PushF 0
PushF -0,380071
PushF 0,924957
Push 0x0
[12] bleibt in der 1. Zeile und wurde in Hexadezimal umgerechnet.
"Model" ist in die 2. Zeile gerutscht und wurde auch in Hexadezimal umgerechnet.
Mein jetziger Code sieht so aus:
#Persistent
return
ClipWait
OnClipboardChange:
StringReplace, clipboard, clipboard, `. , `,, All
StringReplace, clipboard, clipboard, x=, PushF?, All
StringReplace, clipboard, clipboard, y=, PushF?, All
StringReplace, clipboard, clipboard, z=, PushF?, All
StringReplace, clipboard, clipboard, h=, PushF?, All
StringReplace, clipboard, clipboard, w=, PushF?, All
StringReplace, clipboard, clipboard, q, , All
StringReplace, clipboard, clipboard, ?, %A_SPACE%, All
StringReplace, clipboard, clipboard, Dynamic=, Push 0x, All
return
Nun komme ich nicht weiter. Wer hat eine Lösung? Danke schon mal im Voraus und liebe Grüße
Wenn ich z.B. das markiere und kopiere:
[12]
x=-1657.77
y=-298.914
z=10.55
h=315.324
Model=770770717
qx=0
qy=0
qz=-0.380071
qw=0.924957
Dynamic=0
und ich Strg und V drücke, soll das rauskommen:
Push 0xC
Push 0x2DF1071D
PushF -1657,77
PushF -298,914
PushF 10,55
PushF 315,324
PushF 0
PushF 0
PushF -0,380071
PushF 0,924957
Push 0x0
[12] bleibt in der 1. Zeile und wurde in Hexadezimal umgerechnet.
"Model" ist in die 2. Zeile gerutscht und wurde auch in Hexadezimal umgerechnet.
Mein jetziger Code sieht so aus:
#Persistent
return
ClipWait
OnClipboardChange:
StringReplace, clipboard, clipboard, `. , `,, All
StringReplace, clipboard, clipboard, x=, PushF?, All
StringReplace, clipboard, clipboard, y=, PushF?, All
StringReplace, clipboard, clipboard, z=, PushF?, All
StringReplace, clipboard, clipboard, h=, PushF?, All
StringReplace, clipboard, clipboard, w=, PushF?, All
StringReplace, clipboard, clipboard, q, , All
StringReplace, clipboard, clipboard, ?, %A_SPACE%, All
StringReplace, clipboard, clipboard, Dynamic=, Push 0x, All
return
Nun komme ich nicht weiter. Wer hat eine Lösung? Danke schon mal im Voraus und liebe Grüße