Hardware Lib related issues

Discussion in 'Questions (Windows Mobile)' started by Cableguy, May 30, 2007.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi,

    Following some interesting issues brougth up in the "hardware lib updated" tread, decided to start this one..

    1- Runappattime
    Is it possible to, after creating more than one runappattime registered notification, to remove one especific notification?
    If yes then how?

    2- Catching hardware keys
    How to catch the keyboard keys?
    (Anyone up to creating a Lib with keypress event?)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1- Using the evNone event you can remove the registration of a specific application.
    2- Catching the hardware keys is done using the Hardware library.
     
  3. Cableguy

    Cableguy Expert Licensed User

    I ment the Keybord Keys, as I understand only the cursor, enter and 4 buttons are detected by the hardware lib!?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Do you mean an external keyboard?
    You can use a TextBox to catch the "regular" keys.
     
  5. Cableguy

    Cableguy Expert Licensed User

    My device a qtek900 as a "full" qwerty kb and some combinations execute specific program and have a direct key for iexplorer and such...Would it be possible to allow similar behavior in b4ppc apps, the shotcut key I mean!
    like shift+f ->open the file menu...
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Maybe in the next version...
     
  7. sahoopes

    sahoopes Member Licensed User

    evNone only applies to the RunAtEvent. Will it still remove notifications for RunAppAtTime entries?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    You can pass 0 as the time argument to remove a notification added with RunAppAtTime.
     
  9. Elrick

    Elrick Member Licensed User

    And third issue: i have the main window and the menu with the submenu in my program. Catching hardware keys work properly but it work also when i navigating in the menu with these keys... Is it possible to deactivate catching when the menu is opened?
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Currently it is not possible.
     
  11. sahoopes

    sahoopes Member Licensed User

    hdwr.RunAppAtTime(AppPath & "\app.exe",0)

    Error description: Cannot set notification handler.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    I've checked it with the following code and it works fine:
    Code:
    Sub App_Start
        Form1.Show
        hw.New1
    End Sub

    Sub Button1_Click
        hw.RunAppAtTime(
    "1.exe",TimeAdd(Now,1,0,0))
    End Sub

    Sub Button2_Click
        hw.RunAppAtTime(
    "1.exe",0)
    End Sub
    CheckNotifications is a nice tool that lists all the notifications: http://www.scarybearsoftware.com/product_detail.php?productname=checknotify

    Make sure to refresh the list when you check for changes.
     
Loading...