Ok not particularly a solve needed more advice i guess
Im building a gui with lots of buttons on it (prob 100)
Now each of them has a choice scenario (Yes/No/NA) mostly, i've managed to automate quite a few of them but some are manual checks a tech has to perform.
And here is the problem
I don't know which is the best way to do it from these 2 examples
Should i create three button one for each choice like this
Case $TimeButton Local $SetTime = _SyncTime() GUICtrlSetImage($TimeIcon, $tick) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Time', 'REG_SZ', _Date_Time_SystemTimeToDateTimeStr($CuDate)) Case $TimeButton2 GUICtrlSetImage($TimeIcon, $cross) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Time', 'REG_SZ', 'NotCompleted') ShellExecute('timedate.cpl') Case $TimeButton2 GUICtrlSetImage($TimeIcon, $cross) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Time', 'REG_SZ', 'NotAvailable')
This obviously increases my button count in a major way
Or do i create a single button with a Yes/No/Cancel checkbox behind it like this
Local $MicCheck = MsgBox($MB_YESNOCANCEL + $MB_ICONWARNING + $MB_DEFBUTTON2, 'Microphone Test', 'Does The Microphone Work') If $MicCheck = $IDCANCEL Then RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Microphone', 'REG_SZ', 'NotAvailable') GUICtrlSetImage($MicIcon, $maybe) ElseIf $MicCheck = $IDYES Then GUICtrlSetImage($MicIcon, $tick) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Microphone', 'REG_SZ', _Date_Time_SystemTimeToDateTimeStr($CuDate)) ElseIf $MicCheck = $IDNO Then GUICtrlSetImage($MicIcon, $cross) RegWrite('HKEY_LOCAL_MACHINE\SYSTEM\Setup\Simple', 'Microphone', 'REG_SZ', 'NotCompleted') EndIf
Obviously these are chopped out as examples
So which is the most sensible way to go, my boss likes a button for each choice but im not sure due to the amount of creation needed
Any thoughts?