jackylee0908 Posted January 8, 2019 Posted January 8, 2019 (edited) Hi, sir, I have done a GUI design and below is a part of the code: If GUICtrlRead($AC) = 1 Then If GUICtrlRead($SingleNode) = 1 Then MsgBox($MB_ICONINFORMATION, "Message", "AC with Single Node was selected, click 'OK' to start the test.") Run("execute_as.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4 & " " & $v5 & " " & $v6) Else MsgBox($MB_ICONINFORMATION, "Message", "AC with Two Nodes was selected, click 'OK' to start the test.") Run("execute_at.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4 & " " & $v5 & " " & $v6 & " " & $v10) EndIf ElseIf GUICtrlRead($DC) = 1 Then If GUICtrlRead($SingleNode) = 1 Then MsgBox($MB_ICONINFORMATION, "Message", "DC with Single Node was selected, click 'OK' to start the test.") Run("execute_ds.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4) Else MsgBox($MB_ICONINFORMATION, "Message", "DC with Two Nodes was selected, click 'OK' to start the test.") Run("execute_dt.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4 & " " & $v10) EndIf ElseIf GUICtrlRead($Reboot) = 1 Then If GUICtrlRead($SingleNode) = 1 Then MsgBox($MB_ICONINFORMATION, "Message", "Reboot with Single Node was selected, click 'OK' to start the test.") Run("execute_rs.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4 & " " & $v7 & " " & $v8 & " " & $v9) Else MsgBox($MB_ICONINFORMATION, "Message", "Reboot with Two Nodes was selected, click 'OK' to start the test.") Run("execute_rt.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4 & " " & $v7 & " " & $v8 & " " & $v9 & " " & $v10 & " " & $v11) EndIf EndIf I'd like to convert all .bat files which mentioned in above code to autoit language as a GUI interface, but I need to understand how to let the converted autoit to receive the parameters from above main GUI code, i.e.: Run("execite_as.bat " & $v1 & " " & $v2 & " " & $v3 & " " & $v4 & " " & $v5 & " " & $v6) There are 6 parameters($v1~$v6) need to be received by execute_as.bat(will be converted to au3 executable .exe file), please advise how to achieve that, thanks in advance. Jacky Edited January 8, 2019 by jackylee0908
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now