running in background

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

  1. tvrman

    tvrman Member Licensed User

    Hi,

    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.

    cheers
     
  2. Cableguy

    Cableguy Expert Licensed User

    Hi,

    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

    Hello,

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

    FormLib.New1("Form1")
    FormLib.MinimizeBox=true

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

    Bye

    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 http://ae.inc.ru/aekmap.php
    The main features of this key remapper are:
    ....
    allows binding external applications to keys (available in ACTIVATED MODE ONLY);

    Alex
     
  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

    Björn
     
  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
    Formlib.New1("Form1")
    FormLib.TextAlignment("Label22",FormLib.alCenter)
    Hardware.New1
    reader.New1
    con.New1
    cmd.New1("",con.Value)
    con.Open("Data Source = " & AppPath & "\" & NomFCharg)
    Form1.Show
    FormLib.MinimizeBox=true
    end sub

    and like that it's ok for my device

    Bye
    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

    Hi,
    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,
    thanks.
    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

    Hi,
    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!
     
Loading...