Hello !
First of all, i apologize because english is not my native langage and i am new to programming.
So what i am trying to do is to open windows with f1, f2, f3, f4.
I found this script wich is working but there is a little problem i will explain later.
loop
{
F1::WinActivate,[name of the window]
F2::WinActivate,[name of the window]
F3::WinActivate,[name of the window]
F4::WinActivate,[name of the window]
F5::ExitApp
}
The problem i face is that all the windows have the same name, so i can't target one specifically.
Maybe it is possible to target a window by its position ? Maybe there is another solution ?
Thanks for reading me and i hope you can help.
How to target one specific window if several have the same name ?
Re: How to target one specific window if several have the same name ?
WinActivate will only target the topmost window.
You will want to look into GroupAdd.
https://www.autohotkey.com/docs/commands/GroupAdd.htm
This will cycle through the windows with F1.
You will want to look into GroupAdd.
https://www.autohotkey.com/docs/commands/GroupAdd.htm
This will cycle through the windows with F1.
Code: Select all
GroupAdd, winvar, [name of the window]
return
F1::GroupActivate, winvar
Re: How to target one specific window if several have the same name ?
Thanks you for your answer i'll check that !
Who is online
Users browsing this forum: famko, teadrinker and 38 guests