# Situation
I have two windows
- First with Title "AutoHotkey Community - Post a new topic — Mozilla Firefox"
Normal Firefox Window
- Second with Title "Mozilla Firefox (Private Browsing)"
Private Browsing
# My Question
How do I differentiate these two window when calling WinActivate?
- I refer to
https://www.autohotkey.com/docs/misc/WinTitle.htm
and see I can use Regex for this situation?
- wonder if you can give me an example in this case, as I am not very familiar with Regex(sorry...)
- If possible, can I use two criteria for WinActivate?
- for WinActive(Multiple Criteria) I can make an easy workaround
Code: Select all
WinActive_Multi(User_String*){
for index,param in User_String{
If !WinActive(param)
PopUp(param " Not Active") ; home-made funcs
Else
PopUp(param " Active")
}
Return Local_Result
}
cannot differentiate chrome/chrome incognito...by title