DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Alessio Guest

    Handling Keystrokes


    Hi All!
    I've a problem : Into an application I'm developing, I need to check if a
    key (or a key set) is pressed and handle this event.
    Well : I can now capture the event "key_is_pressed", but I can't avoid the
    event this pression generates.
    For Example : If an user on W98 presses the keys CTRL+ALT+Canc I receive
    from my application an error status, and I show a dialog like "what do you
    do?". So, All seems ok but, after the Dialog has been shown, I can't avoid
    the visualization of the task-list window.
    How Can I do?

    N.B : that's only an example : the same problem was encountered while monitoring
    the status of ALT+F4 or CTRL+Esc etc.etc...

    Thanx All

    Alessio

  2. #2
    www.exontrol.com Guest

    Re: Handling Keystrokes


    You have to read about SetWindowsHookEx

    Mike
    www.exontrol.com
    "Alessio" <alessio_r@libero.it> wrote:
    >
    >Hi All!
    >I've a problem : Into an application I'm developing, I need to check if

    a
    >key (or a key set) is pressed and handle this event.
    >Well : I can now capture the event "key_is_pressed", but I can't avoid the
    >event this pression generates.
    >For Example : If an user on W98 presses the keys CTRL+ALT+Canc I receive
    >from my application an error status, and I show a dialog like "what do you
    >do?". So, All seems ok but, after the Dialog has been shown, I can't avoid
    >the visualization of the task-list window.
    >How Can I do?
    >
    >N.B : that's only an example : the same problem was encountered while monitoring
    >the status of ALT+F4 or CTRL+Esc etc.etc...
    >
    >Thanx All
    >
    >Alessio



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links