Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
activating windows with dynamic name
#4
this is what ya should need
matches any letter upper or lower case or combination of both 3 to 5 characters long
Code:
Copy      Help
,int w1=win("test [a-zA-Z]{3,5} black" "Notepad" "Notepad" 0x200) 
,act w1

here is a quick demo of it in action

Function RandomNotepadName
Code:
Copy      Help
run "$system$\notepad.exe" "" "" "" 0x800 win("" "Notepad") w
rep 10
,str mp
,mp.RandomString(3 5 "a-zA-Z")
,_s.format("test %s black" mp)
,_s.setwintext(w)
,0.3
,int w1=win("test [a-zA-Z]{3,5} black" "Notepad" "Notepad" 0x200) 
,act w1
,1
,act _hwndqm
,1


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

Forum Jump:


Users browsing this thread: 3 Guest(s)