อย่างผมจะกำหนด input ที่ 1 ว่า test
แล้วจะให้มันไปพิมในช่องที่พิกัดที่เราต้องการ
ทำยังไงครับ
แล้วจะให้มันไปพิมในช่องที่พิกัดที่เราต้องการ
ทำยังไงครับ
wearevip พิมพ์ว่า:อย่างผมจะกำหนด input ที่ 1 ว่า test
แล้วจะให้มันไปพิมในช่องที่พิกัดที่เราต้องการ
ทำยังไงครับ
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 312, 52, 192, 124)
$Input1 = GUICtrlCreateInput("Test", 24, 16, 265, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$Form2 = GUICreate("Form2", 312, 52, -1, -1)
$Input2 = GUICtrlCreateInput("", 24, 16, 265, 21)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
ControlFocus("Form1", "", "[CLASS:Edit; INSTANCE:1]")
GUICtrlSetData($Input2, GUICtrlRead($Input1))
WEnd
|
|