Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamic Window Name in Winforms App
#3
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi Chris,

First get the Window title

Code:
strTitle=SwfWindow("Dynamic name of window").GetROProperty("regexpwndtitle")

Now that u have the title, u can get the dynamic value which is changing each time. Split it. and store it in Some variable

strNewTitle=<NonDynamicPartOfName>&<Dynamic value which is changing>

'set the window title
Code:
SwfWindow("Dynamic name of window").SetTOProperty "regexpwndtitle",strNewTitle

now u can use your code.

Do let me know if it does not work.

Regards,
Ankesh
Reply


Messages In This Thread
RE: Dynamic Window Name in Winforms App - by Ankesh - 11-04-2011, 12:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT unable to identify Java app objects consistently lester 1 1,802 07-12-2018, 08:28 PM
Last Post: Ankur
  How to automate android app Naresh 2 2,811 06-11-2015, 06:37 PM
Last Post: venkatesh9032
  UFT12-- not able to open sample app poulomi21b 2 4,075 06-25-2014, 08:26 AM
Last Post: poulomi21b
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,451 06-05-2014, 08:18 PM
Last Post: sbkhbk
  QTP is not recording the first step of opening Flight reservation app srinanduri 2 2,981 08-06-2013, 09:59 PM
Last Post: srinanduri

Forum Jump:


Users browsing this thread: 1 Guest(s)