[AHK-] Gui中的3個Radio兩兩一組
請問大家
我想要一次能圈選兩個該怎麼做呢?
能夠倆倆為一組的
如果圈選到第三個的話
第一個圈選到的就取消圈選
譬如說第一次圈選"你"
第二次圈選"我"
但如果隨後又點選到"他"那個選項的話
則"你"的圈選失效
-------------------------------------------------------------
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