[Only registered and activated users can see links. Click Here To Register...] <-- Direkter Link!
[Only registered and activated users can see links. Click Here To Register...]
Falls du aufgrund der 4 funde angst hast dann compiliere es selber.
Source:
Code:
#NoTrayIcon
#include <File.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Eingabe", 202, 22, 192, 124)
$Input1 = GUICtrlCreateInput("Text hier eingeben.", 0, 0, 201, 21)
$Button1 = GUICtrlCreateButton("Button1", 0, 0, 0, 1)
Dim $Form1_AccelTable[1][2] = [["{ENTER}", $Button1]]
GUISetAccelerators($Form1_AccelTable)
GUISetState(@SW_Hide)
#EndRegion ### END Koda GUI section ###
If FileExists(@ScriptDir & "\text.txt") = False Then
_FileCreate(@ScriptDir & "\text.txt")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
FileWrite(@ScriptDir & "\text.txt",GUICtrlRead($Input1))
ExitLoop
EndSwitch
WEnd
ElseIf FileRead(@ScriptDir & "\text.txt") = False Then
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
FileWrite(@ScriptDir & "\text.txt",GUICtrlRead($Input1))
ExitLoop
EndSwitch
WEnd
EndIf
GUISetState(@SW_DISABLE)
GUISetState(@SW_HIDE)
HotKeySet("{F1}","spam")
HotKeySet("{F3}","ende")
HotKeySet("{F2}","gui")
While 1
Sleep(10000)
WEnd
Func spam ()
send(FileRead(@ScriptDir & "\text.txt"))
EndFunc
Func ende()
Exit
EndFunc
Func GUI()
FileDelete(@ScriptDir & "\text.txt")
_FileCreate(@ScriptDir & "\text.txt")
GUISetState(@SW_ENABLE)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
FileWrite(@ScriptDir & "\text.txt",GUICtrlRead($Input1))
ExitLoop
EndSwitch
WEnd
GUISetState(@SW_DISABLE)
GUISetState(@SW_HIDE)
EndFunc
Edit:
F1: schreibt den text
F2: neuen text eingeben
F3: beendet das tool