English
Source / code snippets

Double click check mouse

 
- Page 1 -



Georg
Hovenbitzer
Hello together,

its ir Yes Real embarrassing this To ask but I come not behind.

i want check if one a Double click, be it left or right, on one deaktiviertes Editfeld power and this on one Mainwindow what with Window Style 8 + 16 + 512 + 1024 prepares watts.

can me there someone help ?
 
Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a)
05/19/06  
 



 
- Page 1 -


with the EasyVENT.dll and Include kannste too dead easy a Mausdoppelclick check
[...] 
 
06/01/06  
 




Frank
Abbing
the goes without Dll plenty leichter...
circa Doppelklicks To receive must solely the CS_DBLCLKS Class-Style staid go. so as in the API-Help indeed standing.
CompileMarkSeparation
 
06/01/06  
 




Sven
Bader
so goes it, thanks

my previous Variante:
CompileMarkSeparation
Def Key(1) !User32,GetAsyncKeyState
Def windowfrompoint(2) !USER32,WindowFromPoint
Def GetCursorPos(1) !USER32,GetCursorPos
cls
usermessages 16
Declare dbl&, dbl%,mousepos#,oldx%,oldy%
dim mousepos#,8

PROC Doppelklick

    Parameters handle&

    if (abs(key(1)>1) ) & (dbl% = 0) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)

        dbl& = &gettickcount+400 Doppelklickzeit
        dbl% = 1
        oldx% = long(mousepos#,0)
        oldy% = long(mousepos#,4)

    elseif (abs(key(1)<2)) & (dbl% = 1)  & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)

        dbl% = 2
        case (&gettickcount > dbl&) : dbl% = 0

    elseif (abs(key(1)>1)) & (dbl% = 2)  & (&gettickcount < dbl&) & (windowfrompoint(long(mousepos#,0),long(mousepos#,4)) = handle&)

        if ((abs(oldx% - long(mousepos#,0))<5) & (abs(oldy% - long(mousepos#,4))<5)) Maus maximal 5 Pixel verschoben

            dbl% = 3

        else

            dbl% = 0

        endif

    elseif ((abs(key(1)>1)) & (dbl% = 2)) | (dbl% = 3)

        dbl% = 0

    endif

    return if(dbl% = 3,1,0)

EndProc

whilenot (%umessage = 16)

    waitinput
    sleep 50
    getcursorpos(mousepos#)
    case Doppelklick(%hwnd) : print Doppelklick

endwhile

dispose mousepos#
 
06/02/06  
 




Frank
Abbing
there would I The API-Variante absolutely vorziehen, because the User The Double click-Time Yes take on can.
 
06/02/06  
 



 
- Page 2 -



Sven
Bader
if need be can I the indeed yet from the Registry read think but, that one fixer worth not further tragic is.
I have it incidentally still not geschafft, The API Variante in a list box to that walk To get... have The %hwnd by the Listbox-lever swapped - reicht not?
 
06/02/06  
 



Sven Bader

I have it incidentally still not geschafft, The API Variante in a list box to that walk To get... have The %hwnd by the Listbox-lever swapped - reicht not?


if You still with the the EasyVENt.dll testing want, so goes it free from problems
CompileMarkSeparation
 
06/02/06  
 




Pedro
Santos
Hello Tomas

EasyVENt find I well still by me functions the supra stehenden code not correctly., I have joining no control More over the computer, I need nothing anzuclicken it reacted already if The mouse moving and is can Yes think what kind of chaos becomes, it helps only whom computer auszuschalten and again on.

I have XP Home SP2 and the actually XProfan 10 Version, with XProfan9 have it not yet tested

greeting

Pedro
 
Windows XP Home
Xprofan 10
06/03/06  
 



Hello Pedro,

can whom Error unfortunately not understand, XProfan 10, XP per Sp2

Perhaps haste a others Fensterstil chosen, otherwise time FastMode 1 settle, can his, the defined Events, which from the DLL used go, otherwise not get by.
 
06/04/06  
 




Sven
Bader
i think, I stay with of my handprogrammierten method. That the Doppelklickzeit seh I do not so tight... in the Contrast To getfocus for Buttonklicks is the one Pfusch, the niemandem strike becomes. is only somehow comic, that a such banale thing To difficulty lead - one would like it even still somehow correctly and elegant solve.
 
06/04/06  
 




correctly and elegant solve


it functions integrally inspired in the Fastmode with eigener wProc, How I already in the first Posting wrote.

you have already right Sven, from this and ähnlichen Found flüchte I too often into Fastmode - in XProfan should this a Solution since.

one could a bow report with Doppelklickabfrage without Fastmode unbefriedigend.
 
06/04/06  
 




Frank
Abbing
Hello Sven.


I have it incidentally still not geschafft, The API Variante in a list box to that walk To get... have The %hwnd by the Listbox-lever swapped - reicht not?


No. The User Messages functions naturally only Mainwindow.
so it in a Control functions, must You the control subclassen. have for you an example in XPIA prepared. so You with the code what begin can, Have ichs as Enhanced Profancode posted.
you standing now a new function SC_Init(n) available, The as Parameter whom lever the To subclassenden Controls desires. Habs so laid out, that You up to 35 Controls at a single blow subclassen can, the ought to for beginning wealthy. take off Controls the are, ought to alike his. as new User Messages have I $1500 (left), $1501 (right) and $1502 (middle) laid out. Probiers hold from.
CompileMarkSeparation
DECLARE XPIA_#,XPIA$,EXPIA&,SCDLL&,X&,Y&,Z&,TEXT$,LISTBOX&
DIM XPIA_#,2048
CLEAR XPIA_#
LONG XPIA_#,0=9460301,3,4,65535,184,0,64,0,0,0,0,0,0,0,0,176,247078670,-855002112,1275181089,1750344141,1881174889,1919381362,1663069537,1869508193,1700929652,1853190688,544106784,542330692,1701080941,168627502,36,0,-1797187717
LONG XPIA_#,132=-946899393,-946899393,-946899393,-945989949,-946899394,-946050639,-946899410,1751345490,-946899393,0,0,17744,131404,1149538661,0,0,554565856,201654539,1024,512,0,4328,4096,8192,268435456,4096,512,4,0,4,0,12288
LONG XPIA_#,260=512,0,2,1048576,4096,1048576,4096,0,16,4960,80,4788,40,0,0,0,0,0,0,8192,64,0,0,0,0,0,0,0,0,0,0,0,0,4096,24,0,0,0,0,0,0,1297301837,12851,944,4096,1024,512,0,0,0,-536870880,1818587694,25455,78,8192,512,1536,0,0
LONG XPIA_#,496=0,1107296320,0,0,4896,4882,4870,4852,4912,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,-1,-1192457387,1,836297,-1477963926,-16777215,93259893,268439576
LONG XPIA_#,772=-1895008769,1055749,276168464,270534031,1979650048,604344084,-15728624,93263989,268439592,-1893960193,1059845,544603920,271582607,1979650048,872779556,-15728624,93268085,268439608,-1892911617,1063941,813039376
LONG XPIA_#,856=272631183,1979650048,1141215028,-15728624,93272181,268439624,-1891863041,1068037,1081474832,273679759,1438846976,361622667,268439640,-125631861,-1752952833,-2097152000,292815096,1161495179,-1962248952,1419969602
LONG XPIA_#,936=-351272944,79856389,2105793259,309658124,273954303,-60157952,-402098689,230,2105631979,131852,-15108864,-1041758091,1342177280,1745384959,5376,12511312,1122697216,101481857,1962934274,141950745,40936,1979666432
LONG XPIA_#,1024=352413704,-397410304,156,2105614571,133388,-15239936,2112358517,1342177280,1745384959,5378,8054864,1979645952,276168468,-15960577,905906293,268439636,20968,281200896,-326413056,-939735933,130117,-1712848896,-1912602626
LONG XPIA_#,1116=1071125,-2096985328,712310776,1962997891,270049568,42536960,293824594,-60157952,270022143,669519872,1509949440,-352042359,79856389,-1026961429,637468676,268439564,268969471,637472768,268439556,268445183,637472768
LONG XPIA_#,1200=268439568,4828,0,0,4930,4096,0,0,0,0,0,4896,4882,4870,4852,4912,0,1631780883,1767337068,2003788910,1668248144,19136577,1349805383,1852142177,19988596,1400137031,1866691449,7499628,1699938786,1699570798,1734439795
LONG XPIA_#,1324=16741,1699938845,1852397428,1282895716,1097297519,1937047552,842232421,1819042862,1684471808,775041897,7105636,0,0,0,1149538661,0,5010,1,1,1,5000,5004,5008,4681,5032,1147076608,1701867631,1768713068,1601399651
LONG XPIA_#,1440=778595941,7105636,1230979923,7629166,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4096,64,822685952,823865618,825045284,826224950,827404616,828584282,829763948,831009150,834285991,844968508,846606958,848835198,849621662
LONG XPIA_#,1596=850408106,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
LONG XPIA_#,1996=0,0,0,0,0,0,0,0,0,0,0,0,0
XPIA$=$TEMPDIR+/_Doppelklicks_enh.dll
FILEMODE 1
ASSIGN #1,XPIA$
OPENRW #1
BLOCKWRITE #1,XPIA_#,0,2048
CLOSERW #1
DISPOSE XPIA_#
Profanprogramm
DEF SC_INIT(1) !XPIA$,SC_Init
SCDLL&=USEDLL(XPIA$)
CLS
LISTBOX&=CREATE(LISTBOX,%HWND,LISTBOX,16,320,400,80)
SC_INIT(LISTBOX&)
USERMESSAGES $1500,$1501,$1502

WHILE 1

    WAITINPUT

    IF %KEY=2

        BREAK

    ENDIF

    IF %UMESSAGE=$1500

        PRINT Linker Doppelklick.

    ELSEIF %UMESSAGE=$1501

        PRINT Rechter Doppelklick.

    ELSEIF %UMESSAGE=$1502

        PRINT Mittlerer Doppelklick.

    ENDIF

ENDWHILE

FREEDLL SCDLL&
ef='./../../references-fonction/XProfan/end/'>END
 
06/05/06  
 




Frank
Abbing
Gehts not?
 
06/07/06  
 




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

21.230 Views

Untitledvor 0 min.
Gast.081509/06/24
Walter03/07/23
H.Brill02/03/22
RudiB.05/09/21
More...

Themeninformationen



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