Win script

Gast #385101
Hallo Leute kriegt jemand von euch des hier zum laufe?

Creating a script

Each script is a plain text file containing commands to be executed by
the program (AutoHotkey.exe). A script may also contain hotkeys and
hotstrings, or even consist entirely of them. However, in the absence
of hotkeys and hotstrings, a script will perform its commands
sequentially from top to bottom the moment it is launched.

To create a new script:

   1. Open Windows Explorer and select a folder of your choice.
   2. Pull down the File menu and choose New >> AutoHotkey Script (or
Text Document).
   3. Type a name for the file, ensuring that it ends in .ahk. For
example: Test.ahk
   4. Right-click the file and choose Edit Script.
   5. On a new blank line, type the following:
      #space::Run www.google.com

The symbol # stands for the Windows key, so #space means holding down
the Windows key then pressing the spacebar to activate a hotkey. The ::
means that the subsequent command should be executed whenever this
hotkey is pressed, in this case to go to the Google web site. To try
out this script, continue as follows:

   1. Save and close the file.
   2. In Windows Explorer, double-click the script to launch it. A new
tray icon appears.
   3. Hold down the Windows key and press the spacebar. A web page
opens in the default browser.
   4. To exit or edit the script, right click its tray icon.

Note: Multiple scripts can be running simultaneously, each with its own
tray icon. Furthermore, each script can have multiple hotkeys and
hotstrings.

wenn ja dann erklärt mir mal einbißchen tchü.
Gast #385104
Oh sorry ja das ist die Sete, es will mit ausführen bei mir nicht
klappen. Ich hab eine Datei mit der Endung test.ahk inhalt #space::Run
www.google.com aber ausführen klappt es nicht oder besser gesagt es
habbert an English.
Gast #385106
Also ich hab wie bereits erwähnt habe ich eine Textdatei erzeugt danach
hab ich dies mit dem oben gennanten inhalt sprich mit
#space::Run www.google.com gefühlt dann hab ich gespeichert dann die
datei in in test.ahk umbennant. so jetzt weiss ich nicht wie mann
dieses ausführ, oben in meiner erst eintrag steht  Windows key and
press the spacebar also ich hab die Wintaste+leertaste gedrückt es
passierte aber nichts, es sollte sich die Seite öffnen www.google.com.
sorry für meiner deutsch.
Gast #385108
>2. In Windows Explorer, double-click the script to launch it. A new
tray icon appears.

Was ist damit, hat das funktioniert?

Bei mir hats auf Anhieb geklappt.

Matthias

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 20 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.