Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Basic4ppc Wishlist > Announcements
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Announcements Announcements of new versions and new libraries.

Hardware library was updated

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 05-30-2007, 03:08 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

The Hardware lib only catch 5 hardware keys and cursor keys. But I use PPC Phone with number pad and I want to catch number keys. How can I do that? Please help, thank you.
Reply With Quote
  #12 (permalink)  
Old 05-30-2007, 03:40 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

Another problem:

I run the example of Hardware lib"

Code:
'Add a Hardware object named Hardware1
Sub Globals


End Sub


Sub App_Start
      Form1.show
      Hardware1.New1
      
msgbox("Device ID: " & Hardware1.GetDeviceID)
      Hardware1.BackLightOn 
'Prevents the back light from suspending
      Hardware1.RunAppAtEvent(AppPath & "\MyApp.exe", Hardware1.evWakeup) 'MyApp will be launched each time the device is turned on
      Hardware1.RunAppAtTime (AppPath & "\MyApp.exe", TimeAdd(now,0,5,0)) 'MyApp will be launched in 5 minutes
      AddTimer("Timer1")
      Timer1.Interval = 
5000 '5 seconds
      Timer1.Enabled = true
      TextBox1.Focus
      Hardware1.KeyPress(
asc("1")) 'Writes 1
      
      Hardware1.KeyDown(
160'Holds the left shift down
      Hardware1.KeyPress(asc("1")) 'Writes !
      Hardware1.KeyUp(160'Frees the left shift
End Sub


Sub Timer1_Tick
      Hardware1.KeepAlive 
'Resets the system idle timers
End Sub
and now when I wake up the device, it's always run MyApp.exe. How to stop it ? I soft-reset but it's not work.
Reply With Quote
  #13 (permalink)  
Old 05-30-2007, 06:24 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Use the evNone event to remove it:
Hardware1.RunAppAtEvent(AppPath & "\MyApp.exe", Hardware1.evNone)
Reply With Quote
  #14 (permalink)  
Old 05-30-2007, 07:31 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

I did but it's still run when I wake up the device. Any solution? May be I need to hard-reset? Help me
Reply With Quote
  #15 (permalink)  
Old 05-30-2007, 07:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

See this link: http://www.scarybearsoftware.com/cn_overview.html
It is an application that allow you to see and remove the registered notifications.
Reply With Quote
  #16 (permalink)  
Old 05-30-2007, 11:17 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

People,

Hi see some interesting issues here that should be adressed in the questions and problem section!!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #17 (permalink)  
Old 05-31-2007, 07:45 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

Hi Cableguy,

I understand but I think it can fit with Hardware lib thread. I just want to know the solution to remove problem.

Thank you.
Reply With Quote
  #18 (permalink)  
Old 05-31-2007, 08:14 AM
Knows the basics
 
Join Date: May 2007
Posts: 82
Default

I use Check Notifications software to remove notification and it's work. Beside, can you re-test RunAppAtEvent and show me how to remove it ?

Thank Erel.
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware library was updated - 3.10 Erel Announcements 16 03-22-2010 06:04 PM
Hardware library was updated Erel Announcements 0 03-01-2008 05:20 PM
Hardware library was updated - 3.00 Erel Announcements 1 09-10-2007 10:21 PM
Hardware library was updated - 2.70 Erel Announcements 2 07-01-2007 07:50 PM
Hardware library was updated Erel Announcements 2 05-16-2007 11:40 AM


All times are GMT. The time now is 01:15 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0