Format Numbers in AutoHotkey with Commas
- Category: AutoHotkey
- Hits: 20608
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: 26748
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: 24704
How?
Alternative method of displaying Unicode in Autohotkey GUI
- Category: AutoHotkey
- Hits: 34735
msgbox % Chr(24) ; upwards arrow msgbox % Chr(25) ; downwards arrow, unstable
AutoHotkey Format Date and Format Seconds
- Category: AutoHotkey
- Hits: 23586
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: 17123
- From Hexadecimal to RGB
- From RGB to Hexadecimal
- Check for a valid hexadecimal value
Win32 Constants
- Category: AutoHotkey
- Hits: 57415
Add Image Mouseover effect in AutoHotkey GUI
- Category: AutoHotkey
- Hits: 243384
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
Credit where Credit is Due:
Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.
Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.
Thank you for visiting and, as always, we hope this website was of some use to you!
Kind Regards,
Joel Lipman
www.joellipman.com
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

