InputBox, Input, AHK Numbers,,,160,100 Input := % Input / 2 Loop, Parse, Input,. { If A_Index = 2 { Input := A_LoopField Break } } If Input = 0 MsgBox Even Else MsgBox Odd Return

I've looked around and didn't come up with anything. This seems like the sort of thing that'd already have been built into AHK. Does anyone have a less resource intensive or shorter solution to this issue?

What my script does here is divides your questionable number by 2, if the number is odd then it will have some value carried into its decimals and if it's even it won't. Then I grab the decimals using

`Loop, Parse`

, consequentially converting them to whole numbers but that's irrelevant, and compare them to 0. If the number is even then Input at this point will be 000000, if it's odd then Input will be something like 500000 or some other large number. Then by comparing these strings to 0 I can determine if the original Input was even or odd.