Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Checkbox funktioniert nicht.

Discussion on Checkbox funktioniert nicht. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
RettAss's Avatar
 
elite*gold: 20
Join Date: Jan 2010
Posts: 489
Received Thanks: 1,646
Question Checkbox funktioniert nicht.

Hab jetzt bestimmt schon zich variationen ausprobiert, aber es funktionirt einfach nicht. Die Funktion soll so aussehn, Checkbox + Input, wenn ich einen wert in den input schreibe, soll er durchdas aktivieren der Checkbox aktiviert werden und beim deaktivieren der checkbox eben wieder deaktiviert werden, was mach ich dabei falsch?

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>

$pid ProcessExists("3D Live Pool.exe")

If 
$pid 0 Then
    MsgBox
(16,@ScriptName,'Prozess nicht gefunden, Skript wird beendet.')
    Exit 
1
EndIf

$open _MemoryOpen($pid)

$adresse 0x004A3480
$adresse1 
0x004A347C

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Test (checkbox)"209148192124)
$Checkbox1 GUICtrlCreateCheckbox("Checkbox1"96241749)
$Checkbox2 GUICtrlCreateCheckbox("Checkbox2"96801749)
$Input1 GUICtrlCreateInput(""120408121)
$Input2 GUICtrlCreateInput(""120968121)
$Label1 GUICtrlCreateLabel("Bot:"48324633)
GUICtrlSetFont(-1184000"MS Sans Serif")
$Label2 GUICtrlCreateLabel("Spieler:"8888833)
GUICtrlSetFont(-1184000"MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Func Bot()
 
_MemoryWrite($adresse,$open,GUICTrlRead($input1))
 
EndFunc

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
           If 
BitAND(GuiCtrlRead($Checkbox1), $GUI_CHECKED) = $GUI_CHECKED Then Bot()

    EndSwitch
WEnd 
RettAss is offline  
Old 12/05/2010, 11:01   #2
 
ZeraPain's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 360
Received Thanks: 249
setz doch einfach ein case event auf die checkbox und überprüfe dann, wenn sie angeklickt wurde, ob sie checked oder unchecked ist.
ZeraPain is offline  
Old 12/05/2010, 11:40   #3
 
RettAss's Avatar
 
elite*gold: 20
Join Date: Jan 2010
Posts: 489
Received Thanks: 1,646
Wenn ichs mit "Case" probiere komm ich auch nicht ans gewünschte ziel, wie gesagt habe schon etliches ausprobiert, anscheinend vergess ich immer etwas wichtiges
RettAss is offline  
Old 12/05/2010, 11:46   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Du fragst erst die checkbox ab nachdem du das script beendet hast (falls der fall eintritt das das X gedrückt wurde)
Setz die Abfrage hinter Endswitch und dann sollte es gehen

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>

$pid ProcessExists("3D Live Pool.exe")

If 
$pid 0 Then
    MsgBox
(16, @ScriptName'Prozess nicht gefunden, Skript wird beendet.')
    Exit 
1
EndIf

$open _MemoryOpen($pid)

$adresse 0x004A3480
$adresse1 
0x004A347C

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Test (checkbox)"209148192124)
$Checkbox1 GUICtrlCreateCheckbox("Checkbox1"96241749)
$Checkbox2 GUICtrlCreateCheckbox("Checkbox2"96801749)
$Input1 GUICtrlCreateInput(""120408121)
$Input2 GUICtrlCreateInput(""120968121)
$Label1 GUICtrlCreateLabel("Bot:"48324633)
GUICtrlSetFont(-1184000"MS Sans Serif")
$Label2 GUICtrlCreateLabel("Spieler:"8888833)
GUICtrlSetFont(-1184000"MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Func Bot()
    
_MemoryWrite($adresse$openGUICtrlRead($Input1))
EndFunc   ;==>Bot

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
    EndSwitch
    If 
BitAND(GUICtrlRead($Checkbox1), $GUI_CHECKED) = $GUI_CHECKED Then Bot()
WEnd 
BlackHybrid is offline  
Thanks
1 User
Old 12/05/2010, 11:58   #5
 
RettAss's Avatar
 
elite*gold: 20
Join Date: Jan 2010
Posts: 489
Received Thanks: 1,646
Quote:
Originally Posted by BlackHybrid View Post
Du fragst erst die checkbox ab nachdem du das script beendet hast (falls der fall eintritt das das X gedrückt wurde)
Setz die Abfrage hinter Endswitch und dann sollte es gehen

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <NomadMemory.au3>

$pid ProcessExists("3D Live Pool.exe")

If 
$pid 0 Then
    MsgBox
(16, @ScriptName'Prozess nicht gefunden, Skript wird beendet.')
    Exit 
1
EndIf

$open _MemoryOpen($pid)

$adresse 0x004A3480
$adresse1 
0x004A347C

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Test (checkbox)"209148192124)
$Checkbox1 GUICtrlCreateCheckbox("Checkbox1"96241749)
$Checkbox2 GUICtrlCreateCheckbox("Checkbox2"96801749)
$Input1 GUICtrlCreateInput(""120408121)
$Input2 GUICtrlCreateInput(""120968121)
$Label1 GUICtrlCreateLabel("Bot:"48324633)
GUICtrlSetFont(-1184000"MS Sans Serif")
$Label2 GUICtrlCreateLabel("Spieler:"8888833)
GUICtrlSetFont(-1184000"MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Func Bot()
    
_MemoryWrite($adresse$openGUICtrlRead($Input1))
EndFunc   ;==>Bot

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
    EndSwitch
    If 
BitAND(GUICtrlRead($Checkbox1), $GUI_CHECKED) = $GUI_CHECKED Then Bot()
WEnd 
Ohhhh wasn peinlicher fehler naja zumindest ist sonst alles in ordnung mit dem script, Danke Für die hilfe

Mfg
RettAss is offline  
Old 12/05/2010, 12:05   #6


 
Al Kappaccino's Avatar
 
elite*gold: 179
Join Date: Oct 2009
Posts: 7,853
Received Thanks: 8,558
PHP Code:
Case $Checkbox1
    
If GUICtrlRead($Checkbox1) = 1 Then
        Bot
()
    Else
        Return
    EndIf 
Oder so
Al Kappaccino is offline  
Thanks
1 User
Old 12/05/2010, 15:22   #7
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Wozu das Return? O.o

Code:
Case $Checkbox1
    If GUICtrlRead($Checkbox1) Then Bot()
PenGuin :O is offline  
Reply


Similar Threads Similar Threads
Warock funktioniert nicht! (Login nicht sichtbar)
07/23/2010 - WarRock - 5 Replies
Hallo zusammen, Seit dem Update startet Warrock nur noch bis zu Werbung(get Prem). Wenn ich diese wegklicke sieht man kein Login(Bildschirm schwarz). Ich habe Windows Vista Home, 32Bit und kein Antivir. Woran liegt das, hat jmd dasselbe Problem? --Danke--
[AUtoIt] Checkbox funzt nicht?!
06/24/2010 - AutoIt - 9 Replies
habe hier mal einen Spambot geschrieben... (ist noch nicht fertig) nur leider funktionieren die checkboxen nicht , bis auf die erste... HotKeySet("{ESC}", "_exit") #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $GUI_GlobalSpam = GUICreate("GlobalSpam Info", 536, 309, 398, 153) $GUI_Spam1 = GUICtrlCreateInput("Was soll GlobalSpam als erstes spamen?", 24, 96, 321, 21)
Dorfplatzwächter anklicken geht nicht - Entbuggen nicht funktioniert.
03/23/2010 - Metin2 Private Server - 0 Replies
Huhu, bei mir hat das entbuggen des Dorfplatzwächtes nicht geklappt, ich hab diese Guildmanage_Quest oder wie sie heißt eingepackt, ich hab danach sogar ALLE Questen reingepackt. Ging alles nicht, brauche umbedingt Hilfe. Will nämlich den Clienten von NeonBlue benutzen, oder muss ich dazu noch ne Mob_Proto + Item_Proto (übersetzt) haben? bitte um Hilfe. MfG P.S. SuFu und Google haben beide nichts ausgespuckt. -.-"
Bei mir funktioniert das Löschcode nicht. Er hat mal funktioniert
01/07/2010 - Metin2 Private Server - 0 Replies
Hi. Also auf mienem PServer geht das mit dem Löschcode nicht. Kann mir jemand sagen warum? Ich weiß noch das es mal ging. Aber den Spieler in der Datenbank löschen geht nicht weil da diser lvl 0 charackter bleibt und ich nciht weiß wie man den weg kriegt Bitte kan mir jemand helfen.
Mhs funktioniert nicht mehr auch nicht mit metin programm!
10/05/2008 - Metin2 - 8 Replies
Metin programm funktioniert bei mir nicht seit gestern



All times are GMT +1. The time now is 18:30.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.