Also ich wollte mir ein Script machen, das eine Tastenkombination eingibt und sich selbst beendet. Ich kenne leider den Befehl nicht, damit sich das Programm am Ende beendet. Vielleicht könnt ihr mir ja helfen. Bis jetzt sieht das so aus:
set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
do
wscript.sleep 2000
wshshell.sendkeys "m"
wshshell.sendkeys "e"
wshshell.sendkeys "g"
wshshell.sendkeys "a"
wshshell.sendkeys "n"
wshshell.sendkeys "i"
wshshell.sendkeys "e"
wshshell.sendkeys "{Enter}"
wshshell.sendkeys "w"
wshshell.sendkeys "o"
wshshell.sendkeys "r"
wshshell.sendkeys "t"
wshshell.sendkeys "{Enter}"
wshshell.sendkeys "y"
wshshell.sendkeys "{Enter}"
wshshell.sendkeys "n"
wshshell.sendkeys "{Enter}"
Und jetzt fehlt mir der Befehl am Ende um das Programm zu beenden, ich kenne nur einen Befehl damit es wieder von vorne anfängt. Danke schonmal für eure Antworten.
set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
do
wscript.sleep 2000
wshshell.sendkeys "m"
wshshell.sendkeys "e"
wshshell.sendkeys "g"
wshshell.sendkeys "a"
wshshell.sendkeys "n"
wshshell.sendkeys "i"
wshshell.sendkeys "e"
wshshell.sendkeys "{Enter}"
wshshell.sendkeys "w"
wshshell.sendkeys "o"
wshshell.sendkeys "r"
wshshell.sendkeys "t"
wshshell.sendkeys "{Enter}"
wshshell.sendkeys "y"
wshshell.sendkeys "{Enter}"
wshshell.sendkeys "n"
wshshell.sendkeys "{Enter}"
Und jetzt fehlt mir der Befehl am Ende um das Programm zu beenden, ich kenne nur einen Befehl damit es wieder von vorne anfängt. Danke schonmal für eure Antworten.