English
Source / code snippets

Mausclick Zeitmessung

 

RudiB.
Zeitmessung by Click, or How long has my Click gedauert,or mach something as long as I The left Mouse button pressed stops......
....ooooder, one custom it none. again time a Spielerei...
Window 100,100-700,300
Window Title "Es becomes The Time measured , How long The left Mouse button pressed remaining..."
Declare zeit&,sek&,sekundaer_sek&,stop&,Edit&,Text$
edit&=create("Edit",%Hwnd,"",60,50,40,22)
Stop&=0
UseFont "Arial",30,0,1,0,0
CLS
Print "Für end Please Window close..."
locate 5,14
Print "Linke Mouse button at will pressed hold...."
Set("Decimals",2)
zeit&=&gettickcount

While 1'Endlosschleife!

    If %mousepressed=1

        inc stop&
        sek&=((&gettickcount-zeit&)/10)-sekundaer_sek&
        DrawText 100,150,"Linke Mouse button is straight gedrückt";-1

    Else

        sekundaer_sek&=((&gettickcount-zeit&)/10)
        DrawText 100,150,"                                                                ";-1

    EndIf

    If stop&=1

        locate 5,1
        Print "Click.."

    Else

        settext edit&,st$(sek&/100)

    Endif

    If (%mousepressed =0) And (sek&>0)

        DrawText 100,150,"                                                                       ";-1
        settext edit&,st$(sek&/100)
        locate 5,1
        Print "       "
        Text$="Linke Mouse button watts "+st$(sek&/100)+" sec long pressed ......    "
        DrawText 4,100,Text$;-1
        settext edit&,st$(sek&/100)

    EndIf

    If (%mousepressed =1) And (stop&=0)

        CLS
        Print "Für end Please Window close..."
        locate 5,14
        Print "Linke Mouse button at will pressed hold...."
        sek&=0
        stop&=0
        sekundaer_sek&=0
        zeit&=&gettickcount

    Endif

EndWhile

end
 
XProfan X4
Xprofan X4
Rudolf Beske / München

Hardware: NB Intel I9 - 16GByte RAM
05/25/21  
 




p.specht

functions well - and reminds me on the legendäre Program, the any Mausbewegungen aufaddierte, sodaß one on the Tagesende a Kilometerangabe receive has. for the bosses of CAD-Zeichnern one dream ...
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/26/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.959 Views

Untitledvor 0 min.
Sven Bader12/22/22
Georg Teles10/19/22
p.specht02/13/22
RudiB.11/18/21
More...

Themeninformationen

this Topic has 2 subscriber:

p.specht (1x)
RudiB. (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