作者ScorAlan (漫步在云端)
站内EzHotKey
标题[AHK-] Gui中的3个Radio两两一组
时间Thu Aug 11 20:33:41 2011
请问大家
我想要一次能圈选两个该怎麽做呢?
能够俩俩为一组的
如果圈选到第三个的话
第一个圈选到的就取消圈选
譬如说第一次圈选"你"
第二次圈选"我"
但如果随後又点选到"他"那个选项的话
则"你"的圈选失效
-------------------------------------------------------------
Gui, Add, Radio, x31 y24 w100 h30 v1 , 你
Gui, Add, Radio, x31 y64 w100 h30 v2 , 我
Gui, Add, Radio, x31 y104 w100 h30 v3 , 他
Gui, Show, x137 y144 h379 w480, test window
Return
GuiClose:
ExitApp
^1::
GuiControlGet,v1
GuiControlGet,v2
GuiControlGet,v3
if (v1=1 and v2=1)
{
msgbox,1+2
}
else if (v1=1 and v3=1)
{
msgbox,1+3
}
else if (v2=1 and v3=1)
{
msgbox,2+3
}
else
{
msgbox,少选一组
}
return
-------------------------------------------------------------
先谢谢各位了
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.37.12.166