Negative1 Posted March 27, 2009 Share Posted March 27, 2009 opt("wintitlematchmode",3) If WinExists("SAP") = 1 then ;;;;;;;;;;need exact title match opt 3 here. ElseIf WinExists("[CLASS:SAP_FRONTEND_SESSION]")=1 and winexists( "SAP Easy Access" ) = 0 then ;;;;;;;;need default match opt 1 here endif Probably something simple but I cant figure it out. What are we going to do tonight Brain?Same thing we do every night Pinky try to automate the world. Link to comment Share on other sites More sharing options...
BrettF Posted March 27, 2009 Share Posted March 27, 2009 Like this? Opt("WinTitleMatchMode", 3) If WinExists ("SAP") Then MsgBox (0, "", "Exact Title Match!") ElseIf WinExists("[CLASS:SAP_FRONTEND_SESSION]") AND (WinExists( "SAP Easy Access" ) = 0) Then Opt ("WinTitleMatchMode", 1) MsgBox (0, "", "Default") Else MsgBox (0, "", "HMMM!") EndIf Note that Opt returns the PREVIOUS value of the option, so thats useful in functions etc. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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