Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:33

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

Advertisement



Problem mit Buttons

Discussion on Problem mit Buttons within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Problem mit Buttons

Hallo,
ich habe ein Problem mit den Buttons ich will das eine BMP Datei als Button angezeigt wird , diese wird zuerst in den Temp-Ordner kopiert .
Hier mein code:

$Button1 = GUICtrlCreateButton("", 16, 40, 75, 25, 0,$BS_BITMAP)
GUICtrlSetImage (-1,@Tempdir & "\Button1.bmp")

Aber es funktioniert nicht ,weis jemand warum?
nicobellic is offline  
Old 04/06/2010, 10:41   #2
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Das Problem hat sich von selber gelöst aber jetzt ahbe ich hier ein Problem :

$Group1 = GUICtrlCreateGroup("Staffel 13", 8, 16, 529, 97)
$Button1 = GUICtrlCreateButton("Button1", 16, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button1.bmp")
$Button2 = GUICtrlCreateButton("Button2", 88, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button2.bmp")
$Button3 = GUICtrlCreateButton("Button3", 160, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button3.bmp")
$Button4 = GUICtrlCreateButton("Button4", 232, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button4.bmp")
$Button5 = GUICtrlCreateButton("Button5", 304, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button5.bmp")
$Button6 = GUICtrlCreateButton("Button6", 376, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button6.bmp")
$Button7 = GUICtrlCreateButton("Button7", 448, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button7.bmp")
$Button8 = GUICtrlCreateButton("Button8", 16, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button8.bmp")
$Button9 = GUICtrlCreateButton("Button9", 88, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button9.bmp")
$Button10 = GUICtrlCreateButton("Button10", 160, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button10.bmp")
$Button11 = GUICtrlCreateButton("Button11", 232, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button11.bmp")
$Button12 = GUICtrlCreateButton("Button12", 304, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button12.bmp")
$Button13 = GUICtrlCreateButton("Button13", 376, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button13.bmp")
$Button14 = GUICtrlCreateButton("Button14", 448, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button14.bmp")
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Staffel 14", 8, 120, 529, 97)
$Button15 = GUICtrlCreateButton("", 16, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button1.bmp")
$Button16 = GUICtrlCreateButton("Button2", 88, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button2.bmp")
$Button17 = GUICtrlCreateButton("Button3", 160, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button3.bmp")
$Button18 = GUICtrlCreateButton("Button4", 232, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button4.bmp")
$Button19 = GUICtrlCreateButton("Button5", 304, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button5.bmp")
$Button20 = GUICtrlCreateButton("Button6", 376, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button6.bmp")
$Button21 = GUICtrlCreateButton("Button7", 448, 40, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button7.bmp")
$Button22 = GUICtrlCreateButton("Button8", 16, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button8.bmp")
$Button23 = GUICtrlCreateButton("Button9", 88, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button9.bmp")
$Button24 = GUICtrlCreateButton("Button10", 160, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button10.bmp")
$Button25 = GUICtrlCreateButton("Button11", 232, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button11.bmp")
$Button26 = GUICtrlCreateButton("Button12", 304, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button12.bmp")
$Button27 = GUICtrlCreateButton("Button13", 376, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button13.bmp")
$Button28 = GUICtrlCreateButton("Button14", 448, 64, 75, 25, $BS_BITMAP)
GUICtrlSetImage (-1, @TempDir & "\" & "Button14.bmp")

Jetzt zeigt der mir in Group1 die Buttons richtig an aber in Group2 soll er nochmal die selben buttons verwenden aber da bleibt alles einfach leer , wieso?
nicobellic is offline  
Old 04/06/2010, 17:40   #3
 
nicobellic's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 153
Received Thanks: 12
Weis keiner eine lösung?
nicobellic is offline  
Old 04/06/2010, 19:55   #4
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
hm hättest du jetzt 4 posts hintereinander geschrieben hätte ich ne lösung für dich parat, aber so.....
kknb is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[PROBLEM] Buttons nicht anklickbar!?
02/23/2010 - AutoIt - 7 Replies
Hey Leute hab mal wieder ne GUI erstellt mit Koda und da merk ich das ich die Buttons nicht anklicken kann! Hab schon alles mögliche Versucht, mir wurde gesagt das es iwi an den Schichten liegen könnte aber die Buttons liegen ganz oben sonst könnte man sie ja nicht sehen ;) Hoffe jemand weis da was, Gruß, Eddy² P.S: Nicht nur die Buttons sind nicht anklickbar, sondern überhaupt alles! €dit: Hat sich erledigt! Es lag an dem Hintergrundbild oO Hab einfach in dem Bereich wo die Buttons...
Problem wenn Buttons Disable dann Enable sind die buttons zum senden zu verwenden
11/19/2009 - AutoIt - 5 Replies
also hab ja durch hilfe geschafft buttons mit Checkbox Enable und disable zu machn nur mein prob ist jetzt das ich die buttons nicht verwenden kann hab schon einiges ausprobiert aber wenn ich dann bsp button1 drücke passiert einfach nix kann mir wer helfen `? bekommt thx für ;) hier der code: #include <GUIConstantsEx.au3> GUICreate("") $check = GUICtrlCreateCheckbox("Enable/Disable Buttons", 10, 10, 140, 20) $button = GUICtrlCreateButton("Button",10,50) $button1 =...
Problem mehrere Buttons auswählen
11/18/2009 - AutoIt - 5 Replies
Hi, ich wollte mir mal selber einen bot machen womit ich mehrere Sachen durch Buttonklick starten kann. Soweit ist alles ok aber ein Problem gibts trotzdem: Wenn ich einen Button anklicke wird das auch ausgeführt aber sobalt ich einen 2. dazu haben will funktioniert nur der 1. weiter. Das ist bei jedem Button so den ich dazu starten will. Kann mir jemand da mal weiterhelfen? Hier der Script: #include <GUIConstants.au3> #include <ButtonConstants.au3> #include <WindowsConstants.au3> ...
[Buttons]Hi wer kann mir die Buttons erklären
08/16/2009 - Metin2 Private Server - 6 Replies
Hi ich will kg machen,kenne aber die bedeutung der buttons nich könnt ihr mir vllt.helfen MfG TheRisk Hier ein Screen:http://img16.imageshack.us/img16/3016/gaul. jpg



All times are GMT +1. The time now is 19:33.


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