Skip to content

Instantly share code, notes, and snippets.

@jballi
jballi / Convert2Hex.ahk
Created September 18, 2013 03:46
Convert integer (any format) to integer in hexadecimal format
;------------------------------
;
; Function: Convert2Hex
;
; Description:
;
; Converts an integer to hexadecimal format.
;
; Parameters:
;
@jballi
jballi / Set Tooltip Width.ahk
Created April 26, 2013 07:39
Set the maximum tip width for a tooltip using the Fnt library
#NoEnv
#SingleInstance Force
ListLines Off
;-- Initialize
CoordMode Tooltip,Screen
hFont :=0
;-- If not zero, this variable contains the handle to the current font.
@jballi
jballi / AddTooltip.ahk
Last active December 15, 2015 12:29
AddTooltip
;------------------------------
;
; Function: AddToolTip
;
; Description:
;
; Add/Update tooltips to GUI controls.
;
; Parameters:
;
@jballi
jballi / No Dialog Find, Find Previous, Find Next, and Replace.ahk
Created December 18, 2012 20:31
No Dialog Find, Find Previous, Find Next, and Replace
;[================]
;[ Convert Case ]
;[================]
^#!c:: ;-- Capitalize
^#!l:: ;-- Lowercase
^#!t:: ;-- Toggle case
^#!u:: ;-- Uppercase
;-- Bounce if an Edit control is not active
if not Edit_GetActiveHandles(hEdit,hWindow,True)
@jballi
jballi / Smart Word Wrap Toggle For Notepad.ahk
Created December 18, 2012 20:18
Smart Word Wrap Toggle For Notepad
;[=============]
;[ Ctrl+W ]
;[ [Notepad] ]
;[=============]
#IfWinActive ahk_class Notepad
^w::
#IfWinActive
;-- Get current handle to the Edit control
if Edit_GetActiveHandles(hEdit)
@jballi
jballi / Validate As You Type.ahk
Created December 18, 2012 20:00
Validate As You Type
;-- Thanks to jsherk for the idea for this example
; Post: http://www.autohotkey.com/forum/viewtopic.php?t=73246
;[===============]
;[ Environment ]
;[===============]
#NoEnv
#SingleInstance Force
ListLines Off
@jballi
jballi / Example - InputBox.ahk
Created December 18, 2012 01:38
Example - InputBox
;-- Idea for this example: just me.
;-- Post: http://www.autohotkey.com/board/topic/88206-inputbox-data-validation-5-characters-or-less/#entry559627
#NoEnv
#SingleInstance Force
ListLines Off
;-- Constants
ES_UPPERCASE :=0x8
ES_LOWERCASE :=0x10
ES_NUMBER :=0x2000
@jballi
jballi / Test your forum posts - gist test 2.ahk
Created December 12, 2012 16:12
Test your forum posts - gist test 2
WB.document.write("<body style=""margin:0px;""><img id=""pic"" src=""http://" img """/></body>")
@jballi
jballi / Test your forum posts - gist test 1
Created December 12, 2012 15:59
Test your forum posts - gist test 1
WB.document.write("<body style=""margin:0px;""><img id=""pic"" src=""http://" img """/></body>")
@jballi
jballi / Example - Edit control on a ListView control.ahk
Created December 11, 2012 21:33
Controlling the Edit control of the ListView control
#NoEnv
#SingleInstance Force
;;;;;#Persistent
ListLines Off
;-- Constants
ES_UPPERCASE :=0x8
ES_LOWERCASE :=0x10
ES_NUMBER :=0x2000