tim167 Posted December 28, 2005 Share Posted December 28, 2005 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 More sharing options...
tim167 Posted December 28, 2005 Author Share Posted December 28, 2005 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 More sharing options...
Developers Jos Posted December 28, 2005 Developers Share Posted December 28, 2005 Shouldn't this: Auto.WinWait('', 'Kladblok') be : Auto.WinWait('Kladblok','') ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts