Forum: PC-Programmierung Win script


von icon (Gast)


Lesenswert?

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ü.

von Christoph _. (chris)


Lesenswert?

> wenn ja dann erklärt mir mal einbißchen tchü.

An welchem Punkt hängst du denn?

von Christoph _. (chris)


Lesenswert?

Du darfst übrigens gerne nähere Infos zum verwendeten Programm geben.
Ich nehme an, du meinst: http://autohotkey.com/docs/Tutorial.htm ?

von icon (Gast)


Lesenswert?

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.

von Christoph _. (chris)


Lesenswert?

> es will mit ausführen bei mir nicht klappen.

"Geht nicht" ist leider keine ausreichende Fehlerbeschreibung. Was
hast du gemacht (Schritt für Schritt), was hast du erwartet und was ist
stattdessen passiert?

von icon (Gast)


Lesenswert?

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.

von icon (Gast)


Lesenswert?

weiss denn keine etwas

von MNR (Gast)


Lesenswert?

>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

von icon (Gast)


Lesenswert?

wie hast du das erstellt was ist da gemeint im Explorer den Browser oder
explorer

von MNR (Gast)


Lesenswert?

Im Windows Explorer (damit ist der Windows Explorer gemeint, deshalb
steht oben auch Windows Explorer) machst du einen Doppelklick auf deine
Datei "Test.ahk".

Im übrigen, schon mal auf
http://s89775182.onlinehome.us/mediawiki/index.php?title=Hauptseite
geguckt? Ist was für Leute, dies des Englischen nicht so mächtig sind.

Matthias

von icon (Gast)


Lesenswert?

English kann ich schon bloss ich war verzweifelt Autohotkey war nicht
richtig installiert auf jedenfall vielen Dank.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.