Increase a value in a loop Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Guill
Posts: 134
Joined: 09 Jun 2016, 22:00

Increase a value in a loop

30 Jun 2019, 09:12

Hi guys,
I tell you the need that I have:

I would like that a value assigned to the clipboard, add 4 each repetition.

Something like that, I suppose:

Code: Select all

Send ^ x; Retain the numerical value in the clipboard

Loop
{
Clipboard = Clipboard + 4; This line is that I do not know how to write
Send% clipboard%
}
Thanks in advance!
sinbad
Posts: 40
Joined: 01 Mar 2018, 09:32

Re: Increase a value in a loop

30 Jun 2019, 09:31

You want to increment a variable? Something like this
Image
Guill
Posts: 134
Joined: 09 Jun 2016, 22:00

Re: Increase a value in a loop

30 Jun 2019, 10:13

It works if it is:


Clipboard ++ ; adds ONLY 1

But I need add 4 each time

How I do it?
Guill
Posts: 134
Joined: 09 Jun 2016, 22:00

Re: Increase a value in a loop

30 Jun 2019, 10:24

Thank you!

It works both ones.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], boiler, Chemomancer, kunkel321, mikeyww, Nekrocow, Spawnova, Timmy347, vmech and 44 guests