Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / set active window

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 30th Jun 2011 17:00
in matrix1 utils plugin there is 'set active window' command but i don't know how to use it, can someone help?
Max P
16
Years of Service
User Offline
Joined: 23rd Jan 2010
Location:
Posted: 30th Jun 2011 17:29
Quote: "SET ACTIVE WINDOW Window Handle

This command will set the specified window as the active window. The window will move to the foreground and gain the focus. "


If you need the window handle, you can use:
Quote: "Window Handle = FIRST WINDOW ( Window Title, Search Mode )

This first form of this function will search for all top-level windows, and will return the handle of the first.

The second form of this function will search for all windows with the name provided and return the handle of the first found.

The last form if this function allows the title to be searched in more flexible ways. The mode should be set to one of the following values:
- 0 = Full title match, case-sensitive
- 1 = Full title match, case-insensitive
- 2 = Partial title match, case-sensitive
- 3 = Partial title match, case-insensitive

Further window handles can be retrieved by continuing to call the NEXT WINDOW function.

If no windows are found then this function will return a value of 0."

Login to post a reply

Server time is: 2026-07-10 20:58:44
Your offset time is: 2026-07-10 20:58:44