Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:55

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

Advertisement



AutoIT GUI Problem

Discussion on AutoIT GUI Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Xereon's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
AutoIT GUI Problem

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 
Xereon is offline  
Old 05/09/2009, 18:22   #2
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
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
kknb is offline  
Old 05/09/2009, 18:28   #3
 
Xereon's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
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>
Xereon is offline  
Old 05/09/2009, 18:40   #4
 
Xereon's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 793
Received Thanks: 366
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
Xereon is offline  
Old 10/09/2010, 22:45   #5
 
elite*gold: LOCKED
Join Date: Oct 2010
Posts: 812
Received Thanks: 1,581
Wie mache ich meine Checkbox nicht anklickbar aber das sie trozdem da ist also der Befehl
DreamingSoul007 is offline  
Old 10/11/2010, 01:34   #6
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
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.
PenGuin :O is offline  
Thanks
2 Users
Old 10/11/2010, 11:03   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
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
maxi39 is offline  
Reply




All times are GMT +1. The time now is 07:56.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.