Hilfe bei Script

01/23/2011 12:52 bollemann#1
Hallo, ich habe ein problem und zwar willl ich gerade einen wow logg in bot basteln nur komm ich nicht weiter und zwar soll wenn ich die die Inputbox etwas reinschreibe eine ini datei erstellt werden und die soll wenn wow gestartet wurde abgerufen werden und halt in den acc einloggen



Ich hab so angefangen



#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Log-in Saver by Lukas", 244, 149, 192, 124)
$Button1 = GUICtrlCreateButton("Save", 56, 104, 131, 33, $WS_GROUP)
$Edit1 = GUICtrlCreateEdit("", 40, 8, 9, 1)
GUICtrlSetData(-1, "Edit1")
$Accountname = GUICtrlCreateInput("Accountname", 16, 8, 121, 21)
$Accountpasswort = GUICtrlCreateInput("Accountpasswort", 16, 48, 121, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Exit
MsgBox ( 0, "Erfolg", "Du hast erfolgreich dein Account gespecihert" )
EndSwitch
WEnd














Soll bei Button one nich gleich schließen sondern ini datei schreiben und die dann später abrufen
01/23/2011 13:09 omer36#2
hab hier ein fertiges, das eig. ganz in ordnung ist...

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"372188192124)
$Input1 GUICtrlCreateInput("name"245212121)
$Input2 GUICtrlCreateInput("password"249212121BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$Button1 GUICtrlCreateButton("speichern"176509530$WS_GROUP)
$Button2 GUICtrlCreateButton("laden"176909530$WS_GROUP)
$Button3 GUICtrlCreateButton("Start"275759530$WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Global $Ini = @ScriptDir "\save.ini"
Global $name IniRead($ini"NAME""name""")
Global 
$password IniRead($ini"PASSWORD""password""")

While 
1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            IniWrite
($ini"NAME""name"GUICtrlRead($Input1))
            
IniWrite($ini"PASSWORD""password"GUICtrlRead($Input2))
        Case 
$Button2
            GUICtrlSetData
($Input1$name)
            
GUICtrlSetData($Input2$password)
        Case 
$Button3
            start
()
EndSwitch
WEnd

Func start
()
ShellExecute( - pfad zur wow.exe )
WinWaitActive( ... wow ...)
Sleep(1000)
Send($name)
Send("{TAB}")
Sleep(1000)
Send($password)
Sleep(1000)
Send("{ENTER}")
;;
;;
Exit
EndFunc 
01/24/2011 16:41 Banana.Crafts#3
Schöner noch das:

PHP Code:
#include <String.au3>
$ecryString=StringEncrypt(1,$Input1,"3ncrypt10nPW",1)
Iniwrite("save.dll","Save,"Name,$ecryString
[Only registered and activated users can see links. Click Here To Register...]