Moin AutoIT Gemeinde!
Ich habe folgendes Problem: Ich möchte ein Scrypt erstellen, bei dem jedesmal wenn ich den Button klicke ein bestimmter Text in meine Zwischenablage kopiert wird. Dies habe ich auch hinbekommen, nur wie schaffe ich es, dass beim 1. Klick der Text "123" und beim 2. mal klicken des Buttons der Text "456" erscheint?
C
#include <MsgBoxConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate(".", 265, 111, 463, 264)
$Button1 = GUICtrlCreateButton("..", 48, 16, 169, 73)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ClipPut("123")
; //// ClipPut("456")
EndSwitch
WEnd
Alles anzeigen