|
You last visited: Today at 08:41
Advertisement
[Question] GUICtrlRead und Combo
Discussion on [Question] GUICtrlRead und Combo within the AutoIt forum part of the Coders Den category.
08/02/2011, 00:48
|
#1
|
elite*gold: 0
Join Date: Jul 2011
Posts: 53
Received Thanks: 12
|
[Question] GUICtrlRead und Combo
Ich habe ein Programm gemacht ,
in dem ich schrieben wollte , dass Input1 = $1 ist aber ,
es kommt trotzdem ein error und des prog. geht aus
Cod :
PHP Code:
#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Project Kilabel VBI - Staing v0.1", 315, 208, 192, 124) $Combo1 = GUICtrlCreateCombo("", 8, 32, 145, 25) GUICtrlSetData(-1, "Rot (0x0ff0000)|Blau (0x00042ff)|Grün (0x000cf70)|Gelb (0x0fcff00)|Schwarz (0x0000000)") $Label1 = GUICtrlCreateLabel("Farbe einstellen", 8, 8, 78, 17) $Label2 = GUICtrlCreateLabel("Text erstellen", 8, 64, 67, 17) $Input1 = GUICtrlCreateInput("Text Feld", 8, 88, 145, 21) GUICtrlSetLimit(-1, 21) $Label3 = GUICtrlCreateLabel("Schriftart erstellen", 8, 120, 88, 17) $Combo2 = GUICtrlCreateCombo("", 8, 144, 145, 25) GUICtrlSetState(-1, $GUI_DISABLE) $Button1 = GUICtrlCreateButton("Text Feld erstellen", 8, 176, 99, 25, 0) $Button2 = GUICtrlCreateButton("Cancel", 112, 176, 43, 25, 0) $Icon1 = GUICtrlCreateIcon("C:\Users\ALex\Desktop\Pics\Speacial.ico", 0, 160, 64, 143, 142, BitOR($SS_NOTIFY,$WS_GROUP)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlRead($Input1,$1) GUICtrlCreateLabel($1, 160, 32, 151, 17)
EndSwitch WEnd
Und da ist noch mein Problem mit der Combo dings da.
Ich weiß nicht wie man des schreibt !
Help please 
|
|
|
08/02/2011, 00:50
|
#2
|
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
|
erstmal solltest du lernen fehlermeldung zu lesen und zu verstehen was die bedeuten...
$1 ist nicht deklariert.
mal sehen wann der fertige source zum c&p gepostet wird...
|
|
|
08/02/2011, 00:52
|
#3
|
elite*gold: 0
Join Date: Jul 2011
Posts: 53
Received Thanks: 12
|
Quote:
Originally Posted by kknb
erstmal solltest du lernen fehlermeldung zu lesen und zu verstehen was die bedeuten...
$1 ist nicht deklariert.
mal sehen wann der fertige source zum c&p gepostet wird...
|
danke sehr dasu mir hilfst und nochetwas ! erklärste mir auchnoch wie des mit combo geht ? x3 Habe bei den fraben die farb codes hinter geschrieben xD
|
|
|
08/02/2011, 00:55
|
#4
|
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
|
Bei combo:
PHP Code:
If $Combo1 = "Rot (0x0ff0000)" Then bla ElseIf $Combo1 = "Blau (0x00042ff)" Then ... ..
Und wegen dem Textfeld musst du
PHP Code:
$1 = GUICtrlRead($Input1) GUICtrlCreateLabel($1, 160, 32, 151, 17)
|
|
|
08/02/2011, 01:11
|
#5
|
elite*gold: 0
Join Date: Jul 2011
Posts: 53
Received Thanks: 12
|
Quote:
Originally Posted by 'Butterkuchen
Bei combo:
PHP Code:
If $Combo1 = "Rot (0x0ff0000)" Then
bla
ElseIf $Combo1 = "Blau (0x00042ff)" Then
...
..
Und wegen dem Textfeld musst du
PHP Code:
$1 = GUICtrlRead($Input1)
GUICtrlCreateLabel($1, 160, 32, 151, 17)
|
WoW danke sehr x3 war echt nett von dia
Dafür gebe ich dir ein coooooles viedeo über meinen freund
|
|
|
08/02/2011, 01:26
|
#6
|
elite*gold: 556
Join Date: Aug 2006
Posts: 502
Received Thanks: 404
|
Wieso meldet man sich hier als "♥ Jessica ♥" an obwohl man Alex heißt?
Nur so mal neben bei gesagt :P
|
|
|
08/02/2011, 01:31
|
#7
|
elite*gold: 0
Join Date: Jul 2011
Posts: 53
Received Thanks: 12
|
Achso wegen dem pic und dem usernamen da ! ... des der PC meines bruders ! mein leppi is aus dem fenster gefallen weil mein DUMMER BRUDER mich erschräckt hat und weil er ehr nur mit meiner abf am flirten is nehme ich seinen PC xDDDDDD
Quote:
Originally Posted by 'Butterkuchen
Bei combo:
PHP Code:
If $Combo1 = "Rot (0x0ff0000)" Then bla ElseIf $Combo1 = "Blau (0x00042ff)" Then ... ..
Und wegen dem Textfeld musst du
PHP Code:
$1 = GUICtrlRead($Input1) GUICtrlCreateLabel($1, 160, 32, 151, 17)
|
PHP Code:
#include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Project Kilabel VBI - Staing v0.1", 315, 208, 192, 124) $Combo1 = GUICtrlCreateCombo("", 8, 32, 145, 25) GUICtrlSetData(-1, "Rot (0x0ff0000)|Blau (0x00042ff)|Grün (0x000cf70)|Gelb (0x0fcff00)|Schwarz (0x0000000)") $Label1 = GUICtrlCreateLabel("Farbe einstellen", 8, 8, 78, 17) $Label2 = GUICtrlCreateLabel("Text erstellen", 8, 64, 67, 17) $Input1 = GUICtrlCreateInput("Text Feld", 8, 88, 145, 21) GUICtrlSetLimit(-1, 21) $Label3 = GUICtrlCreateLabel("Schriftart erstellen", 8, 120, 88, 17) $Combo2 = GUICtrlCreateCombo("", 8, 144, 145, 25) GUICtrlSetState(-1, $GUI_DISABLE) $Button1 = GUICtrlCreateButton("Text Feld erstellen", 8, 176, 99, 25, 0) $Button2 = GUICtrlCreateButton("Cancel", 112, 176, 43, 25, 0) $Icon1 = GUICtrlCreateIcon("C:\Users\ALex\Desktop\Pics\Speacial.ico", 0, 160, 64, 143, 142, BitOR($SS_NOTIFY,$WS_GROUP)) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $1 = GUICtrlRead($Input1) $Label0 = GUICtrlCreateLabel($1 , 160, 32, 151, 17) If $Combo1 = "Rot (0x0ff0000)" Then GUICtrlSetColor($Label0, 0x0ff0000) ElseIf $Combo1 = "Blau (0x00042ff)" Then GUICtrlSetColor($Label0, 0x00042ff) ElseIf $Combo1 = "Grün (0x000cf70)" Then GUICtrlSetColor($Label0, 0x000cf70) ElseIf $Combo1 = "Gelb (0x0fcff00)" Then GUICtrlSetColor($Label0,0x0fcff00) ElseIf $Combo1 = "Schwarz (0x0000000)" Then GUICtrlSetColor($Label0, 0x0000000) EndIf
EndSwitch WEnd
|
|
|
08/02/2011, 02:57
|
#8
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
|
Quote:
Originally Posted by 'Butterkuchen
Bei combo:
PHP Code:
If $Combo1 = "Rot (0x0ff0000)" Then
bla
ElseIf $Combo1 = "Blau (0x00042ff)" Then
...
..
|
$Combo1 beinhaltet die ID des Controls. Somit kann man es nicht mit dem Inhalt vergleichen. Wie bei jedem anderen Control auch benutzt man hierfür GUICtrlRead().
Das TE fehlt jegliches Wissen über AutoIt? Das einzige, was ich sehe, ist die GUI, aber selbst die musste man nur mit Koda zusammen klicken.
Die Hintergrundfarbe des Labels änderst du mit GUICtrlSetBkColor().
Die Schriftfarbe des Labels änderst du mit GUICtrlSetColor().
Die Schriftart des Labels änderst du mit GUICtrlSetFont() (nur Standardschriftarten).
In deinem Beispiel erstellst du immer wieder eine neues Label über dem Alten. Das ist nicht zu empfehlen. Lösche das vorherige Label mit GUICtrlDelete().
|
|
|
08/02/2011, 12:35
|
#9
|
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
|
Quote:
Originally Posted by kknb
erstmal solltest du erwachsen werden
|
hab das mal vereinfacht
|
|
|
 |
Similar Threads
|
GUICtrlRead ?
03/26/2011 - AutoIt - 2 Replies
Hallo E*PvP ich stehe gerade irgend wie aufm Schlauch D:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Wecker", 242, 438, 192, 124)
$Label11 = GUICtrlCreateLabel("Uhrzeit", 0, 8, 37, 17)
|
question combo hack/bot ?
01/07/2011 - Atlantica Online - 1 Replies
i have a question where do you get the combo hack / bot?
I've watched videos on youtube that is and many have combo hack / bot?
|
GUICtrlRead und WinSetState
12/10/2009 - AutoIt - 6 Replies
Hi, ich hätte da mal eine Frage. Und zwar programmier ich grade ein Programm (Script), das ein beliebiges Programm beendet, minimiert oder maximiert.
Mein Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiEdit.au3>
|
[Question]Cabal Combo
03/22/2009 - Cabal Online - 0 Replies
I saw some threads involving the cabal combo and some macros.
i couldn't do the quick macro thingie, but i have a G11 keyboard.
so, i got the driver for it, and it has macros.
and i tried to set them up for cabal
well, here is how it looks like :
http://i629.photobucket.com/albums/uu11/FkN-Suzak u/untitled.jpg
it's not a hack. The keyboard just simulates the action of a keypress.
i have problems when it loops (between skill number 5 and skill number 2)
and between skill number 3 and...
|
Question: About Combo Broadcasts
03/31/2008 - Cabal Online - 4 Replies
How many combos does it take for others to see how many someone did on a combo?
And does it broadcast how far? Serverwide? Channelwide? Local Area?
Thanks in advanced.
|
All times are GMT +1. The time now is 08:42.
|
|