x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

a screensaver app

1 2 3
stingraze Page Icon Posted 2005-02-12 5:48 PM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,678
Location:
Japan
Status:
Hi.

I tweaked around with some code on eVB and made a screensaver application. It's quite cool, but there maybe some bugs. (not sure) Supported devices: Sh3, Sh4, MIPS, ARM

tested device: MIPS4000 MC-R520 Mobile Gear

If you tap on the app you can exit the application.

Please Download at:
http://www.geocities.jp/keaglewing/software/HpcScreenSaver.zip

Any feedbacks will be appreciated

Edited by stingraze 2005-02-12 6:00 PM
 Top of the page
C:Amie Page Icon Posted 2005-02-12 6:37 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
Hey great work

Excellent work even, the draw coveres all screen coordinates.

Couple of suggestions, can you change the file copy for the PVB run time files in the cab install to "0x00000010", that way if they already exist you don't get prompted to overwrite them.

Second, it isn't covering the taskbar on my 720, which defeats the purpose some what.
When the task bar is minimised you still get the 'grab line'.

If you could get it to run on idle even that would be swell.

Tested on a Jornada 720 and a IBM Workpad z50 and worked ok
hp 340LX installed ok but wouldn't run. The installer isn't setup to block CE2.00 installs.
 Top of the page
Snappy! Page Icon Posted 2005-02-12 6:54 PM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
hey! Neat!

I think you need to set your window to TopMost
 Top of the page
stingraze Page Icon Posted 2005-02-13 1:00 AM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,678
Location:
Japan
Status:
I must admit that this code wasn't entirely made by me, but is actually a port of a code intended for Pocket PC 2002.

The original code had the full screen mode, but somehow the core dll wasn't available on H/PC, and I had to change some code to make it work. Also changed the speed, screen size etc. I have to work on making it "Full Screen" or else there would be no meanig of a screensaver lol
 Top of the page
C:Amie Page Icon Posted 2005-02-13 8:31 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
It's currently a top 8/9th saver
 Top of the page
stingraze Page Icon Posted 2005-02-13 4:51 PM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,678
Location:
Japan
Status:
C:Amie - 2005-02-12 8:37 PM

Hey great work

Excellent work even, the draw coveres all screen coordinates.

Couple of suggestions, can you change the file copy for the PVB run time files in the cab install to "0x00000010", that way if they already exist you don't get prompted to overwrite them.

Second, it isn't covering the taskbar on my 720, which defeats the purpose some what.
When the task bar is minimised you still get the 'grab line'.

If you could get it to run on idle even that would be swell.

Tested on a Jornada 720 and a IBM Workpad z50 and worked ok
hp 340LX installed ok but wouldn't run. The installer isn't setup to block CE2.00 installs.


Version Update.... Now supports complete full screen lol
same link and file, but is now updated... (yeah!)
The only problem (I think was that the "Appearance" of the eVB form was not set to "0-Flat".

Updated file link:
http://www.geocities.jp/keaglewing/software/HpcScreenSaver.zip

C:Amie, I couldn't figure out how to change the file copy for the PVB run time files. Could you tell me how? Thank you for testing out on J720 and IBM WorkpadZ50!

Do you prefer the polygon covering the limit of 640X240 or should it be smaller?

phew, I could finally make it work.

Edited by stingraze 2005-02-13 4:52 PM
 Top of the page
C:Amie Page Icon Posted 2005-02-13 6:28 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
You have to edit the cab wizard .inf file.

On the z50 this new build isn't displaying over the top of the taskbar, it's identical to the last one, except it is now allowing draws behind it.
 Top of the page
stingraze Page Icon Posted 2005-02-13 10:20 PM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,678
Location:
Japan
Status:
hmm... but z50's screen is 640 x 480 right? The build is intended for use with 640X240 devices. Well, i think I'll make a build for 640X480 very soon.


And um... does it work on your Jornada?

stingraze

Edited by stingraze 2005-02-13 10:21 PM
 Top of the page
C:Amie Page Icon Posted 2005-02-14 8:20 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
Nope.
 Top of the page
Snappy! Page Icon Posted 2005-02-14 8:49 AM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
Works fine on my MP790.
 Top of the page
C:Amie Page Icon Posted 2005-02-14 9:57 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
and the taskbar was covered?
 Top of the page
Snappy! Page Icon Posted 2005-02-14 10:42 AM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
err ... nope the taskbar is still ontop. But the app itself works fine.
 Top of the page
C:Amie Page Icon Posted 2005-02-14 1:55 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,983
Location:
United Kingdom
Status:
I thought we already established that the application worked
 Top of the page
Snappy! Page Icon Posted 2005-02-14 2:00 PM
#
Avatar image of Snappy!
H/PC Elder

Posts:
1,712
Location:
New Mexico, US
Status:
Just adding on to the tested device list. Thought Stingraze would like to know.

This is a classic example of how other people will get turned off to volunteer to test in future!

Edited by Snappy! 2005-02-14 2:16 PM
 Top of the page
stingraze Page Icon Posted 2005-02-14 5:29 PM
#
Avatar image of stingraze
Subscribers
H/PC Vanguard

Posts:
3,678
Location:
Japan
Status:
Snappy! - 2005-02-14 4:00 PM

Just adding on to the tested device list. Thought Stingraze would like to know.

This is a classic example of how other people will get turned off to volunteer to test in future!


hmm... You know guys, I can provide you guys with the source code, and maybe you can help meout. It was working perfectly fine until today, and I noticed the taskbar still there.

Thank you Snappy and C:Amie for taking your time to test your devices.

Note: the HpcScreenSvr status: (currently under development. Ver.0.0.3)




Source Code of the Module (which I think is the problem because in the porting, I deleted one function and constants)

<MODULE>

Option Explicit

Const SW_HIDE = 0
Const SW_SHOWNORMAL = 1

Const SHFS_SHOWTASKBAR = &H1
Const SHFS_HIDETASKBAR = &H2
Const SHFS_SHOWSIPBUTTON = &H4
Const SHFS_HIDESIPBUTTON = &H8
Const SHFS_SHOWSTARTICON = &H10
Const SHFS_HIDESTARTICON = &H20
Const HWND_TOPMOST = -1
Const HWND_NOTOPMOST = -2

Const SWP_SHOWWINDOW = &H40
Const SM_CXSCREEN = &H0
Const SM_CYSCREEN = &H1
Const HHTASKBARHEIGHT = 26

Declare Function GetSystemMetrics Lib "Coredll" ( _
ByVal nIndex As Long) As Long

Declare Function MoveWindow Lib "Coredll" ( _
ByVal hwnd As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal nWidth As Long, _
ByVal nHeight As Long, _
ByVal bRepaint As Long) As Long

Declare Function SetForegroundWindow Lib "Coredll" ( _
ByVal hwnd As Long) As Boolean

Declare Function GetLastError Lib "Coredll" () As Long

Declare Function ShowWindow Lib "Coredll" ( _
ByVal hwnd As Long, _
ByVal nCmdShow As Long) As Long

Declare Function FindWindow Lib "Coredll" Alias "FindWindowW" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long

Public Sub FullScreen(ByVal frmHwnd As Long, ByVal makeFull As Boolean)
Dim lret
If Not makeFull Then
ShowSIP frmHwnd, True
ShowStart frmHwnd, True
ShowTaskbar frmHwnd, True
lret = FindWindow("menu_worker", ""
If lret <> 0 Then 'window found
ShowWindow lret, SW_SHOWNORMAL
End If
lret = SetForegroundWindow(frmHwnd)
lret = MoveWindow(frmHwnd, 0, HHTASKBARHEIGHT, _
GetSystemMetrics(SM_CXSCREEN), _
GetSystemMetrics(SM_CYSCREEN), True)
Else
ShowSIP frmHwnd, False
ShowStart frmHwnd, False
ShowTaskbar frmHwnd, False
'show form full screen
lret = FindWindow("menu_worker", ""
If lret <> 0 Then 'window found
ShowWindow lret, SW_HIDE
End If
lret = SetForegroundWindow(frmHwnd)
lret = MoveWindow(frmHwnd, 0, 0, _
GetSystemMetrics(SM_CXSCREEN), _
GetSystemMetrics(SM_CYSCREEN) + HHTASKBARHEIGHT, 0)
End If
End Sub
Public Sub ShowSIP(ByVal frmHwnd As Long, ByVal ShowIt As Boolean)
Dim lret
lret = SetForegroundWindow(frmHwnd)
If Not ShowIt Then
Else

End If
End Sub
Public Sub ShowStart(ByVal frmHwnd As Long, ByVal ShowIt As Boolean)
Dim lret
lret = SetForegroundWindow(frmHwnd)
If Not ShowIt Then

Else

End If
End Sub
Public Sub ShowTaskbar(ByVal frmHwnd As Long, ByVal ShowIt As Boolean)
Dim lret
lret = SetForegroundWindow(frmHwnd)
If Not ShowIt Then

Else

End If
End Sub


 Top of the page
1 2 3
Jump to forum:
Seconds to generate: 0.234 - Cached queries : 73 - Executed queries : 8