Christian Schmitz <[EMAIL PROTECTED]> wrote:

> Andreas Bernhardt <[EMAIL PROTECTED]> wrote:
> 
> > getCurrentScreen gibt zurück, auf welchem Bildschirm der Pixel ist.

Function getCurrentScreen(x as integer, y as integer) As integer
   dim i,c as integer
   dim sc as Screen
  
   c=screencount-1
   for i=0 to c
      sc=Screen(i)
      
      if x>=sc.left and x<=sc.left+sc.width then
         if y>=sc.top and y<=sc.top+sc.height then
            return i
         end if
      end if
   next
   
   Return -1 // no screen
End Function

sorry, hatte Fehler.

Gruß
Christian

-- 
Around eleven thousand functions in one REALbasic plug-in. 
The Monkeybread Software Realbasic Plugin v6.2.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>

Antwort per Email an