English
Experimente

Virtually-simultane edit more releases - old style; mouse-Interaction

 

p.specht

Virtually-simultane edit more releases (XProfan-11).
such a thing goes naturally today much better with Threads. but then ...
' Include-way adjust!
 $H C:\Users\user\XProfan\XProfan11\INCLUDE\windows.ph
Window 0,0-%maxx,%maxy
Cls
Def IsMouseSwapped(0) ~GetSystemMetrics(~SM_SWAPBUTTON)
'0 = Rechtmaus/1 = Linksmaus
windowtitle "Crazy Mouse - Version 1.0 beta"
' from whom sharing: IsMouseSwapped() of David Strutz,
' Mouse buttons sure inquire (w) of Frank Abbing,
' Mausrad high and down of Dieter Zornow
' CheckIfMousewheel/MiddleKey of Andreas Miethe velvet
' Franks improvement betr. Horizontal-Mausrad/Trackball,
' zusammengestellt and circa "Lebende Schleife", "Debounce"
' and "Sauberes Beenden"(TM) complement of P. woodpecker 2009-09
declare x%,y%,z%,LM%,FLT%,tm!,ti!,k&
k&=1000
Cls
User Messages $201,$204,$207,$202,$205,$208,$20A

if IsMouseSwapped()=0

    print "             right-hander-mouse, no Tastenvertauschung"

else

    print "             Linkshänder-mouse, Keys R-L-vertauscht"

endif

z%=0

If ~GetSystemMetrics(91)

    Inc z%
    Print "             Horizontales Mausrad vorhanden"

EndIf

If ~GetSystemMetrics(75)

    Inc z%
    Print "             Vertikales Mausrad vorhanden"

EndIf

Ifnot z%

    Print "             no Mausrad present."

EndIf

z%=~GetSystemMetrics(43)
print "             ";z%;" Keys on the mouse installiert"
flt%=2
SetTimer 1

While 1

    WaitInput

    if %key=2 OR %key=27:Break:endif

        If %UMESSAGE = $20A

            IF HIWORD(&UWPARAM)=120

                PRINT " wheel high   ":FLT%=2

            ELSE

                if flt% : flt%=abs(flt%)-1

                elseif flt%=0: PRINT " wheel down "

                endif

            ENDIF

        ENDIF

        If %umessage=$201

            ifnot LM%=1:Print " left pressed.   ":LM%=1:endif

            ElseIf %umessage=$204

                ifnot LM%=4:Print " right pressed.  ":LM%=4:endif

                ElseIf %umessage=$207

                    ifnot LM%=7:Print " middle pressed.   ":LM%=7:endif

                    ElseIf %umessage=$202

                        ifnot LM%=2:Print " left losgelassen.":LM%=2:endif

                        ElseIf %umessage=$205

                            ifnot LM%=5:Print " right losgelassen.":LM%=5:endif

                            ElseIf %umessage=$208

                                ifnot LM%=8:Print " middle losgelassen. ":LM%=8:endif

                                EndIf

                                ' Lebende Loop
                                x%=%Pos:y%=%csrlin' Merk you where you were
                                color 10,3:Locate 2,1:print x%,y%;" ";' and gib HIER short something from
                                color 14,1:Locate 1,1:print %mouseX;":";%mouseY;" "
                                color 15,3:Locate 1,61:print Date$(0),time$(0);".";left$(time$(1),2);
                                color 15,9:Locate 3,1:ti!=val(time$(1)):print ti!-tm!:tm!=ti!
                                color 0,15:Locate y%,x%' Restore, where You strain were
                                print "#";' arbitrary continues to run action
                                ' The self not too long lasts
                                case %csrlin>26:CLS

                            Endwhile

                            User Messages 0
                            KillTimer
                            End
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
06/05/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.063 Views

Untitledvor 0 min.
Ernst07/21/21
Wilfried Friebe06/24/21
Uwe Lang06/23/21
R.Schneider06/13/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (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