Jackchar Posted March 18, 2009 Posted March 18, 2009 If there Is a @GUI_CtrlId,how to use it and read the control's value .GUICtrlRead(@GUI_CtrlId) Above Cann't Get
sandin Posted March 18, 2009 Posted March 18, 2009 run GUICtrlRead() example from help files Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
Valuater Posted March 18, 2009 Posted March 18, 2009 @GUI_CtrlId is based on On-Event-Mode see options in help 8)
Authenticity Posted March 19, 2009 Posted March 19, 2009 (edited) Example:Opt('GuiOnEventMode', 1) Dim $hGUI = GUICreate('', 100, 250) For $i = 0 To 1 For $j = 1 To 10 GUICtrlCreateLabel(Chr(Random(65, 90, 1)), $i*30+15, $j*20+15, 30, 20) GUICtrlSetOnEvent(-1, 'MyFunc') Next Next GUISetOnEvent(-3, '_EXIT') GUISetState() While 1 Sleep(20) WEnd Func _EXIT() GUIDelete() Exit EndFunc Func MyFunc() ConsoleWrite(GUICtrlRead(@GUI_CtrlId) & @LF) EndFunc=] =] =] Edit Edited March 19, 2009 by Authenticity
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now