AutoIT GUI Problem

05/09/2009 18:01 Xereon#1
So ich habe mir eben mit Koda ein GUI erstellt jedoch bin ich garnicht zufrieden.
Das einzige was wirklich funktinoiert ist die Menüleiste.
Die Radioboxen und Checkboxen sind nicht anklickbar.
Ebenso ist der Input nicht selektierbar.

Woran liegst?
PHP Code:
#Region ### START Koda GUI section ### Form=c:\users\parani4x\documents\autoit sripte\forms\empty bot form.kxf
$MainWin GUICreate("SS & LB Points Bot"546303210137)
$Pic1 GUICtrlCreatePic("C:\Users\parani4x\Documents\AutoIT Sripte\SS LB Wurm Bot\img 1.jpg"2648273233BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 GUICtrlCreatePic("C:\Users\parani4x\Documents\AutoIT Sripte\SS LB Wurm Bot\img 2.jpg"00545281BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Start GUICtrlCreateButton("Start"6419212941)
GUICtrlSetFont(-1224000"Narkisim")
$Build GUICtrlCreateInput("OQCjUqmLqOBZhsFO8fhBAub5N"26424827321$ES_CENTERBitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetFont(-198000"MS Sans Serif")
$Controls GUICtrlCreateGroup("Controls"402416197)
GUICtrlCreateGroup("", -99, -9911)
$running GUICtrlCreateLabel("Running:   0h"641527920)
GUICtrlSetFont(-1104000"MS Sans Serif")
$autosell GUICtrlCreateCheckbox("Auto Sell ON/OFF"484015317)
$sellnormal GUICtrlCreateRadio("Normal"725612917)
$sellgold GUICtrlCreateRadio("Dont sell gold"727212917)
$autoident GUICtrlCreateCheckbox("Auto Ident"488815317)
$Info GUICtrlCreateMenu("&Info")
$Howto GUICtrlCreateMenuItem("How To"$Info)
$Interface GUICtrlCreateMenuItem("Interface"$Info)
$MenuItem8 GUICtrlCreateMenuItem("Ckecklist"$Info)
$about GUICtrlCreateMenu("&Options")
$Shortkeys GUICtrlCreateMenuItem("Shortkeys"$about)
$MenuItem1 GUICtrlCreateMenuItem("Hide / Unhide"$about)
$options GUICtrlCreateMenu("&FAQ")
$FAQsub GUICtrlCreateMenuItem("FAQ"$options)
$FAQ GUICtrlCreateMenu("&Update")
$Updatesub GUICtrlCreateMenuItem("Update"$FAQ)
$Update GUICtrlCreateMenu("&About")
$Version GUICtrlCreateMenuItem("Version"$Update)
$epvp GUICtrlCreateMenuItem("Elite PvPers"$Update)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
    
Case $GUI_EVENT_CLOSE
        
Exit
    Case 
$sellnormal
Exit

EndSwitch
WEnd 
05/09/2009 18:22 kknb#2
grrr wo sind die includes?

kein plan wo dein problem liegt, funktioniert doch alles...

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <Date.au3>
#Include <Misc.au3>


#Region ### START Koda GUI section ### Form=c:\users\parani4x\documents\autoit sripte\forms\empty bot form.kxf
$MainWin = GUICreate("SS & LB Points Bot", 546, 303, 210, 137)
$Pic1 = GUICtrlCreatePic("C:\Users\parani4x\Documents\AutoIT Sripte\SS LB Wurm Bot\img 1.jpg", 264, 8, 273, 233, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 = GUICtrlCreatePic("C:\Users\parani4x\Documents\AutoIT Sripte\SS LB Wurm Bot\img 2.jpg", 0, 0, 545, 281, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Start = GUICtrlCreateButton("Start", 64, 192, 129, 41)
GUICtrlSetFont(-1, 22, 400, 0, "Narkisim")
$Build = GUICtrlCreateInput("OQCjUqmLqOBZhsFO8fhBAub5N", 264, 248, 273, 21, $ES_CENTER, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
$Controls = GUICtrlCreateGroup("Controls", 40, 24, 161, 97)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$running = GUICtrlCreateLabel("Running:   0h", 64, 152, 79, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$autosell = GUICtrlCreateCheckbox("Auto Sell ON/OFF", 48, 40, 153, 17)
$sellnormal = GUICtrlCreateRadio("Normal", 72, 56, 129, 17)
$sellgold = GUICtrlCreateRadio("Dont sell gold", 72, 72, 129, 17)
$autoident = GUICtrlCreateCheckbox("Auto Ident", 48, 88, 153, 17)
$Info = GUICtrlCreateMenu("&Info")
$Howto = GUICtrlCreateMenuItem("How To", $Info)
$Interface = GUICtrlCreateMenuItem("Interface", $Info)
$MenuItem8 = GUICtrlCreateMenuItem("Ckecklist", $Info)
$about = GUICtrlCreateMenu("&Options")
$Shortkeys = GUICtrlCreateMenuItem("Shortkeys", $about)
$MenuItem1 = GUICtrlCreateMenuItem("Hide / Unhide", $about)
$options = GUICtrlCreateMenu("&FAQ")
$FAQsub = GUICtrlCreateMenuItem("FAQ", $options)
$FAQ = GUICtrlCreateMenu("&Update")
$Updatesub = GUICtrlCreateMenuItem("Update", $FAQ)
$Update = GUICtrlCreateMenu("&About")
$Version = GUICtrlCreateMenuItem("Version", $Update)
$epvp = GUICtrlCreateMenuItem("Elite PvPers", $Update)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
Switch $nMsg
    Case $GUI_EVENT_CLOSE
        Exit
EndSwitch
WEnd
05/09/2009 18:28 Xereon#3
weiter oben, ahb jetz nur den gui teil ansich gepostet.

Includes sind:

#include "tt6.au3"
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
05/09/2009 18:40 Xereon#4
Quote:
Originally Posted by kknb View Post
grrr wo sind die includes?

kein plan wo dein problem liegt, funktioniert doch alles...

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#include <Date.au3>
#Include <Misc.au3>


#Region ### START Koda GUI section ### Form=c:\users\parani4x\documents\autoit sripte\forms\empty bot form.kxf
$MainWin = GUICreate("SS & LB Points Bot", 546, 303, 210, 137)
$Pic1 = GUICtrlCreatePic("C:\Users\parani4x\Documents\AutoIT Sripte\SS LB Wurm Bot\img 1.jpg", 264, 8, 273, 233, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 = GUICtrlCreatePic("C:\Users\parani4x\Documents\AutoIT Sripte\SS LB Wurm Bot\img 2.jpg", 0, 0, 545, 281, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Start = GUICtrlCreateButton("Start", 64, 192, 129, 41)
GUICtrlSetFont(-1, 22, 400, 0, "Narkisim")
$Build = GUICtrlCreateInput("OQCjUqmLqOBZhsFO8fhBAub5N", 264, 248, 273, 21, $ES_CENTER, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 9, 800, 0, "MS Sans Serif")
$Controls = GUICtrlCreateGroup("Controls", 40, 24, 161, 97)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$running = GUICtrlCreateLabel("Running:   0h", 64, 152, 79, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$autosell = GUICtrlCreateCheckbox("Auto Sell ON/OFF", 48, 40, 153, 17)
$sellnormal = GUICtrlCreateRadio("Normal", 72, 56, 129, 17)
$sellgold = GUICtrlCreateRadio("Dont sell gold", 72, 72, 129, 17)
$autoident = GUICtrlCreateCheckbox("Auto Ident", 48, 88, 153, 17)
$Info = GUICtrlCreateMenu("&Info")
$Howto = GUICtrlCreateMenuItem("How To", $Info)
$Interface = GUICtrlCreateMenuItem("Interface", $Info)
$MenuItem8 = GUICtrlCreateMenuItem("Ckecklist", $Info)
$about = GUICtrlCreateMenu("&Options")
$Shortkeys = GUICtrlCreateMenuItem("Shortkeys", $about)
$MenuItem1 = GUICtrlCreateMenuItem("Hide / Unhide", $about)
$options = GUICtrlCreateMenu("&FAQ")
$FAQsub = GUICtrlCreateMenuItem("FAQ", $options)
$FAQ = GUICtrlCreateMenu("&Update")
$Updatesub = GUICtrlCreateMenuItem("Update", $FAQ)
$Update = GUICtrlCreateMenu("&About")
$Version = GUICtrlCreateMenuItem("Version", $Update)
$epvp = GUICtrlCreateMenuItem("Elite PvPers", $Update)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
Switch $nMsg
    Case $GUI_EVENT_CLOSE
        Exit
EndSwitch
WEnd
Wenn ich das wüsste dann wäre ich ja froh.
Ich kann halt die Checkboxen usw nicht anklinken, ich hab kA warum.


EDIT:

Hatte eben rausgefunden das, weiß Gott warum SS_notify am Hintergrund aktiv war.
Ich sag dazu nur : SelfOwned T_T
10/09/2010 22:45 DreamingSoul007#5
Wie mache ich meine Checkbox nicht anklickbar aber das sie trozdem da ist also der Befehl
10/11/2010 01:34 PenGuin :O#6
Code:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$bActive = True

$Form1 = GUICreate("Beispiel", 181, 125, 488, 295)
GUISetFont(12, 400, 0, "Arial")
$Checkbox1 = GUICtrlCreateCheckbox("Test", 24, 32, 129, 17)
$Button1 = GUICtrlCreateButton("Anklickbar", 32, 80, 121, 33)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$bActive = Not $bActive
			Switch $bActive
				Case True
					GUICtrlSetData($Button1, "Nicht Anklickbar")
					GUICtrlSetState($Checkbox1, $GUI_DISABLE)  ;Checbkox deaktivieren
				Case False
					GUICtrlSetData($Button1, "Anklickbar")
					GUICtrlSetState($Checkbox1, $GUI_ENABLE)  ;;Checbkox aktivieren
			EndSwitch
	EndSwitch
WEnd
bitte.
10/11/2010 11:03 maxi39#7
Quote:
Originally Posted by pinguin94 View Post
Code:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$bActive = True

$Form1 = GUICreate("Beispiel", 181, 125, 488, 295)
GUISetFont(12, 400, 0, "Arial")
$Checkbox1 = GUICtrlCreateCheckbox("Test", 24, 32, 129, 17)
$Button1 = GUICtrlCreateButton("Anklickbar", 32, 80, 121, 33)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$bActive = Not $bActive
			Switch $bActive
				Case True
					GUICtrlSetData($Button1, "Nicht Anklickbar")
					GUICtrlSetState($Checkbox1, $GUI_DISABLE)  ;Checbkox deaktivieren
				Case False
					GUICtrlSetData($Button1, "Anklickbar")
					GUICtrlSetState($Checkbox1, $GUI_ENABLE)  ;;Checbkox aktivieren
			EndSwitch
	EndSwitch
WEnd
bitte.
genau danach hab ich auch grad gesucht