Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 23rd, 2005, 11:02 PM   #1
B3TA_SCR1PT3R
Hobbyist Programmer
 
B3TA_SCR1PT3R's Avatar
 
Join Date: Jul 2005
Location: Dallas, Texas
Posts: 101
Rep Power: 0 B3TA_SCR1PT3R is an unknown quantity at this point
Send a message via AIM to B3TA_SCR1PT3R
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
__________________
Hoes telling me to calm down but I'm like fuck that shit!
B3TA_SCR1PT3R is offline   Reply With Quote
Old Aug 1st, 2005, 9:53 PM   #2
layer
Hobbyist Programmer
 
Join Date: Feb 2005
Posts: 112
Rep Power: 4 layer is on a distinguished road
Could you please explain what problems you're having/your goal a little more?

Thanks
layer is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC