| B3TA_SCR1PT3R |
Jul 23rd, 2005 11:02 PM |
Selection Not Showing In Menu
oi since nobody in this forum knows autoit script
i probly wont get a reply ......but anywho
its not a big issue script runs fine but its starting 2 piss me off
:
#NoTrayIcon
#include <GuiConstants.au3>
$backcolor = "0x00FF00"
;GUI
$gui = GuiCreate("Reflex Test", 200,200)
GuiCtrlCreateLabel("Hit STOP ", 0,22)
;MENU
$colormenu = GuiCtrlCreateMenu("&Color")
$color_green = GuiCtrlCreateMenuItem("Green", $colormenu)
$color_red = GuiCtrlCreateMenuItem("Red", $colormenu)
$color_blue = GuiCtrlCreateMenuItem("Blue", $colormenu)
$color_black = GuiCtrlCreateMenuItem("Black", $colormenu)
$color_yellow = GuiCtrlCreateMenuItem("Yellow", $colormenu)
$color_white = GuiCtrlCreateMenuItem("White", $colormenu)
$diffmenu = GuiCtrlCreateMenu("&Difficulty")
$diff_easy = GuiCtrlCreateMenuItem("Easy", $diffmenu)
$diff_medium = GuiCtrlCreateMenuItem("Normal", $diffmenu)
$diff_hard = GuiCtrlCreateMenuItem("Hard", $diffmenu)
;BUTTONS
$startbutt = GuiCtrlCreateButton("[ START ]",5,155,90,20)
$stopbutt = GuiCtrlCreateButton("[ STOP ]", 105,155,90,20)
;COLOR
;IFS
$elread = GuiCtrlRead($color_green)
If $elread = $GUI_CHECKED Then
$backcolor = "0x00FF00"
GuiCtrlSetState ($color_green, $GUI_CHECKED)
EndIf
$elread = GuiCtrlRead($color_red)
If $elread = $GUI_CHECKED Then
$backcolor = "0xFF0000"
EndIf
$elread = GuiCtrlGetState($color_blue)
If $elread = $GUI_CHECKED Then
$backcolor = "0x0000FF"
EndIf
$elread = GuiCtrlGetState($color_black)
If $elread = $GUI_CHECKED Then
$backcolorw = "0x000000"
$backcolor = $backcolorw
EndIf
$elread = GuiCtrlGetState($color_yellow)
If $elread = $GUI_CHECKED Then
$backcolor = "0xFFFF00"
EndIf
$elread = GuiCtrlRead($color_white)
If $elread = $GUI_CHECKED Then
$backcolor = "0xFFFFFF"
EndIf
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $startbutt
$random_time = Random(100,3000,1)
Sleep($random_time)
$label_5 = GuiCtrlCreateLabel("", 0,0,200,100)
GuiCtrlSetBkColor($label_5,$backcolor)
EndSelect
WEnd
GuiDelete()
see in the first color if i set it 2 checked but the check mark isnt showing up in the menu
so its confusing as 2 wich color u selected
|