noframes
The xwin_...() functions

This document is not finished, I must add the format of the lists returned

These were added by me in C to the interpreter.

Most of them deal with the handling of windows, and are based on Xlib.

They need a "WindowID".
You can get such an ID of an existing window, by clicking it after running the command "xwininfo" or "xprop".
wxBasicScript also allows to get a list of the IDs of all windows/icons.

All values are returned in a LIST.

So you use it like
mylist = xwin_getworkspace()
activedesk = mylist[0]
mylist = {}

You really should destroy each list by defining it from new with mylist = {} to save memory.

Attention: IDs are returned without the leading "0x", so you have to make somthing like myID = "0x" & mylist[0]


xwin_usleep( microseconds );
id = xwin_createsimplewindow();
xwin_listwindows();
xwin_listicons();
xwin_listiconsofworkspace( workspace );
xwin_listiconids();
xwin_listiconidsofworkspace( workspace );
xwin_activate( ID );
xwin_iconify( ID );
xwin_toggle_fullscreen( ID );
xwin_move( ID , x , y );
xwin_resize( ID , width , height );
xwin_info( ID );
xwin_classinfo( ID );
xwin_select();
xwin_select_1();
xwin_multiselect();
xwin_screensize();
myamount = xwin_getworkspaces();
mynumber = xwin_getworkspace();
xwin_setworkspace( workspace );
xwin_movetoworkspace(( workspace );
xwin_notitlenoborder( ID );
xwin_hastitleandborder( ID );
xwin_titleandborder( ID );
xwin_setlayer( ID );
xwin_setwmstruts( ID );
returncode = xwin_exec( shellcommand );