English
Regulars table & Café

SetCapture.

 


Description:

SetCapture heading any Inputs the mouse a thread the angegebene Window circa. The detour becomes aufgehoben, if The API Capture Release called becomes, or one Window one others Threads whom Focus sustain.




Deklaration:

DEF @SetCapture(1) !USER32,SetCapture




Parameter:

1.Parameter: lever the Fensters, the The Mauseingaben detoured go should.



Return Value:

with success the lever the Fensters, the before The Mauseingaben detoured get. existing no solches Window, becomes 0 zurückgegeben. with one Error becomes 0 zurückgegeben.


Examples:

CompileMarkSeparation
DEF @SetCapture(1) !"USER32","SetCapture"
DEF @ReleaseCapture(0) !"USER32","ReleaseCapture"
DEF @GetCapture(0) !"USER32","GetCapture"
Windowstyle 31+512
Windowtitle "Maus in Fenster einfangen!"
Window 0,0-640,440
Declare Release&,Set&,Message&
LET SET&=@CreateButton(%HWND,"Mauseingabe einfangen",10,50,250,30)
LET Release&=@CreateButton(%HWND,"Maus freilassen",10,100,250,30)
LET Message&=@CreateButton(%HWND,"Message ausgeben",10,150,250,30)

Whilenot %MENUITEM=-2

    Drawtext 0,0,"Welches Fenster hat den Capture: "+@GetText$(@GetCapture())+@Space$(255)
    Waitinput

    IF @Getfocus(Set&)

        @SetCapture(Release&)

    ElseIF @Getfocus(Release&)

        @ReleaseCapture()
        @MessageBox("Maus wieder frei!","Release!",64)

    ElseIF @Getfocus(Message&)

        @MessageBox("Eingabe möglich","Test",64)

    endif

Wend


[keywords:207ae34fbd]
mouse Control Window Mauseingaben intercepting round up Messages redirecting Input Mausinput
[/keywords:207ae34fbd]
 
04/29/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.236 Views

Untitledvor 0 min.
AndreasS12/16/18

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie