I found a code example in the Gambas Book (gambas-buch.de) chapter 15.4 which does exactly what I want.
Code: Select all
Public Sub Button1_Click()
Dim dtWindow As DesktopWindow
Desktop.Windows.Refresh()
For Each dtWindow In Desktop.Windows
If dtWindow.SkipTaskbar = False Then
Print "Window.Name = \"" & dtWindow.Name & "\" , X = " & dtWindow.X & " , Y = " & dtWindow.Y
Endif
Next
End
I have included gb.desktop and gb.desktop.x11.
Gambas version is 3.16.3 on Linux mint 20.1 Cinnamon.
Obviously I'm doing something wrong or missing some important stuff but what?
Ps Will be a measuring microscope when finished