Hardware library was updated

Erel

B4X founder
Staff member
Licensed User
Longtime User
These are the special folders:
sfFavorites - The user favorite items folder.
sfFonts - The fonts folder.
sfPersonal - The default folder for documents.
sfProgramFiles - The program files.
sfPrograms - The programs shortcuts folder.
sfStartMenu - The main menu shortcuts.
sfStartup - Application in this folder will be launched at startup.
sfWindows - The windows folder.
 

specci48

Well-Known Member
Licensed User
Longtime User
Could you add these constants in the next version of the help file?
 

specci48

Well-Known Member
Licensed User
Longtime User
Yes, I've seen them but in my eyes something like that should be documented in the help file, too! :sign0095:
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hardware Library

The enhanced library is a charm, especially the garbage collection feature and the Framework query. Erel, am I assuming correctly that GC does not clear temporary internet files?
Compliments!
Robert
 

batninja

Member
Licensed User
Desktop app shows error message after installing new Hardware library

Hi

I eagerly instaled the new hardware library, looking forward to the clipboard function but I get a strange error message now when I launch the desktop (V5) application. i.e.

System.Runtime.InteropService.ExternalException:The requested clipboard operation failed.
at System.WIndows.Forms.Clipboard.SetDataObject(Object data, Boolean copy)
at System.WIndows.Forms.Clipboard.SetDataObject(Object data)
at Dbasic.Form1.HighLightAllText(Int32 new TabSize)

Im running with Vista and just copied the hardware files to the Program Libraries folder. Also the Hardware Help file doesnt work under Vista.

Any ideas?

Thanks

Bats
 

alfcen

Well-Known Member
Licensed User
Longtime User
Hi
As far as I am aware, the hardware library runs on the device only.
The hardware desktop library is basically a dummy merely capable of retrieving the .NET framework version.
 

conf

Member
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.
 

conf

Member
Another problem:

I run the example of Hardware lib"

B4X:
'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.
 

conf

Member
I did but it's still run when I wake up the device. Any solution? May be I need to hard-reset? Help me :(
 

Cableguy

Expert
Licensed User
Longtime User
People,

Hi see some interesting issues here that should be adressed in the questions and problem section!!
 

conf

Member
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.
 

conf

Member
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.
 
Top