Window handle adding a letter in front of handle number

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
BridgeScore
Newbie
Posts: 14
Joined: Sun Feb 26, 2006 3:55 pm
Location: Florida
Contact:

Window handle adding a letter in front of handle number

Post by BridgeScore » Sun Feb 26, 2006 4:21 pm

I am using the following code.

let>WIN_USEHANDLE=1
//let>GAW_TYPE=1
GetWindowHandle>s,mytitle
message>mytitle
l//et>GAW_TYPE=0
let>WIN_USEHANDLE=0

The title of the main form starts with "s" with a child form(don't need child number).
3343684 - TSMainForm "s"
When the child form is gone title changes to:
3343684 - TSMainForm "\ACBLSCOR\GAMEFILE\060215LG (A)"
It keeps the same handle so far this is good.

When I view the message>mytitle
it first flashes the handle shown above. Then it stays on but adds a letter "A" to the front of the handle in the message.

A3343684

When I try later to use the handle in:
let>WIN_USEHANDLE=1
waitwindowopen>mytitle
WaitReady>0
let>WIN_USEHANDLE=0

It waits for ever.

Can you tell me what is going on and how can I fix my problem?

Thanks.
___________________________________
Writing the program is easy
finishing the program is hard

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 27, 2006 8:49 am

Window handles are purely numeric. They don't have alphanumeric characters. So I have no idea where the A is coming from. It is not coming from Windows. I expect it's coming from somewhere else - try stepping through with the debugger and watchlist and find out where in the script the A is getting applied.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts