I need to get multiple windows name in multiple variables, but since I can't put a variable name inside a variable, I don't know how I'm going to do it. doing %%varname%% doesn't work.
Code: Select all
...
WinCount = 1
; getting window name by pressing alt + a
!a::
WinGetTitle,%WinCount%,A ; Reason I used %WinCount%: to represent 1, I'll set it more and more
MsgBox,,,Window name "%%WinCount%%" stored on var %WinCount%
WinCount = %WinCount% + 1
If the window name was Windows Explorer, I'm expecting something like this:
Code: Select all
Window name "Windows Explorer" stored on var 1