不好意思 ,没仔细看贴,楼主是要获取Input的内容,楼上已给出答案,我也给出一份答卷
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 333, 100, 330, 235)
$Input1 = GUICtrlCreateInput("这里输入英文", 16, 24, 121, 21)
$Button1 = GUICtrlCreateButton("转换", 152, 24, 75, 25, $WS_GROUP)
$Input2 = GUICtrlCreateInput("这里显示转换后的数字", 168, 56, 137, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Str = ''
While 1
Sleep(90)
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Str=StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(StringReplace(GUICtrlRead($Input1),"p","0"), _
"q","1"),"r","2"),"s","3"),"t","4"),"u","5"),"v","6"),"w","7"),"x","8"),"y","9"),"m","-")
GUICtrlSetData($Input2, $Str)
EndSwitch
WEnd
|