Sign in to follow this  
Followers 0

How Do I Control This Program

3 posts in this topic

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



Share this post

Link to post
Share on other sites

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 4

Advanced 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:




    "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.

Share this post

Link to post
Share on other sites

Thanks - worked a treat.



Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0