Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse click trapping
Message
De
22/12/2000 14:05:54
 
 
À
21/12/2000 13:25:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00455670
Message ID:
00456423
Vues:
24
>Sure it does, that's what the "M" as a parameter does. It returns a 151 when the mouse is clicked. Just what is it you're trying to accomplish?

This is a snippet of the Timer event of the oTimer object that is checking for inactivity.
* check if idle time shutdown is enabled...
if this.bIdleTimeShutDown
  * process if enabled
  if this.iOldKeyValue =lastkey() && I need to check mouse-clicks here as well
    if abs(val(sys(2)) -this.iIdleTimeStart) >this.iIdleTimeAllowed
      this.ShutMeDown('due to timeout')
    endif
  else
    this.iOldKeyValue =lastkey()
    this.iIdleTimeStart = val(sys(2))
  endif
endif
This code will work if the user press any key but will not process mouse-clicks. Putting the INKEY(.01,"MH") function does not really returns 151 unless the user 'happens' to click the mouse at .01 of the same second the timer event executes.

To repeat, I need a way to capture a mouse-click from my oTimer object when the user is just clicking on menus, form buttons, etc. The oTimer runs in the same level as our oApplication object.

Ramil 12/22
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform