Hello,
I'm new to autohotkey but starting to discover it's great potential! I have a problem I'm trying to solve: I need to increment a year in a string of numbers, such that, for example, 20160930 becomes 20170930. To that end I've written (well, more like assembled out of other people's solutions) this script:
Code: Select all
Capslock & d::
{
Sleep, 50
Send ^c
Sleep, 50
RegExMatch(clipboard, "^[201]\d{1}$", Number)
Sleep, 50
NewNumber:=Number1+1
Sleep, 50
Clipboard:=RegExReplace(clipboard, Number1, NewNumber)
Sleep, 50
Send ^v
Sleep, 50
}
Return