Page 1 of 2

Re: [Bug] Wrong DesktopWidth/DesktopHeight() returns in VMwa

Posted: Wed Oct 22, 2014 2:45 pm
by es_91
I found the mistake. :)

My PC has two desktops:

Code: Select all

Debug ExamineDesktops ()
PB Debugger wrote:2
The #Null desktop was not the visible one. I do not know why my PC has two desktops, it must have something to do with the fact that it's a controlled network PC, propably a MasterEye problem or whatever. Because strangely the Display Settings show only one display/desktop (see below).

Code: Select all

Debug DesktopName (#Null)
PB Debugger wrote:\\.\DISPLAYV4
System Setting's desktop drop-down menu wrote:PLE481

Re: [Bug] Wrong DesktopWidth/DesktopHeight() returns in VMwa

Posted: Wed Oct 22, 2014 2:50 pm
by es_91
I still have a problem. :?

I can not find the right desktop on my PC. The correct desktop has no name. How can i make it automatically sure that i use the right desktop?

Re: [Bug] Wrong DesktopWidth/DesktopHeight() returns in VMwa

Posted: Wed Oct 22, 2014 3:15 pm
by Demivec
Use:

Code: Select all

desktopCount = ExamineDesktops()

For x = 0 To desktopCount - 1
  
  Debug Str(x) + DesktopName(x)
  
Next

Re: [Bug] Wrong DesktopWidth/DesktopHeight() returns in VMwa

Posted: Thu Oct 23, 2014 6:11 am
by es_91
I edited the above post to fit the new situation.

However, ...
Demivec wrote:

Code: Select all

desktopCount = ExamineDesktops()

For x = 0 To desktopCount - 1
 
  Debug Str(x) + DesktopName(x)
 
Next
... brings back not the correct desktop name.
PB Debugger wrote:0\\.\DISPLAYV4
1
Or is it normal that the second display has no name? In Display Settings the display has a name ("PLE481").

Also, i can not ask for the right desktop size.

Code: Select all

Debug ExamineDesktops ()

Debug DesktopWidth (1)
Debug DesktopHeight (1)
...gives out...
PB Debugger wrote:2
0
0
:?: