David
David

Reputation: 299

get integer value as input through autohotkey

I am an AutoHotkey user; I need to get numeric value from an Edit control on a window to be used in some math calculations. However it seems the input value obtained from the Edit control (though contains only digits) is in string type; thus the script fails completing. You may show how to get an integer from an Edit control as input through AutoHotkey.

Upvotes: 0

Views: 1505

Answers (1)

David
David

Reputation: 299

I shouldn't use percentage signs (%) for retrieving the variable in below expression: result:=%ValueFromEditCtrl%+2 result:=ValueFromEditCtrl+2 is correct.

Upvotes: 1

Related Questions