How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85? Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Clemens375
Posts: 104
Joined: 11 May 2020, 11:54

How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?

09 Aug 2020, 10:21

Hello,

How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?

Code: Select all

	if (Var = 79) {
		GuiControl,, startingNumS, %  (startingNumS += 1)
	}

Thank you!
User avatar
boiler
Posts: 5909
Joined: 21 Dec 2014, 02:44

Re: How can I say I want add startingNum+1 for Var 79, 80, 81,82,83,84 and 85?  Topic is solved

09 Aug 2020, 11:55

I assume you mean that you want to add 1 to startingNum, not add startingNum+1.

Code: Select all

	if (Var >= 79) && (Var <= 85) {
		GuiControl,, startingNumS, %  (startingNumS += 1)
	}
By the way, you said startingNum, but then your code shows startingNumS, so change it if that’s not what you want.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Gushou, JoeWinograd, Lorik, mikeyww, TAC109 and 53 guests