Increase a value in a loop Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guill
Posts: 139
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: 139
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: 139
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 (v1)”

Who is online

Users browsing this forum: No registered users and 298 guests