|
You last visited: Today at 05:01
Advertisement
Input eingabe als ini oder cfg speichern
Discussion on Input eingabe als ini oder cfg speichern within the AutoIt forum part of the Coders Den category.
08/09/2010, 13:01
|
#1
|
elite*gold: 0
Join Date: Oct 2008
Posts: 116
Received Thanks: 94
|
Input eingabe als ini oder cfg speichern
Hallo,
ich wollte mir ein Login bot machen, die gui und so sind fertig
und meine frage ist wie kann ich das so machen, das wen ich auf eine Checkbox klicke und nach dem anmelden Button die Daten die ich in den Input's eingegeben habe als ini oder cfg gespeichert wird
und wen man mehrere acc's eingibt das man bei der acc-id dann zwischen mehreren eins aussuchen kann und jeweils das richtige Password benutzt wird
Mein Script sieht so aus: Die Variable $Checkbox1 hat noch keine Funktion
PHP Code:
#RequireAdmin #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Rakion Hack Starter Helper for Marsch", 317, 229, 294, 242) $Pic1 = GUICtrlCreatePic("source\BG\gmkoala.jpg", 0, 0, 316, 228, 0) $Group1 = GUICtrlCreateGroup("Hack Optionen", 8, 8, 185, 105, $WS_BORDER) $bton = GUICtrlCreateButton("Hack ON", 15, 23, 171, 33, 0) $btoff = GUICtrlCreateButton("Hack OFF", 15, 71, 171, 33, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group2 = GUICtrlCreateGroup("Login Helper", 8, 128, 305, 81) $txtaccid = GUICtrlCreateInput("", 120, 144, 121, 21) $Checkbox1 = GUICtrlCreateCheckbox("Account Speichern", 200, 112, 113, 17, BitOR($BS_CHECKBOX,$BS_AUTOCHECKBOX,$BS_RIGHTBUTTON,$BS_RIGHT,$WS_TABSTOP)) $lbeacc = GUICtrlCreateLabel("Account ID", 16, 144, 94, 21) GUICtrlSetFont(-1, 11, 800, 0, "Segoe Script") $txtpw = GUICtrlCreateInput("", 120, 176, 121, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL)) $lbepw = GUICtrlCreateLabel("Password", 16, 172, 94, 21) GUICtrlSetFont(-1, 11, 800, 0, "Segoe Script") $btanmelden = GUICtrlCreateButton("Login", 248, 144, 51, 57, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
Local $id, $pw
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $bton FileCopy("source\on\ogg.dll", "C:\Program Files (x86)\Softnyx\RakionIS\bin\ogg.dll", 1) Case $btoff FileCopy("source\off\ogg.dll", "C:\Program Files (x86)\Softnyx\RakionIS\bin\ogg.dll", 1) Case $btanmelden $id = GUICtrlRead($txtaccid) $pw = GUICtrlRead($txtpw) Run("C:\Program Files (x86)\Softnyx\RakionIS\NyxLauncher.exe") WinWaitActive("Softnyx Game Launcher") $coord = PixelSearch( 0, 0, 1024, 768, 0xA30000 ) if @error Then Exit If Not @error Then MouseMove ($coord[0], $coord[1]) EndIf Sleep(100) mouseclick("left") Sleep(2000) ControlSend("Softnyx Game Launcher", "", "Edit2", $id) Sleep(500) ControlSend("Softnyx Game Launcher", "", "Edit3", $pw) ControlSend("Softnyx Game Launcher", "", "", "{ENTER}") EndSwitch WEnd
#Edit
so leute ich habe mal herrum experementiert und bin weiter gekommen
was ich geschaft habe:
account id und pw wird jetzt gespeichert
und abgelesen ich habe neben dem input feld ein scrollbar gemacht
und nund möchte ich
1.) das man mehrere acc in die ini eintragen kann und mit der scrolbar die acc aussuchen kann
2.) das die ini datei versteckt wird und nicht das jeder es sehen kann ( ich meine damit das der Attribute Versteckt gesetz wird
#Edit (2 Fast Gelöst die ini Datei wird erstellt die acc Daten werden gespeichert und die ini Datei wird auch versteckt Gesetz aber das Problem das die acc Daten nicht eingegeben werden wen ich nicht auch acc Daten speichern klicke also muss man acc speichern klicken damit der bot an einloggt)
meine neue quelltext
PHP Code:
#RequireAdmin #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$idread = IniRead("Userid.ini", "name", "User", "") $pwread = IniRead("Userid.ini", "name", "Code", "")
$Form2 = GUICreate("Rakion Hack Starter Helper for Marsch", 317, 229, 294, 242) $Pic1 = GUICtrlCreatePic("source\BG\gmkoala.jpg", 0, 0, 316, 228, 0) $Group1 = GUICtrlCreateGroup("Hack Optionen", 8, 8, 185, 105, $WS_BORDER) $bton = GUICtrlCreateButton("Hack ON", 15, 23, 171, 33, 0) $btoff = GUICtrlCreateButton("Hack OFF", 15, 71, 171, 33, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group2 = GUICtrlCreateGroup("Login Helper", 8, 128, 305, 81) $txtaccid = GUICtrlCreateInput($idread, 120, 144, 121, 21, BitOR($ES_AUTOHSCROLL,$WS_VSCROLL)) $Checkbox1 = GUICtrlCreateCheckbox("Account Speichern", 200, 112, 113, 17, BitOR($BS_CHECKBOX,$BS_AUTOCHECKBOX,$BS_RIGHTBUTTON,$BS_RIGHT,$WS_TABSTOP)) $lbeacc = GUICtrlCreateLabel("Account ID", 16, 144, 94, 21) GUICtrlSetFont(-1, 11, 800, 0, "Segoe Script") $txtpw = GUICtrlCreateInput($pwread, 120, 176, 121, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL)) $lbepw = GUICtrlCreateLabel("Password", 16, 172, 94, 21) GUICtrlSetFont(-1, 11, 800, 0, "Segoe Script") $btanmelden = GUICtrlCreateButton("Login", 248, 144, 51, 57, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
Global $id, $pw
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Checkbox1 IniWrite(@ScriptDir & "\Userid.ini", "Name", "User", $id) IniWrite(@ScriptDir & "\Userid.ini", "Name", "Code", $pw) sleep(10) FileSetAttrib(@ScriptDir & "\Userid.ini","+H") Case $bton FileCopy("source\on\ogg.dll", "C:\Program Files (x86)\Softnyx\RakionIS\bin\ogg.dll", 1) Case $btoff FileCopy("source\off\ogg.dll", "C:\Program Files (x86)\Softnyx\RakionIS\bin\ogg.dll", 1) Case $btanmelden $id = GUICtrlRead($txtaccid) $pw = GUICtrlRead($txtpw) Run("C:\Program Files (x86)\Softnyx\RakionIS\NyxLauncher.exe") WinWaitActive("Softnyx Game Launcher") $coord = PixelSearch( 0, 0, 1024, 768, 0xA30000 ) if @error Then Exit If Not @error Then MouseMove ($coord[0], $coord[1]) EndIf Sleep(100) mouseclick("left") Sleep(2000) ControlSend("Softnyx Game Launcher", "", "Edit2", $id) Sleep(500) ControlSend("Softnyx Game Launcher", "", "Edit3", $pw) ControlSend("Softnyx Game Launcher", "", "", "{ENTER}") EndSwitch WEnd
#Edit ALSO 2.) wurde gelöst das problem lag an
richtig wäre es mit
aber kann mir jetzt jemand sagen wie ich es hinbekomme mehrere Account in einem Input fehlt in die ini speichern kann und zwischen dem Account Daten aussuchen kann?
|
|
|
Similar Threads
|
AutoIt eingabe Speichern
08/05/2010 - WoW Bots - 5 Replies
Hallo,
gibt es ein Programm, dass sämtliche Eingaben der Tastatur (mit den richtigen Pausen) AutoIT kompatibel aufzeichnet? Für die Maus gibt es ja DEN HIER.
Brauche das, um die lange Strecke vom Av-Tunnel bis zum Boss zu programmieren ohne an dem Aufwand zu sterben.
E: Ups, wollte das eigl ins AutoIt Forum stellen...
Grüße
|
eingabe
09/28/2009 - Metin2 Private Server - 4 Replies
hi leute
also wenn ich freebsd installieren will also die eine datei anklicke die 12 oder 13kb grosse da
dann kommt des mit freebsd dann warte ich immer bis der countdown fertig is
anschliessend sagt er was von login da geb ich root ein
aber dann bei passwort kann ich nichts eingeben kann mir jemand dieses prob lösen :D
mfg worker444
|
All times are GMT +1. The time now is 05:01.
|
|