Format Numbers in AutoHotkey with Commas
- Category: AutoHotkey
- Hits: 22386
FormatAddCommas(val) {
Result:=val
StringLen, OutputVar, Result
NumLoop := (OutputVar // 3)
DNum = 3
Loop, % (NumLoop+1)
{
StringRight,Digit,Result,%DNum%
StringReplace, Result, Result, %Digit%,`,%Digit%
DNum += 4
}
StringLen, OutputVar, Result
Loop, %OutputVar%
{
FirstChar:=Substr(Result, 1, 1)
IfEqual, FirstChar, `,
{
Result:=Substr(Result, 2)
} else {
break
}
}
Return Result
}
Fun with DllCall in AutoHotkey
- Category: AutoHotkey
- Hits: 30302
The one to rule them all:
This is a function I pulled from the Autohotkey forums submitted by SKAN which lists all the functions for a specified Dynamic Link Library (DLL) along with an inputbox for convenience:
Mouseover Links in AutoHotkey
- Category: AutoHotkey
- Hits: 28033
How?
Alternative method of displaying Unicode in Autohotkey GUI
- Category: AutoHotkey
- Hits: 38444
msgbox % Chr(24) ; upwards arrow msgbox % Chr(25) ; downwards arrow, unstable
AutoHotkey Format Date and Format Seconds
- Category: AutoHotkey
- Hits: 26344
In it's straightforward form
FormatTime( TimeString, Format )
{
FormatTime, FormattedTime , TimeString, %Format%
return Formattedtime
}
Functions to convert Hex 2 RGB and vice-versa
- Category: AutoHotkey
- Hits: 18700
- From Hexadecimal to RGB
- From RGB to Hexadecimal
- Check for a valid hexadecimal value
Win32 Constants
- Category: AutoHotkey
- Hits: 69695
Add Image Mouseover effect in AutoHotkey GUI
- Category: AutoHotkey
- Hits: 252384
Couldn't find this anywhere on the net and kinda needed it so am making a note of how to do it here.
The issue is that I wanted to make my autohotkey program change the image that the mouse hovers over (within it's own GUI). No third-party component or dll needed, just a slight modification to the mousemove tooltip in the autohotkey manual.
Page 2 of 3
Latest Articles
Accreditation
Donate & Support
If you like my content, and would like to support this sharing site, feel free to donate using a method below:

bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
0xb038962F3809b425D661EF5D22294Cf45E02FebF
Paypal:

Bitcoin:
bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4
Ethereum:
0xb038962F3809b425D661EF5D22294Cf45E02FebF

