<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.eech.online/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3A_AutoHotkey</id>
	<title>Tutorial: AutoHotkey - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eech.online/index.php?action=history&amp;feed=atom&amp;title=Tutorial%3A_AutoHotkey"/>
	<link rel="alternate" type="text/html" href="https://wiki.eech.online/index.php?title=Tutorial:_AutoHotkey&amp;action=history"/>
	<updated>2026-12-06T18:56:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0</generator>
	<entry>
		<id>https://wiki.eech.online/index.php?title=Tutorial:_AutoHotkey&amp;diff=281&amp;oldid=prev</id>
		<title>imported&gt;SimHQ import: Imported from eechcentral.simhq.net</title>
		<link rel="alternate" type="text/html" href="https://wiki.eech.online/index.php?title=Tutorial:_AutoHotkey&amp;diff=281&amp;oldid=prev"/>
		<updated>2026-11-14T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;Imported from eechcentral.simhq.net&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Tutorial icon.png|80px]] This article is a tutorial for using [[AutoHotkey]] with EECH.&lt;br /&gt;
&lt;br /&gt;
== Before you start ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Game Devices icon.png|55px|right]]To check which game devices are known by the system, open &amp;lt;code&amp;gt;Game Devices&amp;lt;/code&amp;gt;:&lt;br /&gt;
: &amp;lt;code&amp;gt;Start&amp;lt;/code&amp;gt; &amp;gt; &amp;lt;code&amp;gt;Settings&amp;lt;/code&amp;gt; &amp;gt; &amp;lt;code&amp;gt;Control Panel&amp;lt;/code&amp;gt; &amp;gt; &amp;lt;code&amp;gt;Game Devices&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Let&amp;#039;s assume to have 2 devices in &amp;lt;code&amp;gt;Game Devices&amp;lt;/code&amp;gt;:&lt;br /&gt;
* 1 generic joystick with 4 buttons (referred to as &amp;quot;joystick&amp;quot;)&lt;br /&gt;
* 1 gamepad with 4 buttons (referred to as &amp;quot;gamepad&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
And assume to decide these things to happen:&lt;br /&gt;
* joystick:&lt;br /&gt;
** button 1: stable hover hold&lt;br /&gt;
** button 2: toggle laser&lt;br /&gt;
* gamepad:&lt;br /&gt;
** button 1: toggle radar jammer&lt;br /&gt;
&lt;br /&gt;
== Assigning buttons ==&lt;br /&gt;
1. Open notepad&lt;br /&gt;
: &amp;lt;code&amp;gt;Start&amp;lt;/code&amp;gt; &amp;gt; &amp;lt;code&amp;gt;Run...&amp;lt;/code&amp;gt; &amp;gt; &amp;lt;code&amp;gt;notepad&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, to assign a &amp;quot;h&amp;quot; keypress to button 1 on the joystick.&lt;br /&gt;
&lt;br /&gt;
2. Add the following lines:&lt;br /&gt;
&lt;br /&gt;
 Joy1::&lt;br /&gt;
   Send +h&lt;br /&gt;
   return&lt;br /&gt;
&lt;br /&gt;
: Notes:&lt;br /&gt;
:* &amp;lt;code&amp;gt;Joy1&amp;lt;/code&amp;gt; represents the first joystick button.&lt;br /&gt;
:* &amp;lt;code&amp;gt;::&amp;lt;/code&amp;gt; starts the definition.&lt;br /&gt;
:* &amp;lt;code&amp;gt;Send&amp;lt;/code&amp;gt; represents &amp;#039;send a keypress&amp;#039;.&lt;br /&gt;
:* &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; represents the shift key (&amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; represents the ctrl key and &amp;lt;code&amp;gt;!&amp;lt;/code&amp;gt; represents the alt key).&lt;br /&gt;
:* A &amp;lt;code&amp;gt;return&amp;lt;/code&amp;gt; separates the buttons in a config file.&lt;br /&gt;
More &amp;quot;hotkeys&amp;quot; (script codes) can be found [http://www.autohotkey.com/docs/hotkeys.htm here].&lt;br /&gt;
More key codes can be found [http://www.autohotkey.com/docs/keyslist.htm here].&lt;br /&gt;
&lt;br /&gt;
3. Next is to toggle the laser with the second button on the joystick.&lt;br /&gt;
&lt;br /&gt;
 Joy2::&lt;br /&gt;
   Send {NumpadMult}&lt;br /&gt;
   return&lt;br /&gt;
&lt;br /&gt;
: Notes:&lt;br /&gt;
:* &amp;lt;code&amp;gt;{NumpadMult}&amp;lt;/code&amp;gt; represents the numpad&amp;#039;s asterisk.&lt;br /&gt;
&lt;br /&gt;
4. Next is toggle the radar jammer with a button on the gamepad.&lt;br /&gt;
&lt;br /&gt;
 2Joy1::&lt;br /&gt;
   Send j&lt;br /&gt;
   return&lt;br /&gt;
&lt;br /&gt;
: Notes:&lt;br /&gt;
:* The prefix &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; refers to the joystick number. There&amp;#039;s no need to prefix the lead device.&lt;br /&gt;
:*: &amp;lt;code&amp;gt;1Joy1::&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;Joy1::&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. The complete script should look like this:&lt;br /&gt;
&lt;br /&gt;
 Joy1::&lt;br /&gt;
   Send +h&lt;br /&gt;
   return&lt;br /&gt;
 Joy2::&lt;br /&gt;
   Send {NumpadMult}&lt;br /&gt;
   return&lt;br /&gt;
 2Joy1::&lt;br /&gt;
   Send j&lt;br /&gt;
   return&lt;br /&gt;
&lt;br /&gt;
6. Save the file to your desktop as &amp;lt;code&amp;gt;EECH.ahk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
7. Run the file.&lt;br /&gt;
: [[Image:AutoHotkey trayicon.png|right|AutoHotkey&amp;#039;s tray icon.]] Confirm the AutoHotkey&amp;#039;s icon appears in the system tray.&lt;br /&gt;
&lt;br /&gt;
8. Launch EECH.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[AutoHotkey]]&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
More tutorials:&lt;br /&gt;
* at the [http://www.autohotkey.com/wiki/index.php?title=Category:Tutorials official Wiki] of AutoHotkey&lt;br /&gt;
* at the [http://www.autohotkey.com/docs/Tutorial.htm main website] of AutoHotkey&lt;br /&gt;
&lt;br /&gt;
[[category:tutorials]]&lt;/div&gt;</summary>
		<author><name>imported&gt;SimHQ import</name></author>
	</entry>
</feed>