100+ results for 'autohotkey'
Not the results you expected?
st.ahk (https://github.com/camerb/AHKs.git) AutoHotkey · 141 lines
RegTVMainFormU.pas (https://github.com/keymanapp/keyman.git) Pascal · 251 lines
edit-post.jade (https://bitbucket.org/nicklambourne/personal.git) Jade · 150 lines
keymap.c (https://github.com/qmk/qmk_firmware.git) C · 120 lines
91-projects.vim (https://bitbucket.org/rko/vimrc.git) Vim Script · 361 lines
44 augroup END
46 function! SetSettingsForProject(size_of_tab, autohotkey_file, tags)
47 execute 'setlocal tabstop=' . a:size_of_tab
48 execute 'setlocal shiftwidth=' . a:size_of_tab
49 execute 'setlocal softtabstop=' . a:size_of_tab
50 if (len(a:autohotkey_file) == 0)
51 execute "nnoremap <buffer> <leader>m <nop>"
52 else
53 execute "nnoremap <buffer> <leader>m :call AutoHotkeyMake('" . a:autohotkey_file . "')\<CR>"
54 endif
55 execute 'setlocal tags=' . a:tags
TProjectManagerMenuItem.pas (http://delphi-ide-theme-editor.googlecode.com/svn/trunk/) Pascal · 180 lines
6 FEnabled :Boolean;
7 FDefault :Boolean;
8 FAutoHotkeys :TMenuItemAutoFlag;
9 FAutoLineReduction :TMenuItemAutoFlag;
10 FRadioItem :Boolean;
155 property Action: TBasicAction;
156 property AutoCheck: Boolean;
157 property AutoHotkeys: TMenuItemAutoFlag;
158 property AutoLineReduction: TMenuItemAutoFlag;
159 property Bitmap: TBitmap;
ViewModel.cs (https://github.com/stkb/Rewrap.git) C# · 160 lines
OperationsProgressDialog.ahk
(git://github.com/maul-esel/COM-Classes.git)
AutoHotkey · 209 lines
✨ Summary
This AutoHotkey code defines a class OperationsProgressDialog
that wraps the IOperationsProgressDialog interface, providing methods to start, stop, and query a progress dialog. It allows setting operation and mode, updating progress, and getting elapsed time, among other features. The class is designed for use with Windows operating systems and requires specific constants and DLL calls.
This AutoHotkey code defines a class OperationsProgressDialog
that wraps the IOperationsProgressDialog interface, providing methods to start, stop, and query a progress dialog. It allows setting operation and mode, updating progress, and getting elapsed time, among other features. The class is designed for use with Windows operating systems and requires specific constants and DLL calls.
ahkctypes.py (git://github.com/tinku99/ahkpy.git) Python · 95 lines
1 # by Irh9
2 # http://www.autohotkey.com/forum/author-lrh9.html
3 # http://www.autohotkey.com/forum/viewtopic.php?p=428795#428795
11 DLL_TYPES = ("Win32a", "Win32w", "X64W")
12 DLL_NAMES = ("AutoHotkey.dll", "AutoHotkeyMini.dll")
14 if __name__ == '__main__':
27 AHK = ctypes.cdll.LoadLibrary(DLL_PATHS[os.path.join(dll_type, dll_name)])
29 set_library('Win32a', 'AutoHotkey.dll')
31 def _evaluate(obj):
go_fish_autohotkey.md (https://github.com/ad-si/RosettaGit.git) Markdown · 209 lines
1 +++
2 title = "Go Fish/AutoHotkey"
3 description = ""
4 date = 2014-03-17T22:07:51Z
13 {{collection|Go Fish}}
14 [[Category:AutoHotkey]]
15 {{works with|AutoHotkey L}} Unicode
64 Return this.Cards.MaxIndex()
65 }
66 Shuffle() { ; Knuth Shuffle from http://rosettacode.org/wiki/Knuth_Shuffle#AutoHotkey
67 Loop % this.HasCards()-1 {
68 Random, i, A_Index, this.HasCards() ; swap item 1,2... with a random item to the right of it
mg.ahk (https://github.com/camerb/AHKs.git) AutoHotkey · 159 lines
4 Author: Learning one (Boris Mudrinic)
5 Contact: boris-mudrinic@net.hr
6 AHK forum: http://www.autohotkey.com/forum/topic56472.html
8 License:
46 send normal click. There are no built-in actions on gestures. It's up to you to write your commands that fit your needs.
47 You can find more informations about this type of mouse gestures in Radial menu help file. You will find Radial menu here:
48 http://www.autohotkey.com/forum/viewtopic.php?p=308352#308352
49 */
README.md (https://gitlab.com/balajisi/emacs.git) Markdown · 38 lines
8 * Works on Windows 8, XP and should ideally work on all Windows and Linux platforms. Not tested for Mac support and primarily meant for Windows.
9 * I have set up Caps Lock to act as Ctrl key inside of Emacs using [AutoHotKey](http://www.autohotkey.com/), after reading [Emacs Wiki](http://www.emacswiki.org/emacs/MovingTheCtrlKey#toc16).
10 * Only for using Emacs as a text editor for programming in various languages. Not meant to be an All-in-One package. I don't advocate using Emacs to replace your browser/twitter client and everything under the sun.
prism-show-language.js (https://gitlab.com/bakeiro/tiempo_polymer) JavaScript · 38 lines
7 // The languages map is built automatically with gulp
8 var Languages = /*languages_placeholder[*/{"css":"CSS","clike":"C-like","javascript":"JavaScript","abap":"ABAP","actionscript":"ActionScript","apacheconf":"Apache Configuration","apl":"APL","applescript":"AppleScript","asciidoc":"AsciiDoc","aspnet":"ASP.NET (C#)","autoit":"AutoIt","autohotkey":"AutoHotkey","basic":"BASIC","csharp":"C#","cpp":"C++","coffeescript":"CoffeeScript","css-extras":"CSS Extras","fsharp":"F#","glsl":"GLSL","http":"HTTP","inform7":"Inform 7","json":"JSON","latex":"LaTeX","lolcode":"LOLCODE","matlab":"MATLAB","mel":"MEL","nasm":"NASM","nginx":"nginx","nsis":"NSIS","objectivec":"Objective-C","ocaml":"OCaml","parigp":"PARI/GP","php":"PHP","php-extras":"PHP Extras","powershell":"PowerShell","jsx":"React JSX","rest":"reST (reStructuredText)","sas":"SAS","sass":"Sass (Sass)","scss":"Sass (Scss)","sql":"SQL","typescript":"TypeScript","vhdl":"VHDL","vim":"vim","wiki":"Wiki markup","yaml":"YAML"}/*]*/;
9 Prism.hooks.add('before-highlight', function(env) {
10 var pre = env.element.parentNode;
nPad.ahk
(http://eucaly61-ahk.googlecode.com/svn/trunk/)
AutoHotkey · 532 lines
✨ Summary
This AutoHotkey script appears to be a GUI application that provides various functionality, including:
- Creating and managing windows with customizable properties
- Handling mouse events and clicks
- Displaying debug information about window titles, processes, and controls
- Controlling the visibility of a “Spy” control on the screen
- Providing options for debugging and testing the script
It seems to be a tool for developers or power users who want to interact with windows and controls in a more detailed way.
This AutoHotkey script appears to be a GUI application that provides various functionality, including:
- Creating and managing windows with customizable properties
- Handling mouse events and clicks
- Displaying debug information about window titles, processes, and controls
- Controlling the visibility of a “Spy” control on the screen
- Providing options for debugging and testing the script
It seems to be a tool for developers or power users who want to interact with windows and controls in a more detailed way.
2 ; this is still a cooking version, welcome for comments ...
4 ; http://www.autohotkey.com/forum/topic21703.html
5 ; WindowPad - multi-monitor window-moving tool
7 ; http://www.autohotkey.com/forum/topic44249.html
8 ; transparent GUI over notepad
9 ; http://www.autohotkey.com/forum/topic30300.html
19 ; problem to Dock on Always-on-top window ... (get flicker ...)
20 ; => looks OK so far
21 ; detect the better location on title bar to dock by WM_NCHITTEST http://www.autohotkey.com/forum/topic22178.html
22 ; Exclude list, more efficiently exclude tool menu and so on...
23 ; need find how to exclude QtTabBar right-click context menu
2010-03-27-automation.org (https://gitlab.com/jamesf/emacs-notes.git) Org · 54 lines
10 equations, pivot tables / data pilot, and judicious use of macros. For
11 general automation on Windows, there's
12 [[http://autohotkey.com][AutoHotkey]].
14 My threshold for automation is lower than most people's. When faced with
49 tool, and doing little experiments. For Emacs, it might be learning how
50 to use keyboard macros, then using Lisp. For Excel, learn different
51 functions (I use CONCATENATE and IF a lot). For AutoHotkey, try using it
52 for abbreviations, then expand.
SciTE4AutoHotkey Dark.style.properties (https://github.com/fincs/SciTE4AutoHotkey.git) Properties File · 66 lines
FileGetVersion.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 42 lines
my-file-assoc.el (https://github.com/fanhongtao/_emacs.d.git) Emacs Lisp · 85 lines
README.md (git://github.com/fincs/Ahk2Exe.git) Markdown · 20 lines
1 # Ahk2Exe #
3 Ahk2Exe is the official AutoHotkey script to EXE converter, which is written itself in AutoHotkey.
5 https://www.autohotkey.com/
8 ## How to Compile ##
10 Ahk2Exe must be compiled with itself as it uses compiler directives. (Make sure to use a recent AutoHotkey self-contained binary, version 1.1.)
12 After unpacking all the source files, run Ahk2Exe.ahk, and drag and drop Ahk2Exe.ahk onto the converter window, then press the 'convert' button.
14 The resulting Ahk2Exe.exe file should be copied to the Compiler sub-folder under the folder containing AutoHotkey.exe for proper operation.
css-classes-reference.rst (https://gitlab.com/insantr/highlight.js) ReStructuredText · 410 lines
resource.h (https://github.com/infogulch/AutoHotkey_L.git) C Header · 55 lines
autohotkey.js (https://gitlab.com/sogeta_albazi/books-and-movies) JavaScript · 84 lines
1 /*
2 Language: AutoHotkey
3 Author: Seongwon Lee <dlimpid@gmail.com>
4 Description: AutoHotkey language definition
8 /** @type LanguageFn */
9 function autohotkey(hljs) {
10 const BACKTICK_ESCAPE = {
11 begin: '`[\\s\\S]'
14 return {
15 name: 'AutoHotkey',
16 case_insensitive: true,
17 aliases: ['ahk'],
49 {
50 // symbol would be most accurate however is highlighted just like
51 // built_in and that makes up a lot of AutoHotkey code meaning that it
52 // would fail to highlight anything
53 className: 'title',
index.js (https://gitlab.com/CalebKing3/macDevSetup) JavaScript · 74 lines
44 hljs.registerLanguage('cmake', require('./languages/cmake.js'));
45 hljs.registerLanguage('ocaml', require('./languages/ocaml.js'));
46 hljs.registerLanguage('autohotkey', require('./languages/autohotkey.js'));
47 hljs.registerLanguage('objectivec', require('./languages/objectivec.js'));
48 hljs.registerLanguage('avrasm', require('./languages/avrasm.js'));
autohotkey.js (https://github.com/jpallen/ace.git) JavaScript · 62 lines
43 var oop = require("../lib/oop");
44 var TextMode = require("./text").Mode;
45 var AutoHotKeyHighlightRules = require("./autohotkey_highlight_rules").AutoHotKeyHighlightRules;
46 // TODO: pick appropriate fold mode
47 var FoldMode = require("./folding/cstyle").FoldMode;
49 var Mode = function() {
50 this.HighlightRules = AutoHotKeyHighlightRules;
51 this.foldingRules = new FoldMode();
52 };
56 this.lineCommentStart = "/\\*";
57 this.blockComment = {start: "/*", end: "*/"};
58 this.$id = "ace/mode/autohotkey";
59 }).call(Mode.prototype);
VolumeOSD.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 143 lines
AhkDllFlat.cs (https://github.com/brigand/AhkDll-.NET.git) C# · 55 lines
5 {
6 /// <summary>
7 /// These functions serve as a flat wrapper for AutoHotkey.dll.
8 /// They assume AutoHotkey.dll is in the same directory as your
11 public class AhkDllFlat
12 {
13 private const string DLLPATH = "AutoHotkey.dll";
15 [DllImport(DLLPATH, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
FileGetVersion.htm (http://autohotkey-chinese.googlecode.com/svn/trunk/) HTML · 42 lines
ObjAddRef.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 56 lines
29 <h3>Related</h3>
30 <p>Although the following articles discuss reference counting as it applies to COM, they cover some important concepts and rules which generally also apply to AutoHotkey objects: <a href="http://msdn.microsoft.com/en-us/library/ms691379.aspx">IUnknown::AddRef</a>, <a href="http://msdn.microsoft.com/en-us/library/ms682317.aspx">IUnknown::Release</a>, <a href="http://support.microsoft.com/kb/104138">Reference Counting Rules</a>.</p>
32 <h3>Examples</h3>
default.css (https://github.com/nimdahk/ahkbook.git) CSS · 241 lines
103 }
105 a[href^="http://www.autohotkey.com"],
106 a[href^="http://de.autohotkey.com"],
107 a[href^="http://autohotkey.free.fr"],
108 a[href^="http://cn.autohotkey.com"]
111 }
113 a[href^="http://www.autohotkey.net"],
114 a[href^="http://www.autohotkey.com/forum"],
115 a[href^="http://de.autohotkey.com/forum"]
116 {
117 padding-right: 16px;
JoystickTest.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 104 lines
_MaxThreadsBuffer.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 40 lines
26 <h3>Remarks</h3>
27 <p>This directive is rarely used because this type of buffering, which is OFF by default, usually does more harm than good. For example, if you accidentally press a hotkey twice, having this setting ON would cause that hotkey's subroutine to automatically run a second time if its first <a href="../misc/Threads.htm">thread</a> takes less than 1 second to finish (this type of buffer expires after 1 second, by design). Note that AutoHotkey buffers hotkeys in several other ways (such as <code><a href="Thread.htm">Thread Interrupt</a></code> and <code><a href="Critical.htm">Critical</a></code>). It's just that this particular way can be detrimental, thus it is OFF by default.</p>
28 <p>The main use for this directive is to increase the responsiveness of the keyboard's auto-repeat feature. For example, when you hold down a hotkey whose <a href="_MaxThreadsPerHotkey.htm">#MaxThreadsPerHotkey</a> setting is 1 (the default), incoming keypresses are ignored if that hotkey subroutine is already running. Thus, when the subroutine finishes, it must wait for the next auto-repeat keypress to come in, which might take 50ms or more due to being caught in between keystrokes of the auto-repeat cycle. This 50ms delay can be avoided by enabling this directive for any hotkey that needs the best possible response time while it is being auto-repeated.</p>
29 <p>As with all # directives, this one should not be positioned in the script as though it were a command (i.e. it is not necessary to have it contained within a subroutine). Instead, position it immediately before the first hotkey label you wish to have affected by it.</p>
TutorialLaunch.htm (https://github.com/fincs/AutoHotkey_L-Docs.git) HTML · 40 lines
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <title>AutoHotkey Tutorial - Launch a program or document (continued)</title>
8 <link href="static/theme.css" rel="stylesheet" type="text/css" />
9 <script src="static/jquery.js" type="text/javascript"></script>
PARAMDESC.ahk (git://github.com/maul-esel/COM-Classes.git) AutoHotkey · 112 lines
CLSCTX.ahk (git://github.com/maul-esel/COM-Classes.git) AutoHotkey · 191 lines
EasyWindowDrag.ahk
(git://github.com/jixiuf/my_autohotkey_scripts.git)
AutoHotkey · 46 lines
✨ Summary
This AutoHotkey script enables easy window dragging on Windows XP, 2K, and NT. It allows users to drag any point inside a window by holding CapsLock or the middle mouse button while clicking, rather than just the title bar. The script tracks the mouse movement and adjusts the window’s position accordingly, making it easier to move windows around the screen.
This AutoHotkey script enables easy window dragging on Windows XP, 2K, and NT. It allows users to drag any point inside a window by holding CapsLock or the middle mouse button while clicking, rather than just the title bar. The script tracks the mouse movement and adjusts the window’s position accordingly, making it easier to move windows around the screen.
在Windows上配置CapsLock使之对Emacs友好.org (https://github.com/lujun9972/emacs-document.git) Org · 44 lines
9 具体来说,我是怎么做的:
11 第一步. 使用[[http://www.blogbyben.com/2011/03/tool-of-day-autohotkey.html][AutoHotKey]] 来[[https://autohotkey.com/docs/misc/Remap.htm][映射]] =Caps Lock= 键为 =Windows Menu= 键(AutoHotKey将之称为AppsKey).
13 #+BEGIN_SRC ahk
14 ;; Add this to your standard AutoHotKey configuration
15 CapsLock::AppsKey
16 #+END_SRC
autohotkey.ps1 (https://github.com/rbreaves/kinto.git) Powershell · 22 lines
AutoHotkeyInit.cs (https://github.com/brigand/AhkDll-.NET.git) C# · 72 lines
1 /*
2 * All code in 'static AutoHotkey()' is taken from here:
3 * http://stackoverflow.com/questions/666799/embedding-unmanaged-dll-into-a-managed-c-dll/768429#768429
4 * All credit goes to the author
11 namespace AhkWrapper
12 {
13 public partial class AutoHotkey
14 {
15 static AutoHotkey()
16 {
17 if (File.Exists("AutoHotkey.dll"))
18 {
19 IntPtr h = Win32.LoadLibrary("AutoHotkey.dll");
28 if (!Directory.Exists(dirName))
29 Directory.CreateDirectory(dirName);
30 string dllPath = Path.Combine(dirName, "AutoHotkey.dll");
32 // Get the embedded resource stream that holds the Internal DLL in this assembly.
IfBetween.htm (git://github.com/Lexikos/AutoHotkey_L-Docs.git) HTML · 67 lines
2 <html lang="en">
3 <head>
4 <title>If Var between Low and High - Syntax & Usage | AutoHotkey</title>
5 <meta name="description" content="The "if Var between Low and High" statement checks whether a variable's contents are numerically or alphabetically between two values (inclusive)." />
6 <meta name="ahk:equiv-v2" content="commands/IfExpression.htm" />
VolumeOSD.ahk (git://github.com/Lexikos/AutoHotkey_L-Docs.git) AutoHotkey · 128 lines
IsLabel.htm (https://github.com/ahkde/docs-v2.git) HTML · 73 lines
2 <html lang="de">
3 <head>
4 <title>IsLabel - Syntax & Verwendung | AutoHotkey v2</title>
5 <meta name="description" content="Die IsLabel-Funktion gibt eine Nummer ungleich 0 zurück, wenn ein bestimmtes Label im Skript vorkommt." />
6 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
autohotkey.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 65 lines
_InstallMouseHook.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 29 lines
17 <h3>Remarks</h3>
18 <p>The mouse hook monitors mouse clicks for the purpose of activating mouse <a href="../Hotkeys.htm">hotkeys</a> and <a href="../Hotstrings.htm#NoMouse">facilitating hotstrings</a>.</p>
19 <p>AutoHotkey does not install the keyboard and mouse hooks unconditionally because together they consume at least 500 KB of memory (but if the keyboard hook is installed, installing the mouse hook only requires about 50 KB of additional memory; and vice versa). Therefore, the mouse hook is normally installed only when the script contains one or more mouse <a href="../Hotkeys.htm">hotkeys</a>. It is also installed for <a href="../Hotstrings.htm">hotstrings</a>, but that can be disabled via <a href="_Hotstring.htm">#Hotstring NoMouse</a>.</p>
20 <p>By contrast, the #InstallMouseHook directive will unconditionally install the mouse hook, which might be useful to allow <a href="KeyHistory.htm">KeyHistory</a> to monitor mouse clicks.</p>
21 <p>You can determine whether a script is using the hook via the <a href="KeyHistory.htm">KeyHistory</a> command or menu item. You can determine which hotkeys are using the hook via the <a href="ListHotkeys.htm">ListHotkeys</a> command or menu item.</p>
PICTDESC.ahk (git://github.com/maul-esel/COM-Classes.git) AutoHotkey · 196 lines
Until.htm (https://github.com/wyagd001/wyagd001.github.io.git) HTML · 55 lines
FileDelete.htm (https://github.com/wyagd001/wyagd001.github.io.git) HTML · 44 lines
default.css (https://github.com/shajul/Autohotkey.git) CSS · 125 lines
StrLower.htm (https://github.com/ahkde/docs-v2.git) HTML · 68 lines
2 <html lang="de">
3 <head>
4 <title>StrLower / StrUpper - Syntax & Verwendung | AutoHotkey v2</title>
5 <meta name="description" content="Die Funktionen StringLower und StringUpper wandeln eine Zeichenkette in Klein- oder Großbuchstaben um." />
6 <meta name="ahk:equiv-v1" content="commands/StringLower.htm" />
class_HotClass-README.md (https://github.com/Ixiko/AHK-libs-and-classes-collection.git) Markdown · 16 lines
index.rst (https://github.com/Ixiko/AHK-libs-and-classes-collection.git) ReStructuredText · 27 lines
Compile.ahk (https://ArmoryViewer.svn.codeplex.com/svn) AutoHotkey · 36 lines
1 ;
2 ; AutoHotkey Version: 1.x
3 ; Language: English
4 ; Platform: Win9x/NT
9 ;
11 #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
12 SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
13 SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
18 RegRead, VSExec, HKCU, Software\Microsoft\VisualStudio\10.0_Config, InstallDir
19 RegRead, AHKExec, HKLM, Software\AutoHotkey, InstallDir
20 RegRead, NSISExec, HKEY_CLASSES_ROOT, NSIS.Script\shell\compile\command
Threads.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 31 lines
14 <p>The <em>current thread</em> is defined as the flow of execution invoked by the most recent event; examples include <a href="../Hotkeys.htm">hotkeys</a>, <a href="../commands/SetTimer.htm">SetTimer subroutines</a>, <a href="../commands/Menu.htm">custom menu items</a>, and <a href="../commands/Gui.htm#Events">GUI events</a>. The <em>current thread</em> can be executing commands within its own subroutine or within other subroutines called by that subroutine.</p>
15 <p>Although AutoHotkey doesn't actually use multiple threads, it simulates some of that behavior: If a second thread is started -- such as by pressing another hotkey while the previous is still running -- the <em>current thread</em> will be interrupted (temporarily halted) to allow the new thread to become <em>current</em>. If a third thread is started while the second is still running, both the second and first will be in a dormant state, and so on.</p>
16 <p>When the <em>current thread</em> finishes, the one most recently interrupted will be resumed, and so on, until all the threads finally finish. When resumed, a thread's settings for things such as <a href="ErrorLevel.htm">ErrorLevel</a> and <a href="../commands/SendMode.htm">SendMode</a> are automatically restored to what they were just prior to its interruption; in other words, a thread will experience no side-effects from having been interrupted (except for a possible change in the <a href="../commands/WinActivate.htm">active window</a>).</p>
17 <p>Note: The <a href="../commands/KeyHistory.htm">KeyHistory</a> command/menu-item shows how many threads are in an interrupted state and the <a href="../commands/ListHotkeys.htm">ListHotkeys</a> command/menu-item shows which hotkeys have threads.</p>
2011-11-12-Repeating.markdown (https://github.com/maul-esel/ahkbook.git) Markdown · 77 lines
9 ## a simple loop
10 Sometimes you want to do something "forever" or as long as the script runs. Or you want to do it several times, but you don't know exactly how long. For those cases, enclose it in a `Loop`-block:
11 {% highlight ahk linenos %}; any AutoHotkey version
12 Loop
13 {
19 As the above may consume a lot of memory, you may want it to wait some time before the next iteration:
20 {% highlight ahk linenos %}; any AutoHotkey version
21 Loop
22 {
37 }
38 {% endhighlight %}
39 You can also use a variable here. There's only a slight difference in AutoHotkey v2 and AutoHotkey\_H v2:
40 In all other versions, you must enclose the variable in percent signs. In AutoHotkey v2 and AutoHotkey\_H v2, leave the percent signs out (`Loop` accepts an expression parameter).
62 }
63 {% endhighlight %}
64 {% highlight ahk linenos %}; AutoHotkey_L, AutoHotkey_H, AutoHotkey v2 and AutoHotkey_H v2
65 Loop
66 {
SetExpression.htm (https://github.com/Lexikos/AutoHotkey_L-Docs.git) HTML · 70 lines
2 <html lang="en">
3 <head>
4 <title>Var := Expression - Syntax & Usage | AutoHotkey</title>
5 <meta name="description" content="The "Var := Expression" statement evaluates an expression and stores the result in a variable." />
6 <meta name="ahk:equiv-v2" content="Variables.htm#AssignOp" />
StringLower.htm (https://github.com/Lexikos/AutoHotkey_L-Docs.git) HTML · 64 lines
config.js (https://bitbucket.org/shubham4564/codeology.git) JavaScript · 26 lines
12 SERVER = SERVER.replace('http:', window.location.protocol);
14 var TYPES_STRING = 'unknown, JavaScript, HTML, Ruby, Java, PHP, Python, C, C++, CSS, Shell, C#, Objective-C, Perl, CoffeeScript, Go, Scala, VimL, R, Haskell, Clojure, Lua, Groovy, Emacs Lisp, Erlang, Puppet, TeX, Swift, Matlab, ActionScript, Arduino, Batchfile, GLSL, OCaml, Tcl, Visual Basic, TypeScript, D, Assembly, Common Lisp, Dart, Prolog, XSLT, PowerShell, Scheme, FORTRAN, Rust, ASP, Processing, Julia, F#, Elixir, ColdFusion, Vala, Apex, Racket, VHDL, Pascal, Smalltalk, Haxe, Verilog, Logos, Delphi, Makefile, Kotlin, AutoHotkey, CMake, QMake, UnrealScript, LiveScript, HaXe, BlitzBasic, IDL, Standard ML, XML, SQL, OpenEdge ABL, Objective-C++, AppleScript, SuperCollider, PureScript, Eiffel, Elm, Gosu, M, Smarty, Pure Data, nesC, XQuery, SQF, Scilab, DOT, Postscript, Cuda, Slash, Max, Game Maker Language, AutoIt, Mathematica, SourcePawn, Groff';
15 var TYPES = TYPES_STRING.split(', ');
style.scss (https://github.com/praneshr/react-diff-viewer.git) Sass · 252 lines
100 .token.keyword,
101 .token.attr-name,
102 .language-autohotkey .token.selector {
103 color: #00a4db;
104 }
106 .token.function,
107 .token.deleted,
108 .language-autohotkey .token.tag {
109 color: #069071;
110 }
112 .token.tag,
113 .token.selector,
114 .language-autohotkey .token.keyword {
115 color: #ff9292;
116 }
_InstallKeybdHook.htm (https://github.com/wyagd001/wyagd001.github.io.git) HTML · 37 lines
2 <html>
3 <head>
4 <title>#InstallKeybdHook | AutoHotkey</title>
5 <meta name="description" content="The #InstallKeybdHook directive forces the unconditional installation of the keyboard hook." />
6 <meta name="ahk:equiv-v2" content="commands/InstallKeybdHook.htm" />
20 <h2 id="Remarks">备注</h2>
21 <p>使用键盘钩子监视键击是为了激活不受 RegisterHotkey(这是操作系统内置的功能) 支持的<a href="Hotstrings.htm">热字串</a>和键盘<a href="../Hotkeys.htm">热键</a>. 它还支持其他一些功能, 例如 <a href="Input.htm">Input</a> 命令.</p>
22 <p>AutoHotkey 不会无条件安装键盘和鼠标钩子, 因为它们合起来至少占用 500 KB 的内存. 因此, 一般只有在脚本包含下列的其中一种情况时才会安装键盘钩子: 1) <a href="Hotstrings.htm">热字串</a>; 2) 一个或多个需要键盘钩子的<a href="../Hotkeys.htm">热键</a>(大多数不需要); 3) <a href="SetNumScrollCapsLockState.htm">SetCaps/Scroll/NumLock AlwaysOn/AlwaysOff</a>; 4) <a href="Input.htm">Input</a> 命令, 在首次实际使用时安装钩子.</p>
23 <p>与之相比, 使用 #InstallKeybdHook 指令会无条件安装键盘钩子, 这样可以用来在 <a href="KeyHistory.htm">KeyHistory</a> 中显示最近的 20 次键击(便于调试), 或避免使用 <a href="_HotkeyModifierTimeout.htm">#HotkeyModifierTimeout</a>.</p>
24 <p>您可以通过 <a href="KeyHistory.htm">KeyHistory</a> 命令或菜单项判断脚本是否使用了钩子. 您可以通过 <a href="ListHotkeys.htm">ListHotkeys</a> 命令或菜单项判断哪个热键使用了钩子.</p>
PropertyStore.ahk
(git://github.com/maul-esel/COM-Classes.git)
AutoHotkey · 114 lines
✨ Summary
This AutoHotkey code defines a class PropertyStore
that wraps the IPropertyStore interface, providing methods for enumerating, getting, and setting property values in Windows Vista/Server 2008 or higher. It uses COM (Component Object Model) to interact with the operating system. The class provides methods to get property counts, retrieve property keys, set property values, and commit changes.
This AutoHotkey code defines a class PropertyStore
that wraps the IPropertyStore interface, providing methods for enumerating, getting, and setting property values in Windows Vista/Server 2008 or higher. It uses COM (Component Object Model) to interact with the operating system. The class provides methods to get property counts, retrieve property keys, set property values, and commit changes.
index.js (https://github.com/ukupat/tabs-or-spaces.git) JavaScript · 341 lines
index.html (https://github.com/nrnoble/IronAHK.git) HTML · 55 lines
SimpleHeap.h (https://github.com/infogulch/AutoHotkey_L.git) C Header · 62 lines
KeyHistory.htm (http://autohotkey-chinese.googlecode.com/svn/trunk/) HTML · 33 lines
20 <p>还可以使用 <a href="_KeyHistory.htm">#KeyHistory</a> 来改变显示的事件的最大数目.</p>
21 <p>此特性旨在帮助 <a href="../Scripts.htm#debug">调试脚本和热键</a>. 通过使用 <a href="../KeyList.htm#SpecialKeys">按键列表</a> 页面底部描述的步骤, 它还可以用来检测非标准键盘按键的扫描码 (知道按键的扫描码就可以把这个按键用在热键中).</p>
22 <p>滚轮事件 (WheelDown, WheelUp, WheelLeft 和 WheelRight) 的虚拟键 (VK) 是一些在 AutoHotkey 外没有任何意义的占位符值. 此外, 滚轮事件的扫描码实际上是滚轮转动的格数 (通常为 1).</p>
23 <p>如果脚本没有安装 <a href="_InstallKeybdHook.htm">键盘钩子</a>, 那么 KeyHistory 窗口将只显示由脚本自己 (即不包含用户的) 生成的按键事件. 如果脚本没有安装 <a href="_InstallMouseHook.htm">鼠标钩子</a>, 那么将不显示鼠标按钮事件. 如果您的脚本使用了其中的一种钩子, 那么可以通过脚本主窗口 (可通过托盘图标的 "Open" 菜单打开) 的菜单项 "View->Key History" 找到它. 通过添加下面两行语句中的任何一行或同时添加两行到脚本中, 您可以强制安装钩子:<br>
24 <a href="_InstallKeybdHook.htm">#InstallKeybdHook</a><br>
Macros.htm (https://github.com/jaco0646/AutoHotkey_L-Docs.git) HTML · 32 lines
15 <p>A macro is a series of scripted actions that is "played" upon demand. The most common activity of a macro is to send <a href="../commands/Send.htm">simulated keystrokes</a> and <a href="../commands/Click.htm">mouse clicks</a> to one or more windows. Such windows respond to each keystroke and mouse click as though you had performed it manually, which allows repetitive tasks to be automated with high speed and reliability.</p>
16 <p>Although macros can be written by hand, you might find it easier to write long ones with the aid of a macro recorder such as the <a href="http://www.autohotkey.com/forum/topic23671.html">Recorder script</a> written by Titan/polyethene. It watches what you type and where you click, and keeps track of which window is <a href="../commands/WinActivate.htm">active</a>. It transcribes these actions into a working macro that can later be "played back" at a faster speed.</p>
17 <p>One of the most convenient ways to play back a macro is to assign it to a <a href="../Hotkeys.htm">hotkey</a> or <a href="../Hotstrings.htm">hotstring</a>. For example, the following hotkey would create an empty e-mail message and prepare it for a certain type recipient, allowing you to personalize it prior to sending:</p>
18 <pre>^!s:: <em>; Control+Alt+S hotkey.</em>
28 <p>To start creating your own macros and hotkeys right away, please read the <a href="../Tutorial.htm">Quick-start Tutorial</a>.</p>
29 <p> </p>
30 <p><a href="http://www.autohotkey.com">-- Home --</a></p>
31 </body>
32 </html>
ahk.vim (https://bitbucket.org/WscriChy/vim-configuration.git) Vim Script · 71 lines
recorder.ahk
(git://github.com/Skiouros/Macro.git)
AutoHotkey · 76 lines
✨ Summary
This AutoHotkey script sets up a global hotkey system, allowing users to create custom keyboard shortcuts and mouse actions. It defines a set of keys, mouse buttons, and sends messages to windows using the Send
function. The script also includes a Send
function that can be used to send strings to specific windows, returning an error level indicating whether the message was processed or ignored.
This AutoHotkey script sets up a global hotkey system, allowing users to create custom keyboard shortcuts and mouse actions. It defines a set of keys, mouse buttons, and sends messages to windows using the Send
function. The script also includes a Send
function that can be used to send strings to specific windows, returning an error level indicating whether the message was processed or ignored.
LaunchHandling.kt (https://github.com/POE-Addon-Launcher/PAL2.git) Kotlin · 289 lines
Test Background.ahk
(git://github.com/Appifyer/Zizorz.git)
AutoHotkey · 105 lines
✨ Summary
This AutoHotkey script creates a GUI window with an image from disk, resizing it to half its original size and displaying it on the screen. It uses the GDI+ library to handle the graphics and updates the window’s layer with the new bitmap. The script also handles errors and shuts down the GDI+ library when exiting.
This AutoHotkey script creates a GUI window with an image from disk, resizing it to half its original size and displaying it on the screen. It uses the GDI+ library to handle the graphics and updates the window’s layer with the new bitmap. The script also handles errors and shuts down the GDI+ library when exiting.
intro.htm (https://github.com/fincs/SciTE4AHK-Docs.git) HTML · 46 lines
3 <html>
4 <head>
5 <title>SciTE4AutoHotkey</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <meta http-equiv="X-UA-Compatible" content="IE=edge">
11 <p><a href="http://fincs.ahk4.net/scite4ahk/"><img src="logo.png" border="0" alt=""/></a></p>
12 <h1>Version <a href="changelog.htm">v3.1.0</a></h1>
13 <p><em>SciTE distribution designed for AutoHotkey - made by fincs - Original SciTE made by Neil Hodgson</em></p>
14 <h2>Quick Reference</h2>
15 <p>Usage:</p>
16 <ul>
17 <li><a href="pages/opening.htm">Opening AutoHotkey scripts</a></li>
18 <li><a href="pages/working.htm">Working with AutoHotkey scripts</a></li>
19 <li><a href="pages/debugger.htm">Debugging AutoHotkey scripts</a></li>
20 <li><a href="pages/toolbar.htm">The toolbar</a></li>
21 <li><a href="pages/macros.htm">Using macros</a></li>
sound.py (https://github.com/spyoungtech/ahk.git) Python · 84 lines
5 def sound_beep(self, frequency=523, duration=150):
6 """
7 REF: https://autohotkey.com/docs/commands/SoundBeep.htm
9 :param frequency: number between 37 and 32767
17 def sound_play(self, filename, blocking=True):
18 """
19 REF: https://autohotkey.com/docs/commands/SoundPlay.htm
21 :param filename:
30 def sound_get(self, device_number=1, component_type='MASTER', control_type='VOLUME'):
31 """
32 REF: https://autohotkey.com/docs/commands/SoundGet.htm
2011-11-03-Your-First-Script.markdown (https://github.com/brigand/ahkbook.git) Markdown · 51 lines
12 ## Create a script file
13 If you have used the AutoHotkey classic or AutoHotkey\_L installer, right-click on your desktop or any folder and select New > AutoHotkey Script from the context menu. Open the newly created file in your editor. If you haven't run an installer, just open your editor and save it as a file with the extension ".ahk".
15 In the editor, type the following code:
22 ---
23 ### Note:
24 Make sure you chose the correct encoding. If you have installed AutoHotkey classic or AutoHotkey\_L ANSI, use, of course, ANSI, otherwise use UTF-8.
26 * In Windows Notepad, this setting is available under `File` > `Save As...` > `encoding`.
39 ## What happened?
40 The first word in your code above, `MsgBox`, is an AutoHotkey command that instructs AutoHotkey to show that box. The rest of the code is, as you might have guessed, the message to display.
42 ## Extending that example
_NoEnv.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 32 lines
22 <li>It significantly improves performance whenever empty variables are used in an expression or command. It also improves <a href="DllCall.htm">DllCall</a>'s performance when unquoted parameter types are used (e.g. int vs. "int").</li>
23 <li>It prevents script bugs caused by environment variables whose names unexpectedly match variables used by the script.</li>
24 <li>AutoHotkey v2 will make this behavior the default.</li>
25 </ol>
26 <p>To help ease the transition to #NoEnv, the built-in variables <a href="../Variables.htm#ComSpec">Comspec</a> and <a href="../Variables.htm#ProgramFiles">ProgramFiles</a> have been added. They contain the same strings as the corresponding environment variables.</p>
README.md (https://github.com/TaranVH/2nd-keyboard.git) Markdown · 41 lines
14 1. Ensure that both your keyboards are plugged in.
15 2. Download and install [LuaMacros](http://www.hidmacros.eu/forum/viewtopic.php?f=10&t=241#p794) and [AuthoHotkey](https://autohotkey.com/).
16 2. Download `2nd keyboard if using luamacros.ahk`, `SECOND KEYBOARD script for LUA MACROS.lua`, and `keypressed.txt` from this github repository, by clicking on the RAW button for each, and then selecting FILE > SAVE AS. Save them all into the same folder.
17 2. Open `SECOND KEYBOARD script for LUA MACROS.lua` using LuaMacros.exe, which will allow you to view and modify the code. You'll need to change the file path of keypressed.txt at least.
23 8. Scroll down to line 300 and change the filepath `C:\Users\TaranVanHemert\Documents\GitHub\2nd-keyboard\2nd keyboard support files\keypressed.txt` to the correct location of keypressed.txt on your own computer.
25 11. `SECOND KEYBOARD Premiere functions in AutoHotKey.ahk` was built for use in Adobe Premiere, but you can delete all the functions and write your own, for whatever application you desire!
26 12. If you do want to use my AHK Premiere functions, you'll need to modify them to fit your own computer. Common changes that will have to be made are: Coordinates, panel names, colors.
39 * [LuaMacros](https://github.com/stevedonovan/LuaMacro)
41 * [AuthoHotkey](https://github.com/AutoHotkey/AutoHotkey)
autohotkey.js (https://github.com/zhaoxuhui1122/vue-markdown.git) JavaScript · 57 lines
PARAMDATA.ahk (git://github.com/maul-esel/COM-Classes.git) AutoHotkey · 106 lines
2013-02-20-using-unix-terminal-keyboard-shortcuts-in-the-windows-command-prompt.md (https://github.com/jpoehls/jpoehls.github.com.git) Markdown · 27 lines
2 title: Using Unix terminal shortcuts in the Windows command prompt
3 layout: post
4 categories: powershell autohotkey windows
5 description: "Unix terminals have a few basic keyboard shortcuts that the Windows command prompt doesn't support. I'll show you how to fix that with AutoHotkey."
13 * `CTRL+V` to paste text
15 The Windows command prompt doesn't support these by default but we can fix that with [AutoHotkey](http://www.autohotkey.com).
17 _If you don't already have it installed, you can follow the steps in [my blog post]({{site.url}}/2011/use-autohotkey-to-remap-your-numpad-keys-to-something-useful/)._
19 Add this magic to your AutoHotkey script to enable these shortcuts in the Windows command prompt and PowerShell.
21 <pre>#IfWinActive ahk_class ConsoleWindowClass
EasyWindowDrag_(KDE).ahk
(git://github.com/jixiuf/my_autohotkey_scripts.git)
AutoHotkey · 154 lines
✨ Summary
This AutoHotkey script enables easy window dragging and resizing, similar to KDE’s style. It allows users to drag a window by holding Alt and left-clicking, resize by holding Alt and right-clicking, minimize by double-Alt and left-click, maximize by double-Alt and right-click, and close by double-Alt and middle-click. The script also handles double-clicks of the Alt key for additional functionality.
This AutoHotkey script enables easy window dragging and resizing, similar to KDE’s style. It allows users to drag a window by holding Alt and left-clicking, resize by holding Alt and right-clicking, minimize by double-Alt and left-click, maximize by double-Alt and right-click, and close by double-Alt and middle-click. The script also handles double-clicks of the Alt key for additional functionality.
5 ; Easy Window Dragging -- KDE style (requires XP/2k/NT) -- by Jonny
6 ; http://www.autohotkey.com
7 ; This script makes it much easier to move or resize a window: 1) Hold down
8 ; the ALT key and LEFT-click anywhere inside a window to drag it to a new
36 If (A_AhkVersion < "1.0.39.00")
37 {
38 MsgBox,20,,This script may not work properly with your version of AutoHotkey. Continue?
39 IfMsgBox,No
40 ExitApp
2011-10-30-Compiling.markdown (https://github.com/nimdahk/ahkbook.git) Markdown · 50 lines
20 AutoHotkey classic includes a "no-decompile" switch and a password protection in the compiler to make decompilation more difficult. This prevents the above tool from decompiling a script. However, this doesn't make your code safe: anyone who spends some time on it will be able to decompile your script. This is why the "no-decompile" option is no longer present in newer AutoHotkey versions.
22 On the forum, you might find ["HotkeyCamo"](http://www.autohotkey.com/forum/viewtopic.php?t=49952), a closed-source compiler for AutoHotkey that claims to do real compilation. However, this tool seems to not have been updated for a while and doesn't support latest AutoHotkey versions.
24 ### IronAHK
25 All the above affects AutoHotkey classic, AutoHotkey_L, AutoHotkey v2, AutoHotkey_H etc., ***but not IronAHK.*** IronAHK compiles your scripts into .NET assemblies. This means one usually can't get the AutoHotkey source code out of it. There are tools to get what the assembly does and how, but not the original source code. Also, you can use so-called "obfuscators" to avoid this.
26 The second aspect of this fact is that in IronAHK, compiling improves performance: the AutoHotkey code is not interpreted by the parser anymore, and it should be as fast as any other .NET assembly.
28 ### AutoHotkey_L's scripted compiler
29 Since the latest AutoHotkey_L versions, the compiler shipped with the installer is written in AutoHotkey. You can find the source [here](http://www.autohotkey.com/forum/viewtopic.php?t=74816).
31 ### Compile_AHK
49 ### AutoHotkey_H
50 Compiling of AutoHotkey\_H code can be done by downloading [this modified version](https://github.com/HotKeyIt/Ahk2Exe/zipball/master) of the AutoHotkey_L compiler. Unzip the files included in the AutoHotkey\_H package into the compiler directory and run the compiler.
chocolateyinstall.ps1 (https://github.com/bcurran3/ChocolateyPackages.git) Powershell · 23 lines
4 $url = 'http://dl.google.com/tag/s/appguid%3D%7B7DF3B6EE-9890-4307-BDE5-E1F3FCB09771%7D%26iid%3D%7BF8313931-0A96-BEDC-57C8-A94587ACC093%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DG%2520Suite%2520Migration%2520for%2520Microsoft%2520Outlook%25C2%25AE%26needsadmin%3Dtrue/outlookmigration/OutlookMigrationSetup.exe'
5 $checksum = '062F385A7AF096A774A09B0892F3AC7BB1A562A399514A3BEE620B6B77CE2EA2'
6 $ahkExe = 'AutoHotKey'
7 $ahkFile = "$toolsDir\GSMMOInstall.ahk"
IDLDESC.ahk (git://github.com/maul-esel/COM-Classes.git) AutoHotkey · 106 lines
Tests.cs (https://github.com/brigand/twiddlekins.git) C# · 60 lines
init_functions.el (https://github.com/mbudde/ergoemacs.git) Emacs Lisp · 107 lines
StringLower.htm (https://github.com/wyagd001/wyagd001.github.io.git) HTML · 65 lines
components.js (https://github.com/tjvantoll/tjvantoll.github.com.git) JavaScript · 209 lines
index.css (https://github.com/shajul/Autohotkey.git) CSS · 67 lines
config.h (https://github.com/infogulch/AutoHotkey_L.git) C Header · 48 lines
pcre_newline.c (https://github.com/fincs/AutoHotkey_L.git) C · 174 lines
77 {
78 int c;
79 #ifdef SUPPORT_UTF8 /* AutoHotkey. */
80 if (utf8) { GETCHAR(c, ptr); } else c = *ptr;
81 #else
82 c = *ptr; /* AutoHotkey. */
83 #endif /* AutoHotkey. */
100 case 0x000d: *lenptr = (ptr < endptr - 1 && ptr[1] == 0x0a)? 2 : 1;
101 return TRUE; /* CR */
102 #ifdef SUPPORT_UTF8 /* AutoHotkey. */
103 case 0x0085: *lenptr = utf8? 2 : 1; return TRUE; /* NEL */
104 #else
105 case 0x0085: *lenptr = 1; return TRUE; /* NEL */ /* AutoHotkey. */
106 #endif /* AutoHotkey. */
TPopupActionBar.pas (http://delphi-ide-theme-editor.googlecode.com/svn/trunk/) Pascal · 154 lines
115 property PopupPoint: TPoint;
116 property Images: TCustomImageList;
117 property AutoHotkeys: TMenuAutoFlag;
118 property AutoLineReduction: TMenuAutoFlag;
119 property BiDiMode: TBiDiMode;
136 property OnGetControlClass: TGetControlClassEvent;
137 property Alignment: TPopupAlignment;
138 property AutoHotkeys: TMenuAutoFlag;
139 property AutoLineReduction: TMenuAutoFlag;
140 property AutoPopup: Boolean;
RunAs.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 44 lines
30 </dl>
31 <h3>Remarks</h3>
32 <p>This command does nothing other than notify AutoHotkey to use (or not use) alternate user credentials for all subsequent uses of <a href="Run.htm">Run</a> and <a href="Run.htm">RunWait</a>.</p>
33 <p><a href="../misc/ErrorLevel.htm">ErrorLevel</a> is not changed by this command. If an invalid <em>User</em>, <em>Password</em>, or <em>Domain</em> is specified, <a href="Run.htm">Run</a> and <a href="Run.htm">RunWait</a> will display an error message explaining the problem (unless their <a href="Run.htm#UseErrorLevel">UseErrorLevel option</a> is in effect).</p>
34 <p>While the RunAs feature is in effect, <a href="Run.htm">Run</a> and <a href="Run.htm">RunWait</a> will not able to launch documents, URLs, or system verbs. In other words, the file to be launched must be an executable file.</p>
SetRegView.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 68 lines
27 <h3>General Remarks</h3>
28 <p>This command is only useful on Windows 64-bit. It has no effect on Windows 32-bit.</p>
29 <p>On 64-bit systems, 32-bit applications run on a subsystem of Windows called <a href="http://msdn.microsoft.com/en-us/library/aa384249">WOW64</a>. By default, the system redirects certain <a href="http://msdn.microsoft.com/en-us/library/aa384253">registry keys</a> to prevent conflicts. For example, in a 32-bit script, <code>HKLM\SOFTWARE\AutoHotkey</code> is redirected to <code>HKLM\SOFTWARE\Wow6432Node\AutoHotkey</code>. SetRegView allows the registry commands in a 32-bit script to access redirected keys in the 64-bit registry view and vice versa.</p>
31 <p>The built-in variable <em>A_RegView</em> contains the current setting. Every newly launched <a href="../misc/Threads.htm">thread</a> (such as a <a href="../Hotkeys.htm">hotkey</a>, <a href="Menu.htm">custom menu item</a>, or <a href="SetTimer.htm">timed</a> subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).</p>
2011-11-23-Working-with-bits.markdown (https://github.com/nimdahk/ahkbook.git) Markdown · 114 lines
10 ### Base 10 ###
11 Binary, or Base 2, is simply another way to write numbers. In everyday life, we use Base 10. We have the Ones place, the Tens place, the Hundreds place, and so on. More technically, each digit is multiplied by ``10 ** n``, where ``n`` represents the distance from the right, starting from 0. (In AutoHotkey, ``**`` represents exponents or "powers"). Thus, the number 647 in Base 10 is equivalent to ``(6 * 100) + (4 * 10) + (7 * 1)``, or ``(6 * 10**2) + (4 * 10**1) + (7 * 10**0)`` in binary. (Yes, ``10**0`` is 1, and this is no place to discuss why.)
13 ### Base 2 ###
28 ### The Bitwise AND ###
29 The bitwise AND (represented by a single ampersand '&' in AutoHotkey) takes two digits at a time. If they are both 1, then the result is 1. Otherwise, the result is false. Here's an example:
31 1100
38 ### The Bitwise OR ###
39 The bitwise OR (a single pipe '|' in AutoHotkey) has a different effect. It takes two operands, and if *at least one* of them is true (a 1) then the result is 1. Example:
41 1100
ahkv2.htm (https://github.com/fincs/SciTE4AHK-Docs.git) HTML · 46 lines
3 <html>
4 <head>
5 <title>AutoHotkey v2 Support</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <meta http-equiv="X-UA-Compatible" content="IE=edge">
9 </head>
10 <body>
11 <h1>AutoHotkey v2 Support</h1>
12 <p><strong>Functionality subject to change in a future version of SciTE4AutoHotkey.</strong></p>
13 <p>SciTE4AutoHotkey supports editing <a href="https://www.autohotkey.com/v2/">AutoHotkey v2</a>
14 scripts. To enable this feature, the <a href="https://www.autohotkey.com/download/ahk-v2.zip">latest AutoHotkey v2 zip</a>
15 must be extracted to <code>%AutoHotkeyDir%\v2</code>.
16 After this, select the v2 platform using the platform selector
17 (<img src="icon/ahkswitch.ico" alt="" border="0"/>), and .ahk files will now be detected as
README.md (https://github.com/TaranVH/2nd-keyboard.git) Markdown · 33 lines
README.md (https://github.com/brigand/ahkbook.git) Markdown · 40 lines
1 # ahkbook - a book on AutoHotkey
3 Information on this project can be found on its [start page](http://maul-esel.github.com/ahkbook/index.html).
5 ## Contributing
6 Please help me with this project. Add your posts, ideas, knowledge, experience to help AutoHotkey beginners, and to provide a reference for advanced users!
8 To contribute, do the following:
10 * if you're on github:
11 * PM me on github or in the AutoHotkey forums
12 * fork the project
13 * **IMPORTANT: change the `url` setting in `_config.yml` to `'http://[your username].github.com/ahkbook'`**
16 * test if it works
17 * send me a pull request when you're done
18 * otherwise send me your comments, ideas, patches, ... via the AutoHotkey forums or PM me there.
20 In either way,
README.md (https://github.com/madslundt/keybindings.git) Markdown · 111 lines
ComObjCreate.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 44 lines
35 <h3>Examples</h3>
36 <p>For a constantly growing list of examples, see the following forum topic: <a href="http://www.autohotkey.com/forum/topic61509.html">http://www.autohotkey.com/forum/topic61509.html</a>.</p>
37 <pre class="NoIndent">
38 ie := <b>ComObjCreate</b>("InternetExplorer.Application")
39 ie.Visible := true <em>; This is known to work incorrectly on IE7.</em>
40 ie.Navigate("https://autohotkey.com/")
41 </pre>
README.md (https://github.com/iViO/SciTE4AutoHotkey.git) Markdown · 24 lines
SetEnv.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 43 lines
29 <h3>Remarks</h3>
30 <p>By default, any spaces or tabs at the beginning and end of <em>Value</em> are omitted from <em>Var</em>. To prevent this, use the methods described at <a href="AutoTrim.htm#Off">AutoTrim Off</a>.</p>
31 <p>The name "SetEnv" is misleading and is a holdover from AutoIt v2. Unlike AutoIt v2, AutoHotkey does not store its variables in the environment. This is because performance would be worse and also because the OS limits the size of each environment variable to 32 KB. Use <a href="EnvSet.htm">EnvSet</a> instead of SetEnv to write to an <a href="../Variables.htm#env">environment variable</a>.</p>
32 <p>The memory occupied by a large variable can be freed by setting it equal to nothing, e.g. <code>Var =</code>.</p>
33 <p>It is possible to create a <a href="../misc/Arrays.htm#pseudo">pseudo-array</a> with this command and any others that accept an <em>OutputVar</em>. This is done by making <em>OuputVar</em> contain a reference to another variable, e.g. <code>array%i% = 123</code>. See <a href="../misc/Arrays.htm">Arrays</a> for more details.</p>
Suspend.htm (https://gitlab.com/ahkscript/Autohotkey.docset) HTML · 48 lines
2011-11-11-Working-with-conditions.markdown (https://github.com/maul-esel/ahkbook.git) Markdown · 77 lines
13 ## if
14 So in AutoHotkey. As you got to know previously, AutoHotkey has a so-called expressional and a traditional mode. This also applies to `if`.
15 {% highlight ahk linenos %}
16 If (A_OSVersion == "WIN_98")
25 Now this is the traditional way: no braces, the left side is **always** a variable, the right side is taken as literal string (or number).
27 As this is only a comparison for `true`/`false` (`1`/`0` in AutoHotkey), you can leave out the second part: `if A_IsAdmin` is enough. This also applies when using expressional mode: if you want, include `A_IsAdmin` in braces. You could also do a comparison to AutoHotkey's "constants" **true** and **false**.
29 It is often recommended to use expressional mode instead of traditional, because it is the same as in other languages, it is considered a <cite>better style</cite>, and traditional is removed in AutoHotkey v2 (and AutoHotkey\_H v2).
48 ### More `if`
49 AutoHotkey classic, AutoHotkey\_L and AutoHotkey\_H also support several "if-like" statements such as `IfEqual`, `IfLess`, `IfGreater`, `IfLessOrEqual`, `IfWinActive`, `IfWinExist`, `IfWinNotActive`, `IfWinNotExist`, `IfExist`, `IfInString`, ... . Using those is discouraged today as they are often considered "bad style" and they're about to be removed in AutoHotkey v2, AutoHotkey\_H v2 and IronAHK. All of them can be worked around by using the "normal" `if` plus a comparison.
51 A special case is `IfMsgBox`, which can't be worked around in AutoHotkey classic, AutoHotkey\_L and AutoHotkey\_H. Still it will be replaced by something else in AutoHotkey v2, IronAHK and AutoHotkey\_H v2. We'll look at this further in the next chapter when we deal with the specifics of the `MsgBox` command.
AHK_Window_Info_v1.7.ahk
(http://autohotkey-cn.googlecode.com/svn/trunk/)
AutoHotkey · 1916 lines
✨ Summary
This AutoHotkey code provides a basic framework for drawing shapes and rectangles on the screen using Windows API functions. It creates a buffer to store old color data, removes previously drawn rectangles, and draws new ones with specified colors and thicknesses. The code also handles frame drawing and region modifications, allowing for more complex graphics operations.
This AutoHotkey code provides a basic framework for drawing shapes and rectangles on the screen using Windows API functions. It creates a buffer to store old color data, removes previously drawn rectangles, and draws new ones with specified colors and thicknesses. The code also handles frame drawing and region modifications, allowing for more complex graphics operations.
2 ;by toralf
3 ;requires AHK 1.0.44.04
4 ;www.autohotkey.com/forum/topic8976.html
6 ScriptName = AHK Window Info 1.7
9 ; for details see: http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode
10 ;
11 ; export code by sosaited www.autohotkey.com/forum/viewtopic.php?t=8732&p=53372#53372
12 ; idea and lot of code of frame drawing by shimanov
13 ; several ideas from Chris and other users of the AHK forum
15 ; initial ideas taken from these scripts:
16 ; Ahk Window Spy 1.3.3 by Decarlo www.autohotkey.com/forum/viewtopic.php?t=4679
17 ; WinInfo Menu by Jon www.autohotkey.com/forum/viewtopic.php?t=8617
102 (LTrim
103 This Gui will reveal information on windows, controls, etc.
104 This software is under the GNU General Public License for details see: www.autohotkey.com/docs/license.htm
106 Move your mouse over the area of interest and see the data in this GUI changing accordingly (auto-update). The auto-update stops when this GUI becomes the active one. To achieve this without moving the mouse you can use Alt+Tab to change to %ScriptName%. Or you can use a hotkey to turn the auto-update off. The default hotkey is the Pause key.
get_processname.ahk
(http://candy-software.googlecode.com/svn/trunk/)
AutoHotkey · 14 lines
✨ Summary
This AutoHotkey code retrieves the full path of a module (DLL) associated with a given process ID (p_pid
). It uses the Windows API function GetModuleFileNameEx
to achieve this, handling errors and closing the handle to the process after use. The retrieved path is returned as a string.
This AutoHotkey code retrieves the full path of a module (DLL) associated with a given process ID (p_pid
). It uses the Windows API function GetModuleFileNameEx
to achieve this, handling errors and closing the handle to the process after use. The retrieved path is returned as a string.