|
You last visited: Today at 11:50
Advertisement
rote- grüne flächen?
Discussion on rote- grüne flächen? within the AutoIt forum part of the Coders Den category.
08/30/2010, 12:13
|
#1
|
elite*gold: 8
Join Date: Mar 2010
Posts: 4,272
Received Thanks: 1,053
|
rote- grüne flächen?
hayy ich wollte mal fragen wie ich in autoit so rote bzw. grüne flächen mache
da ich einen Hack versuch starten wollte und wenn ich auf "ON" klicke soll das feld grün sein wie geht das?!
|
|
|
08/30/2010, 12:39
|
#2
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Code:
GUICreate('bleh', 100, 100, -1, -1, 0x10080000)
GUICtrlCreateLabel('', 10, 10, 80)
GUICtrlSetBkColor(-1, 0x00FF00)
GUICtrlCreateLabel('', 10, 40, 80)
GUICtrlSetBkColor(-1, 0xFF00000)
Do
Until GUIGetMsg()=-3
|
|
|
08/30/2010, 12:43
|
#3
|
elite*gold: 8
Join Date: Mar 2010
Posts: 4,272
Received Thanks: 1,053
|
ehhm ich meine eig. wie man auf knopfdruck eine rote fläche auf grün macht
Edit: Ich habs dank dir *thx geb*
|
|
|
09/01/2010, 02:20
|
#4
|
elite*gold: 0
Join Date: Feb 2010
Posts: 388
Received Thanks: 111
|
Mit GUICtrlSetData($button3, "AN") steuerst du den an
$Button3 = GUICtrlCreateButton("AUS", 179, 24, 33, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Myriad Web")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0xFF0000)
Anstatt Button kannst auch Label machen !
|
|
|
09/01/2010, 21:09
|
#5
|
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
|
oder so mach ich es immer, is eig dasselbe
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 445, 192, 124)
$Graphic1 = GUICtrlCreateGraphic(224, 32, 84, 36)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xFF0000)
$Button1 = GUICtrlCreateButton("on", 40, 32, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("off", 128, 32, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button2
GUICtrlSetBkColor($Graphic1, 16711680)
case $Button1
GUICtrlSetBkColor($Graphic1, 65280)
EndSwitch
WEnd
|
|
|
09/02/2010, 02:06
|
#6
|
elite*gold: 0
Join Date: Feb 2010
Posts: 388
Received Thanks: 111
|
maxi39
Habs noch was verfeinert. Nette Idee mit Graphic
Ich nahm bisher immer Buttons.
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Local $Graf1 = 16711680
Local $Graf2 = 65280
$Form1 = GUICreate("Graphic Farbe wechseln", 325, 145, 322, 324)
$Graphic1 = GUICtrlCreateGraphic(224, 32, 84, 36)
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetBkColor(-1, 0xFF0000)
$Button1 = GUICtrlCreateButton("on", 40, 32, 75, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("off", 128, 32, 75, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
case $Button1
GUICtrlSetBkColor($Graphic1, $Graf2)
GUICtrlCreateLabel(Hex($Graf2) & " " & "ist gleich" & " " & $Graf2 & " " & "Decimal" & " " & "also Grün", 8 , 95 , 350 , 15)
GUICtrlSetFont(-1, 10, 800, 0, "Myriad Web")
case $Button2
GUICtrlSetBkColor($Graphic1, $Graf1)
GUICtrlCreateLabel(Hex($Graf1) & " " & "ist gleich" & " " & $Graf1 & " " & "Decimal" & " " & "also Rot", 8 , 120 , 350 , 15)
GUICtrlSetFont(-1, 10, 800, 0, "Myriad Web")
EndSwitch
WEnd
|
|
|
|
Similar Threads
|
[Guide]Flächen adden
11/05/2011 - World of Warcraft - 5 Replies
Adts hinzufügen
Heute zeig ich euch wie man mit viiiiel zeit lustige Flachen adden kann :O)
IHR MÜSST EUCH EINIGERMAßEN GUT MIT MODELCHANING AUSKENNEN UM DAMIT KLAR ZU KOMMEN!
Ahja und es gibt 2 versionen. Version 1 ist mit thaliis. D.h. mit noggit darf das was ihr dann erstellt habt nicht in berührung kommen! Version 2 ist mit Cryects Tools. D.h. ihr dürft ohne Probleme mit noggit drauf losbasteln *g*
Was brauch ich?
-My Warcraft studio
-Mpq Master
|
Flimmernde Pixel (GRÜNE )
09/11/2010 - Technical Support - 5 Replies
Jo leute ich hab ein problem und zwar :
Beim zocken nur bei the godfather 2 kommen immer kleine grüne punkte auf dem bildschirm !
Das nervt wie sau !
An der graka kann es net liegen weil spiele wie GTA 4 Fallout 3 ohne probs laufen ( Alles auf hoch )
Bitte helft mir !
|
[VK]Verkaufe fast 300 Grüne Potts Metin2DE!
02/07/2010 - Metin2 Trading - 2 Replies
Hi an alle,
Ich vk hier meine fast 300 Grünen potts (G) +30AG
Die Potts befinden sich auf Server2 Kartago.
Sollte einer interesse haben meldet der sich hier im Thread mit seinem Gebot oder per PN.
Ich nehme blaue karten wo ein rotes schloss drauf ist und was weisses draufsteht oder was andere bietet!!
MfG
|
[CS:S]Auf dem Server Grüne Schirft Machen?
12/28/2009 - General Gaming Discussion - 2 Replies
Hi liebe Com :D
Ich hab mal ne Frage... Ich besitze einen CS:S Server.
Auf anderen Servern sehe ich eig. fast immer so "Dauernachrichten",
welche einfach mal so nach 5 Minuten wieder kommen zB:
"Wir suchen noch Member!" In so einer grünen Schrift..
Könnte mir einer sagen wie ich das mache? :D
gibt dann natürlich auch ein Thx :D
Und bitte kein Spamm :D
|
Portmap rote anstatt grüne kreise
11/06/2009 - Metin2 Private Server - 5 Replies
grade eben am Serverhochfahren alles funkt nur bei Portmap sind die kreise rot schatt grünn wenn ich sie starte ????????
Wisst ihr was darüber weil gestern alles normal war also grün
bitte um Hilfe
|
All times are GMT +2. The time now is 11:50.
|
|