multiply varibles?

Get help with using AutoHotkey 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: 882
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”

Who is online

Users browsing this forum: anhnha, Bing [Bot], pnKed, SilasDeVis and 60 guests