Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding a Dynamic Window Handle
#1
Hello Friends,

I have come upon a pretty perplexing problem that I can seem to solve myself with the help file. Basically, I am working with a custom illustration software for running quote for an insurance carrier. The problem I am having is that every time the illustration software is open it generates a new window handle. Some of the window handle stays the same and I have tried using wildcard and Rx but can't seem to get the win() function to recognize the window no matter what I have tried. Below is two example of code I get when I try to capture the window's information.

Example 1
Code:
Copy      Help
int w=win("JH LTC Illustrator" "HwndWrapper[LTC Illustrator.exe;;690ca6b4-28f9-470a-885d-4252b39adce8]")

Example 2 (After I close and reopen the illustration software)
Code:
Copy      Help
int w=win("JH LTC Illustrator" "HwndWrapper[LTC Illustrator.exe;;96a423d2-ba3a-44f2-962a-2a9eb6e1c97f]")

If these numbers and letters change every time I generate run time "window not found" errors. I would appreciate any help that you all can give me with this problem.

Thanks in Advance!

Paul Daugs


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)