Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Autoit Radiobutton's

Discussion on Autoit Radiobutton's within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Me''s Avatar
 
elite*gold: 65
Join Date: Nov 2010
Posts: 1,019
Received Thanks: 509
Autoit Radiobutton's

Hallo Coder,
folgendes Problem. Ich habe auf einer GUI sechs Radiobuttons und einen Button. Wenn der Button gedrückt wird, soll ein Befehl ausgeführt werden je nach dem welcher Radiobutton gedrückt wurde so weit klappt es aber auch. Jetzt möchte das, wenn keiner der sechs Radiobuttons gedrückt wurde, eine Meldung ausgegeben wird. Ich weis das die Lösung auch relativ einfach ist nur komme seit ca. zwei stunden nicht drauf =0.
Me' is offline  
Old 10/26/2011, 18:22   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
Du kannst zb auch einfach
GUICtrlSetState($Radio1, $GUI_CHECKED) machen, um automatisch eines schon anzuwählen .

Andernfalls ganz einfach mit If-Abfragen.

PHP Code:
If BitAND(GUICtrlRead($Radio1), $GUI_CHECKED) = $GUI_CHECKED Then
    MsgBox
("","","radio 1")
ElseIf 
BitAND(GUICtrlRead($Radio2), $GUI_CHECKED) = $GUI_CHECKED Then
    MsgBox
("","","radio 2")
ElseIf 
BitAND(GUICtrlRead($Radio3), $GUI_CHECKED) = $GUI_CHECKED Then
    MsgBox
("","","radio 3")
Else
    
MsgBox("","","nichts")
EndIf 
omer36 is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 18:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.