docs

Home All functions Categories

vuDisableOthers(NameContains, wDisable)

vuDisableOthers(*CSTRING,LONG), Signed

Description

Disables or enables all other windows that contain the specified text in their title, based on the value of wDisable.

Parameters

Parameter Data Type Description
NameContains CSTRING(256) Substring to search for in window titles (e.g., “Microsoft Word”). If blank, all windows will be affected.
wDisable LONG 1 = Disable matching windows
0 = Enable (re-enable) matching windows

Returns

The number of windows that were enabled or disabled.

Example

wDisable = 1
vuDisableOthers('Microsoft Word', wDisable)  ! Disables all running instances of Microsoft Word

wDisable = 0
vuDisableOthers('Microsoft Word', wDisable)  ! Re-enables all running instances of Microsoft Word

Notes

Home All functions Categories