Jump to content

WinWait can not find Notepad (Kladblok) window


tim167
 Share

Recommended Posts

:P

I have set

AutoItSetOption('WinTitleMatchMode', 2)

to match a substring in the window title

then I try do look for an open Kladblok (=Notepad) window using:

AutoItSetOption('WinTitleMatchMode', 2)

Auto.WinWait('Kladblok')

I also tried :

Auto.WinWaitActive('Kladblok')

Auto.WinWait('', 'Kladblok')

Auto.WinWait('', 'Kladblok')

but it always fails...

the actual title of the window is something like :

'outF5.tmp - Kladblok'

where 'out' and '.tmp - Kladblok' are constant, the 'F5' can vary every time.

btw:

I'm controlling AutoitX3 from python via win32com.client.

How can I effectively capture this beast?

thanks!

Tim

Link to comment
Share on other sites

i also tried window matching mode 4 and using 'classname=Notepad'

no luck either...

here's the what the Autoit info window says about the Kladblok window:

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: outE4.tmp - Kladblok

Class: Notepad

Size: X: 16 Y: 23 W: 828 H: 349

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 251 Y: 230

Cursor ID: 5

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xFFFFFF Dec: 16777215

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 0 W: 820 H: 301

Control ID: 15

ClassNameNN: Edit1

Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

(1):

(2): Ln 1, Col 14

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

*** ready ***

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Need help!!

Thanks,

tim

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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