Gdy wpiszę w pole "imput_1" dowolny tekst, chcę aby po naciśnięciu F1 skrypt w miejscu "Send()" wpisał zawartość pola "imput_1".
Kod: Zaznacz cały
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Artek\Desktop\test10.kxf
GUICreate("Bitdebrid.com - DOWNLOADER", 393, 120, 190, 122)
$Link01 = GUICtrlCreateInput("", 8, 8, 233, 25)
$Link02 = GUICtrlCreateInput("", 8, 48, 233, 25)
$Link03 = GUICtrlCreateInput("", 8, 88, 233, 25)
GUICtrlCreateButton("DOWNLOAD", 256, 8, 129, 25)
GUICtrlCreateButton("DOWNLOAD", 256, 48, 129, 25)
GUICtrlCreateButton("DOWNLOAD", 256, 88, 129, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
HotKeySet("{F1}", "Pobieranie")
HotKeySet("{ESC}", "Pauza")
HotKeySet("{NUMPAD1}", "Wyjscie")
Global $Pause = false
Func Pauza()
$Pause = False
While $Pause = False
Sleep(500)
WEnd
EndFunc
Func Pobieranie()
MouseClick("left", 955, 670); PUSTE POLE
Send()
MouseClick("left", 955, 710); DOWNLOAD #1
Sleep(5000)
EndFunc
Func Wyjscie()
Exit
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
While 1
Sleep(1000)
WEnd