Post by Marcosa1020 » 22 Apr 2016, 21:37
Hello,
這裡有兩個DropDownList,分別是vcard1 & vcard2.
假設A為1, B為2, APPLE為3, SAMSUNG為4
vcard1 選A, vcard2選 APPLE,我希望按Output 輸出3
vcard1 選A, vcard2選 SAMSUNG,我希望按Output 輸出4
vcard1 選B, vcard2選 APPLE,我希望按Output 輸出6
vcard1 選B, vcard2選 SAMSUNG,我希望按Output 輸出8
請各位指點,我該如何實現呢? 感謝喔。
Gui +AlwaysOnTop
;Gui, +E0x08000000 ;WS_EX_NOACTIVATE = 0x08000000
Gui, Font, S10 C000000 , Tahoma
Gui, Show, x131 y91 h153 w321,Test
Gui, Font, S09 cFF0000 , Tahoma
Gui, Add, Tab, x-2 y0 w325 h153 , Home
Gui, Font, S12 c000000 , Verdana
Gui, Add, Button, x98 y120 w62 h30 ,Output
Gui, Font, S10 c000000 , Verdana
Gui, Add, DropDownList, x2 y122 w94 h120 vcard1, A|B|
Gui, Add, DropDownList, x2 y87 w94 h30 vcard2, APPLE|SAMSUNG
#Persistent
WinGet, a_ID, ID, A
SetTimer, aa, 500
return
aa:
WinGet, a1_ID, ID, A
If ( a_ID != a1_ID )
k_ID = %a1_ID%
Return
ButtonOutput:
Gui, Submit, NoHide
Send !{Tab} %card1% ;不知道這段該怎麼寫。
return
GuiClose:
Hello,
這裡有兩個DropDownList,分別是vcard1 & vcard2.
假設A為1, B為2, APPLE為3, SAMSUNG為4
vcard1 選A, vcard2選 APPLE,我希望按Output 輸出3
vcard1 選A, vcard2選 SAMSUNG,我希望按Output 輸出4
vcard1 選B, vcard2選 APPLE,我希望按Output 輸出6
vcard1 選B, vcard2選 SAMSUNG,我希望按Output 輸出8
請各位指點,我該如何實現呢? 感謝喔。
Gui +AlwaysOnTop
;Gui, +E0x08000000 ;WS_EX_NOACTIVATE = 0x08000000
Gui, Font, S10 C000000 , Tahoma
Gui, Show, x131 y91 h153 w321,Test
Gui, Font, S09 cFF0000 , Tahoma
Gui, Add, Tab, x-2 y0 w325 h153 , Home
Gui, Font, S12 c000000 , Verdana
Gui, Add, Button, x98 y120 w62 h30 ,Output
Gui, Font, S10 c000000 , Verdana
Gui, Add, DropDownList, x2 y122 w94 h120 vcard1, A|B|
Gui, Add, DropDownList, x2 y87 w94 h30 vcard2, APPLE|SAMSUNG
#Persistent
WinGet, a_ID, ID, A
SetTimer, aa, 500
return
aa:
WinGet, a1_ID, ID, A
If ( a_ID != a1_ID )
k_ID = %a1_ID%
Return
ButtonOutput:
Gui, Submit, NoHide
[b]Send !{Tab} %card1%[/b] ;不知道這段該怎麼寫。
return
GuiClose: