Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Announcements
Home Register FAQ Members List 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, 02: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, 02: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, 05:24 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,811
Default

Use the evNone event to remove it:
Hardware1.RunAppAtEvent(AppPath & "\MyApp.exe", Hardware1.evNone)
Reply With Quote
  #14 (permalink)  
Old 05-30-2007, 06: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, 06:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,811
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, 10:17 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,106
Default

People,

Hi see some interesting issues here that should be adressed in the questions and problem section!!
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #17 (permalink)  
Old 05-31-2007, 06: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, 07: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 On
Pingbacks are On
Refbacks are On

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


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


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