AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

API Tastaturhooks Problem

Ein Thema von DarkLord0 · begonnen am 31. Okt 2004 · letzter Beitrag vom 7. Nov 2004
Antwort Antwort
Seite 2 von 2     12   
DarkLord0

Registriert seit: 31. Okt 2004
59 Beiträge
 
#11

Re: API Tastaturhooks Problem

  Alt 7. Nov 2004, 01:05
ich hab das mal mit der MadCodeHook-Lib getestet. Es schien auch erst ganz gut zu funktionieren. nur gibt es das problem dass manchmal programmfehler auftreten, die daher kommen dass windows irgendwie die nachricht falsch überbringt...
im manual steht dazu
"
CAUTION: When using the default parameters each IPC message is handled by a seperate thread, as a result your handler will be called in the context of a different thread each time. This is has some advantages and some disadvantages. One problem is that when using multiple threads Windows' time scheduler will do whatever it likes. This may result in that the order of the incoming messages is slightly different to how they were sent. If that is a problem for you, please use "CreateIpcQueueEx" and specifiy a maximum thread count of "1". This will make sure that the order of the messages stays the same.
"
wenn ich allerdings den Thread Count auf 1 setze, habe ich wieder das problem was ich vorher mit postmessage hatte nämlich dass der zu lange braucht bis die nachricht ankommt womit ich mich im kreis drehe
außerdem kann man nur 1 oder unendlich als thread count verwenden
  Mit Zitat antworten Zitat
Benutzerbild von c113plpbr
c113plpbr

Registriert seit: 18. Nov 2003
Ort: localhost
674 Beiträge
 
Delphi 2005 Professional
 
#12

Re: API Tastaturhooks Problem

  Alt 7. Nov 2004, 07:29
Hmm ... zuviel werden sollte es natürlich trotzdem nicht ... generell hat madshi sich zu diesem thema meines wissens nach schon öfter in seinem forum geäußert, wie z.B. hier
Vielleicht geht das ja doch irgendwie mit MMF ... nur frag mich nicht wie ...

ciao, Philipp
Philipp
There is never enough time to do all the nothing you want.
*HABENWILL*
  Mit Zitat antworten Zitat
DarkLord0

Registriert seit: 31. Okt 2004
59 Beiträge
 
#13

Re: API Tastaturhooks Problem

  Alt 7. Nov 2004, 13:21
naja, soviele sind das nicht...
jedesmal wenn eine taste gedrückt wird, allerdings nicht mehr als 10/sekunde

edit: ich hab es jetzt mehr oder weniger hingekriegt dass der falsche msg fehler keine auswirkungen mehr hat. allerdings liefert das programm jetzt häufig "Unhandled Exceptions"
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:13 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz