In this situation, how to use controlclick?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Parama
Posts: 40
Joined: 27 Sep 2017, 22:38

In this situation, how to use controlclick?

25 Oct 2017, 02:24

my variable enclose coordinate
my variable name is so comlicated, name is Relative%variable%XIndividual%aindex% , Relative%variable%YIndividual%aindex%
by means of loop command, I make my variable' s name
both %variable% and %aindex% are parameters related to A_index
To use 'controlclick' command to click a command, the script is written like this.

Code: Select all

ControlClick, X%Relative%variable%XIndividual%aindex%%	Y%Relative%variable%XIndividual%aindex%%, TitleName
or

Code: Select all

ControlClick, X% Relative%variable%XIndividual%aindex%	Y% Relative%variable%XIndividual%aindex%, TitleName

But because there are too many % symbols, I think it can't recognize them properly. How can I use them?
BoBo n-l-i

Re: In this situation, how to use controlclick?

25 Oct 2017, 07:57

Code: Select all

Loop, 12 {
   variable := "[A]"
   Random, v1, 100, 200
   Random, v2, 100, 200
   xRelative%variable%xIndividual%A_Index% := v1
   yRelative%variable%yIndividual%A_Index% := v2
   }
Loop, 12
   ControlClick,% "xRelative[A]xIndividual" . A_Index,% "yRelative[A]yIndividual" . A_Index, TitleName
That kinda concept?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, Google [Bot], peter_ahk and 339 guests