Andy2520 Posted January 23, 2014 Share Posted January 23, 2014 (edited) Dear Team, I need small help, we have to wait to wait till partial title window appear then process for the next . i have used Opt('WinTitleMatchMode', 2) but no luck .. Please help me Find the below code : if any one has any optimize code please suggest the same sleep(4000) Opt('WinTitleMatchMode', 2) Global $Win = 'Design - IBM Notes', $GetTitle $GetTitle = WinGetTitle($Win) If WinWaitActive($Win) Then WinClose($Win) MsgBox(64, 'Info',"Window created") else MsgBox(64, 'Info',"Window not created") EndIf Sleep(10) Edited January 23, 2014 by Aniiii Link to comment Share on other sites More sharing options...
l3ill Posted January 23, 2014 Share Posted January 23, 2014 Try this (untested): sleep(4000) Opt('WinTitleMatchMode', 2) $winGetTitle = WinGetTitle('Design - IBM Notes') ; this title also may need some tweaking WinWaitActive($winGetTitle) ; this may cause problems | replace with a sleep() If WinExists($winGetTitle) Then WinClose($winGetTitle) MsgBox(64, 'Info',"Window created") else MsgBox(64, 'Info',"Window not created") EndIf Sleep(10) Bill My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now