Wrong DesktopWidth ()/DesktopHeight () returns

Just starting out? Need help? Post your questions and find answers here.
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

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

Post 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
:mrgreen:
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

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

Post 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?
Last edited by es_91 on Thu Oct 23, 2014 6:13 am, edited 1 time in total.
:mrgreen:
User avatar
Demivec
Addict
Addict
Posts: 4270
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

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

Post by Demivec »

Use:

Code: Select all

desktopCount = ExamineDesktops()

For x = 0 To desktopCount - 1
  
  Debug Str(x) + DesktopName(x)
  
Next
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

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

Post 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
:?:
:mrgreen:
Post Reply