AutoHotKey (AHK) New Line In Macro Output

There are multiple ways to send a New Line to AutoHotKey output.
I will show one technique that has worked well for me

This example is triggered when you type in MyMacroText1 (not case sensitive) and it then sends the text including new lines to the current program

       send Hello There{ENTER}
       send How Are You{ENTER}
       send That Is All

You can do it all on one line if you want to

       send Hello There{ENTER}How Are You{ENTER}That Is All

AutoHotKey (AHK) toggle window on top / not on top

; ============================================================
; toggle window on top / not on top
; ============================================================

+^u::     ; shift control U
          WinGet, ExStyle, ExStyle, A                     ; get info about active window
          if  (ExStyle & 0x8)  ; 0x8 is WS_EX_TOPMOST.    ; if top most
               Winset, AlwaysOnTop, off, A                ; disable on top
               WinSet, AlwaysOnTop, on,  A                ; enable on top

AutoHotKey (AHK) Adjust Sound Volume using Shift Mouse Up / Down

; =====================================================
; Settings
; =====================================================

#SingleInstance force
#NoEnv                                             ; Recommended for performance and compatibility with future AutoHotkey releases.
;  #Warn                                           ; Enable warnings to assist with detecting common errors.
sendMode Input                                     ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%                        ; Ensures a consistent starting directory.
                                                   ; Enlarges variable's holding capacity or frees its memory
                                                   ; Necessary for unusual circumstances such as Dll calls
VarSetCapacity(APPBARDATA, A_PtrSize=4 ? 36:48)    ; required for Task Bar Auto Hide Toggle
#MaxHotkeysPerInterval 200                         ; increase max keys to allow mouse wheel spin to change volume with a popup warning

; =====================================================
; Adjust system volume using Shift and Mouse Wheel.
; Make sure to use MaxHotkeysPerInterval as shown above.
; =====================================================

		SoundSet, +5

		SoundSet, -5

Bonus Tip. Modifier Keys

! Alt
^ Ctrl
+ Shift
# Windows

Delphi – uses controls unit in all versions of Delphi, VCL, FMX

This shows how to USE the CONTROLS unit in a way that will work for all versions of Delphi (old and new) as well as VCL and FireMonkey.,

You can use variations of this for other units

Continue reading “Delphi – uses controls unit in all versions of Delphi, VCL, FMX”

Delphi FMX – click through form. HitTest not available

Create a Delphi FireMonkey (FMX) form that the user can click through

This post shows you how to create a Delphi FireMonkey (FMX) form that the user can click through as if the form did not exist.

Continue reading “Delphi FMX – click through form. HitTest not available”

Delphi TSplitter immediate repaint screen while dragging

Delphi TSplitter does not immediately refresh other controls when you are dragging it.

To make a Delphi TSplitter immediately repaint the screen when you drag it with the mouse, set ResizeStyle = rsUpdate

Continue reading “Delphi TSplitter immediate repaint screen while dragging”