Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


running in background


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-10-2007, 07:53 AM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default running in background

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
Reply With Quote
  #2 (permalink)  
Old 06-10-2007, 12:19 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

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
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 06-10-2007, 05:38 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 80
Default

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
Reply With Quote
  #4 (permalink)  
Old 06-10-2007, 06:30 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,313
Default

Nice Tip, thanks JJM, That what I was looking for...a splash screen and then go background...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
  #5 (permalink)  
Old 06-10-2007, 07:47 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Quote:
Originally Posted by JJM View Post
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
Yes, thanks
Reply With Quote
  #6 (permalink)  
Old 06-11-2007, 05:51 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

I test on my device and it don't work Could you please give me an example ? Thank you.
Reply With Quote
  #7 (permalink)  
Old 06-11-2007, 05:59 AM
Junior Member
 
Join Date: May 2007
Posts: 40
Default

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
Reply With Quote
  #8 (permalink)  
Old 06-11-2007, 04:02 PM
Senior Member
 
Join Date: Apr 2007
Location: Copenhagen
Posts: 141
Default

Dear All,

Isn't the problem not whether the program runs in the background but whether you can intercept all input ? 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
Reply With Quote
  #9 (permalink)  
Old 06-11-2007, 04:14 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You can only intercept the five hardware buttons when the application is minimized (using the Hardware library).
Reply With Quote
  #10 (permalink)  
Old 06-12-2007, 08:34 PM
JJM JJM is offline
Knows the basics
 
Join Date: Apr 2007
Location: France
Posts: 80
Default

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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Background Task RandomCoder Questions & Help Needed 11 07-01-2008 01:06 PM
Background Color im4retro Basic4ppc Wishlist 1 05-27-2008 06:11 PM
Background Color im4retro Questions & Help Needed 2 05-27-2008 04:55 PM
Can I do programs in background colin9876 Questions & Help Needed 1 12-18-2007 08:33 AM
Background running application eddy_ys Questions & Help Needed 5 09-27-2007 09:29 AM


All times are GMT. The time now is 11:16 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0