Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
activating windows with dynamic name
#2
example using notepad window that i change name to test abc black. Can change the middle part to any 3 letters lowercase and will activate it


Code:
Copy      Help
int w1=win("test [a-z]{3} black" "Notepad" "Notepad" 0x200) 
act w1

so if i had 2  notepad windows named "test xyz blue" and "test abc black" and the middle part of each changed would be like this  to activate them

 uses regular expression to find the windows
Code:
Copy      Help
int w1=win("test [a-z]{3} black" "Notepad" "Notepad" 0x200) 
act w1
1
int w2=win("test [a-z]{3} blue" "Notepad" "Notepad" 0x200) 
act w2
 the [a-z]{3}  means any 3 letters a-z lowercase


Messages In This Thread
RE: activating windows with dynamic name - by Kevin - 02-06-2019, 04:14 PM
RE: activating windows with dynamic name - by r0n - 02-11-2019, 05:07 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)