Keine Ahnung warum :D

  • [autoit]

    #include <NomadMemory.au3>

    [/autoit][autoit][/autoit][autoit]

    Func FreezeMoney()

    opt ("MustDeclareVars", 1)
    Local $msg, $button, $process, $textfield, $handle, $money

    [/autoit][autoit][/autoit][autoit]

    opt ("GUICoordMode", 2)
    GUICreate ("Money Freezer", 800, 600)
    GUICtrlCreateLabel ("Enter the amount of money you want to have and press freeze:)", 10, 10)
    $textfield = GUICtrlCreateInput ("", 0, -10)
    $button = GUICtrlCreateButton ("Freeze", 0, -20)
    GUISetState()
    $msg = GUIGetMsg()
    Select
    Case $msg = $button
    $process = ProcessExists ("hl.exe")
    $handle = _MemoryOpen("" & $process & "")
    $money = _MemoryRead("0x019E4E9C", "" & $handle & "", "")
    _MemoryWrite("0x019E4E9C", "" & $handle & "", "" & $textfield & "")
    if $money < $textfield Then
    _MemoryWrite("0x019E4E9C", "", "" & $textfield & "")
    EndIf

    EndSelect

    EndFunc

    [/autoit]


    Das ist der Fehlercode... Also wäre cool wenn mir da jemand helfen könnte^^ Ich probier es trotzdem weiter und wenn es gelöst ist schreib ichs drunter

    Einmal editiert, zuletzt von felixdabayer (17. Juli 2008 um 13:50)

  • Meinst du vielleicht so?
    Ich kann natüröich nicht testen, ob die funktion klappt, aber die GUI Funktioniert so, ...

    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>
    #include <NomadMemory.au3>

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    FreezeMoney()

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Func FreezeMoney()
    Opt("MustDeclareVars", 1)
    Local $msg, $button, $process, $textfield, $handle, $money
    GUICreate("Money Freezer", 336, 108, 193, 126)
    $textfield = GUICtrlCreateInput("", 16, 38, 121, 21)
    $button = GUICtrlCreateButton("Freeze", 16, 68, 75, 25, 0)
    GUICtrlCreateLabel("Enter the amount of money you want to have and press freeze:)", 18, 15, 308, 20)
    GUISetState(@SW_SHOW)

    [/autoit] [autoit][/autoit] [autoit]


    While 1
    $msg = GUIGetMsg()
    Switch $msg

    Case $GUI_EVENT_CLOSE
    Exit

    Case $button
    $process = ProcessExists("hl.exe")
    $handle = _MemoryOpen("" & $process & "")
    $money = _MemoryRead("0x019E4E9C", "" & $handle & "", "")
    _MemoryWrite("0x019E4E9C", "" & $handle & "", "" & $textfield & "")
    If $money < $textfield Then
    _MemoryWrite("0x019E4E9C", "", "" & $textfield & "")
    EndIf

    EndSwitch
    WEnd
    EndFunc ;==>FreezeMoney

    [/autoit]
  • Ah danke dir, bei mir war ja das problem das mein GUI nicht aufgetaucht ist. jetzt hat sich das gelöst