xircon Posted May 14, 2004 Share Posted May 14, 2004 Good Morning, I am trying to control a unix terminal emulator called dejawint. Window spy says >>>>>>>>>>>>( Window Title )<<<<<<<<<<<<< ( classname=DEJAWINT ) >>>>>>>>>>>( Mouse Position )<<<<<<<<<<<< On Desktop: x: 612 y: 159 In Window: x: 517 y: 109 >>>>>>>>>>>>>( Pixel Color Under Mouse)<<<<<<<<<<<<< Dec: 13160660 Hex: 0xC8D0D4 >>>>>>>>>>>( Window Position )<<<<<<<<<<< left: 95 top: 50 width: 728 height: 596 >>>>>>>>( Last Control Under Mouse )<<<<<<< >>>>>>>>>( Status Bar Text )<<<<<<<< >>>>>>>>>>>( Visible Window Text )<<<<<<<<< >>>>>>>>>>( Hidden Window Text )<<<<<<<<< (I am trying to maximise the window.) Tried WinSetState ( " ", "", @SW_MAXIMIZE ) doesn't work TIA Steve. Link to comment Share on other sites More sharing options...
scriptkitty Posted May 14, 2004 Share Posted May 14, 2004 You have a space in the window name. So it is looking for a window that the first character in the name is a space.If it really is a blank window, you might wish to rename that window right after opening it.also look into option 4 of Opt("WinTitleMatchMode", 4)Mode 4Advanced mode.In this mode special sequences are used in the title parameter so that window classnames and handles can be used. The text parameter remains the same.The special sequences must contain no whitespace. They are: "classname=CLASSNAME" "handle=HANDLE" "active" "last" or "" For example when in mode 4 and you want to identify a window that has the classname "MYCLASS1" then you would use "classname=MYCLASS1" for the title parameter. When using a handle you must use the return value of a WinGetHandle function (see function for an example)."active" matches the currently active window (same as "" in the default WinTitleMatchMode)."last" uses the last successful window match so you don't have to keep specifying the title and text again and again. e.g. AutoItSetOption("WinTitleMatchMode", 4) WinWaitActive("Untitled - Notepad") WinClose("last") ; Closes the previously matched notepad window Note: If "classname=", "handle=", "active", "last" or "" are not used as the title then the window matching takes place as in Mode 1 making this a good mode for general use.Hint hint( classname=DEJAWINT ) AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
xircon Posted May 17, 2004 Author Share Posted May 17, 2004 Thanks - worked a treat. Cheers Steve 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