multiply varibles?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wryyymuda
Posts: 32
Joined: 21 Sep 2018, 21:43

multiply varibles?

24 Sep 2018, 17:19

I would like to multiply one of my variables in my script by 2, or another one of my scripts. any functions for that?
AHKStudent
Posts: 1472
Joined: 05 May 2018, 12:23

Re: multiply varibles?

24 Sep 2018, 17:23

var = 54
msgbox, % var * 2
ExitApp
wryyymuda
Posts: 32
Joined: 21 Sep 2018, 21:43

Re: multiply varibles?

24 Sep 2018, 17:33

AHKStudent wrote:var = 54
msgbox, % var * 2
ExitApp
it just counts it as text, i did

Code: Select all

%var% * 2
%var *2
%var * 2%
none of those worked
wryyymuda
Posts: 32
Joined: 21 Sep 2018, 21:43

Re: multiply varibles?

24 Sep 2018, 18:18

i just did

Code: Select all

inputbox, var , example , example var , , 300 , 300
var += %var%
msgbox, %var%

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: filipemb and 283 guests