This isnt working. When I add a value to $Input Box11 I want to push $SetAll and have the value get set to all the other input boxes. Then I want $Input11 to get reset to blank. What am I doing wrong?
AutoIt
$Form1 = GUICreate("AVC", 377, 280, 192, 114,0,$WS_EX_TOPMOST) $Input1 = GUICtrlCreateInput("0", 24, 40, 49, 21) $Input2 = GUICtrlCreateInput("0", 24, 72, 49, 21) $Input3 = GUICtrlCreateInput("0", 24, 104, 49, 21) $Input4 = GUICtrlCreateInput("0", 24, 136, 49, 21) $Input5 = GUICtrlCreateInput("0", 24, 168, 49, 21) $Input6 = GUICtrlCreateInput("0", 240, 40, 49, 21) $Input7 = GUICtrlCreateInput("0", 240, 72, 49, 21) $Input8 = GUICtrlCreateInput("0", 240, 104, 49, 21) $Input9 = GUICtrlCreateInput("0", 240, 136, 49, 21) $Input10 = GUICtrlCreateInput("0", 240, 168, 49, 21) $Input11 = GUICtrlCreateInput("", 240, 200, 49,21) $Pause = GUICtrlCreateButton("Pause", 24, 216, 97, 25) $SetAll = GUICtrlCreateButton("Set All", 180, 200, 50, 24) While 1 ClickStuff() $nMsg = GUIGetMsg() Switch $nMsg Case $Pause $Paused = Not $Paused If $Paused Then ToolTip('Paused', 0, 0) GUICtrlSetData($Pause, "Unpause") Else ToolTip("") GUICtrlSetData($Pause, "Pause") EndIf Case $SetAll $Data = GUICtrlRead($Input11) GUICtrlSetData($Input1,$Data) GUICtrlSetData($Input2,$Data) GUICtrlSetData($Input3,$Data) GUICtrlSetData($Input4,$Data) GUICtrlSetData($Input5,$Data) GUICtrlSetData($Input6,$Data) GUICtrlSetData($Input7,$Data) GUICtrlSetData($Input8,$Data) GUICtrlSetData($Input9,$Data) GUICtrlSetData($Input10,$Data) GUICtrlSetData($Input11,"") Case $GUI_EVENT_CLOSE Exit EndSwitch
EDIT - When I add MsgBox("","",$Data) after the $Data = GUICtrlRead($Input11) and it doesn't pull up a msgbox when I hit the button.