Jump to content

Recommended Posts

Posted

Hey people!

I hope that somebody can help me? First of all sorry for mistakes in language!

The situation:

I have x windows, let's say 10, all 10 windows have the same title "thatsthetitel".

I need to switch between them, and I have to know which of the windows I handle exactly with.

So I renamed them with winsettitle like "window1", "window2", and so on. Now I can activate them by title.

The problem:

If I click on a button in one of these windows, all 10 titles change to "thatsthetitel", so I can't differ them anymore...

background: the problem is the software, it's not an error in the software, it's "normal". But I have to differentiate the windows....

Question:

What can I do to be able to differentiate the windows?

I need a solution, there I can then activate the windows each one by.... yeah, by something in which they differ then ^^

Enviroment: winxp, and the programm must run in vmware. So no keystrokes like ALT+TAB for switching the windows is possible... (or does somebody know, how i can send keystrokes with sendkey or something else in vmware? but thats not sooo important)

I hope you understand what I mean?!

Big Thanks in advance!

Beat

Posted

Thanks for your answer!

But the handleIDs are all the same :) I think that is because of the windows have at the beginning all the exactly same contents.

Any other tips?

Posted (edited)

not so...

Run("notepad.exe")
WinWaitActive("")
$win1 = WinGetHandle("")

Run("notepad.exe")
WinWaitActive("")
$win2 = WinGetHandle("")

MsgBox(0,$win1, $win2)

8)

EDIT...

Larry got there first

Edited by Valuater

NEWHeader1.png

Posted

thank you all for your support! my msgbox in a quick written program printed always the same, I think it had an error. :)

Works very fine with these handles!!

Big thanks to you larry and volleyman and valuater!!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...