t, info = GetPubScreens()
Starting with Hollywood 5.3 this function will return a second table containing information about the screen dimensions and color depth. This second return table will contain as many elements as the first return table and there will be one subtable for each public screen that is currently open. Each subtable will contain the following fields:
Width:
Height:
Depth:
You can use ShowScreen() to switch to a public screen. If you want to move your display to a specific public screen, use SetDisplayAttributes().
Note that in a multitasking environment like AmigaOS, all screens that aren't owned by your application can disappear at any time so you need to be prepared that this function returns screens that don't exist any longer because they have been closed already.
t = GetPubScreens() For Local k = 0 To ListItems(t) - 1 Do DebugPrint(t[k])This code lists all public screens.