running in background

Discussion in 'Questions (Windows Mobile)' started by tvrman, Jun 10, 2007.

  1. tvrman

    tvrman Member Licensed User


    Is it possible to run an application in the background at all time?.

    For example to create a program switcher, or to make some fast
    key's for startup some applications.

    I want to create a tool which is running all the time, when i select
    for example ctrl+L it will start Listpro.
    I have an Ameo device with keyboard, it should be startup faster
    some applications which i daily use, like the explorer , email , listpro e.t.
    The build in task switcher is poor and you need press serveral key's before
    you get what you want.

  2. Cableguy

    Cableguy Expert Licensed User


    In v4 we couldn't do it, any program would be terminated if by the end of App_star sub there was no form showed...Since it is not explicit that in v5 we do can, one must assume we still can't....I'm too looking foward for the ability to run in background possibility
  3. JJM

    JJM Active Member Licensed User


    If you use Formlib.dll, you have a possiblity to put you program in background:


    and you click on th cross at the right hand side top of the screen the program go in background.


    JJ M
  4. Cableguy

    Cableguy Expert Licensed User

    Nice Tip, thanks JJM, That what I was looking for...a splash screen and then go background...
  5. tvrman

    tvrman Member Licensed User

    Yes, thanks :sign0188:
  6. conf

    conf Member

    I test on my device and it don't work :( Could you please give me an example ? Thank you.
  7. Alex812

    Alex812 Member Licensed User

    Check AE Keyboard Mapper
    The main features of this key remapper are:
    allows binding external applications to keys (available in ACTIVATED MODE ONLY);

  8. BjornF

    BjornF Active Member Licensed User

    Dear All,

    Isn't the problem not whether the program runs in the background but whether you can intercept all input ? :confused: I usually have several programs running in the background but don't allow them to intercept e.g. the keystrokes.

    You might acheive this if the program always runs in the foreground but with the form minimised, i.e. every time you change program you need to make sure that your keystrokes "pass through" the basic4ppc program and send it to the active window.

    just my 2 eurocents

  9. Erel

    Erel Administrator Staff Member Licensed User

    You can only intercept the five hardware buttons when the application is minimized (using the Hardware library).
  10. JJM

    JJM Active Member Licensed User

    Hello Conf,

    Sometimes effectively the command doesn't work because it must be the last one in the Sub App_Start

    Sub App_Sart
    con.Open("Data Source = " & AppPath & "\" & NomFCharg)
    end sub

    and like that it's ok for my device

    JJ M
  11. Erel

    Erel Administrator Staff Member Licensed User

    The minimizebox must be set after the Show method.
  12. Rioven

    Rioven Active Member Licensed User

    I can't run my application on backgroud or minimized state unlike other installed applications.

    I've tried to use minimize from formlib.dll and it shows '-' button that works fine on desktop but not on my O2 WM6 device. The 'smart minimize' button seems behaves differently. The 'OK' button just flashes then the 'X' overrides the display, not sure whether the 'X' is still the 'smart minimize' button or belongs to my application's form, because when it tapped, my B4PPC applications closes.

    Any solutions?
  13. Cableguy

    Cableguy Expert Licensed User

    Do you have any "appClose" software installed in your ppc?
    In WM6 I think this is OS standart.....This would cause the app to terminate instead of minimize..
  14. Rioven

    Rioven Active Member Licensed User

    Hi cableguy,
    I have the HTC software installed and it is integrated on 'TODAYs' form only. With this, you can only close manually those running applications on background. O2 provided this software for free. My problem at the moment is...ALL softwares installed when the X pressed it will just minimized except my B4PPC program which terminates when X is pressed.:sign0085:
  15. Cableguy

    Cableguy Expert Licensed User

    Have you tryed the on_close sub?

    I don't remember exctly, but I believe it fires when the user tryies to end(close) the app...

    Then you can cancel the close procedure and minimize the form...I think...
  16. Rioven

    Rioven Active Member Licensed User

    I've found out that without TEXT (for title bar) assigned on the Main Form, the OS can't invoke smart minimize button features:confused:
    Now it works!...:)
    Thank you!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice