Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 46

Thread: CarShell : touch-screen friendly shell and password application

  1. #21
    Raw Wave RoyN's Avatar
    Join Date
    Sep 2004
    Location
    São Paulo, Brazil
    Posts
    3,534
    So alti can you add that and tell us your system startup times with

    a) explorer
    b) carshell with lag
    c) carshell with anti-lag code...

    if c<a then it goes in as soon as it is released! (although I rarely reboot my system now adays, I might just start to do that if it is quick enuff)
    Roy

    2005 Range Rover 4.4
    Any ideas for putting a PC in this? :)

  2. #22
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,722
    I seem to be stumbling tring to convert this to dot net, I am new to API calls perhapes I am missing something here? Here is what I have.

    Code:
    Declare Auto Function OpenEvent Lib "kernel32.dll" Alias "OpenEventA" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal lpName As String) As Long
        Declare Auto Function SetEvent Lib "kernel32.dll" (ByVal hEvent As Long) As Long
        Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal hObject As Long) As Long
        Private Const EVENT_MODIFY_STATE As Long = &H2
    
        Public Sub Main()
    
      
            Dim H As Long
            H = OpenEvent(EVENT_MODIFY_STATE, False, "msgina: ShellReadyEvent")
            If H <> 0 Then
                SetEvent(H)
                CloseHandle(H)
            End If
    Vis studio shows no problems with code and it runs and builds without any errors, but no change in boot up time??? anyone good with vb6 - .net?
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  3. #23
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Actually in .net, all longs would be integer.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  4. #24
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Try this:

    Code:
    Declare Function OpenEvent Lib "kernel32.dll" Alias "OpenEventA" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal lpName As String) As Integer
        Declare Function SetEvent Lib "kernel32.dll" (ByVal hEvent As Integer) As Integer
        Declare Function CloseHandle Lib "kernel32.dll" (ByVal hObject As Integer) As Integer
        Private Const EVENT_MODIFY_STATE As Integer = &H2
    
        Public Sub Main()
    
      
            Dim H As Integer
            H = OpenEvent(EVENT_MODIFY_STATE, False, "msgina: ShellReadyEvent")
            If H <> 0 Then
                SetEvent(H)
                CloseHandle(H)
            End If
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  5. #25
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Just tested this and it works well.

    Code:
    Declare Function OpenEvent Lib "kernel32.dll" Alias "OpenEventA" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal lpName As String) As Integer
    Declare Function SetEvent Lib "kernel32.dll" (ByVal hEvent As Integer) As Integer
    Declare Function CloseHandle Lib "kernel32.dll" (ByVal hObject As Integer) As Integer
    Private Const EVENT_MODIFY_STATE As Integer = &H2
    
    		
    		Public Shared Sub Main
    
    		Dim H As Integer
            	H = OpenEvent(EVENT_MODIFY_STATE, False, "msgina: ShellReadyEvent")
            	If H <> 0 Then
                	    SetEvent(H)
                	    CloseHandle(H)
            	End If
    
    			Dim fMainForm As New MainForm
    			fMainForm.ShowDialog()
    		
    		End Sub
    Leave off the "Auto", and make sure this is performed before you load any modal forms or whatnot, make this the very first code executed.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  6. #26
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,722
    frodo, you da man.

    It works!

    RoyN here are the boot times

    Explorer - 37.8 sec
    CarShell without fix - 1:04.2
    Carshell with fix - 35.3

    These times were all from the instant power kicked on the system and times were run on a Athlon M 2400+ (running 1.8 ghz @ 200 x9) with 512 megs ram. XP pro

    I also have the administrator set to automatically login

    I will implement the code in a release that i should have up later today, will post again when it is up.
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  7. #27
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,722
    ok - the version with the code fix is up, i also streamlined the process of changing between shells to help avoid closing out of carshell completely when you are using it as a shell.

    Kinda curious to see if there is more of a change in boot time with differnt hardware. If anyone decides to give it a try post your results with what hardware your running on.
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  8. #28
    Newbie
    Join Date
    May 2005
    Posts
    41
    Quote Originally Posted by alti
    ok - the version with the code fix is up, i also streamlined the process of changing between shells to help avoid closing out of carshell completely when you are using it as a shell.

    Kinda curious to see if there is more of a change in boot time with differnt hardware. If anyone decides to give it a try post your results with what hardware your running on.
    Am I blind or is the download not in the first post?

  9. #29
    FLAC alti's Avatar
    Join Date
    Sep 2004
    Location
    NY
    Posts
    1,722
    Quote Originally Posted by foltster
    Am I blind or is the download not in the first post?
    sorry i edited it this morning before coffee
    My Install

    Software:
    CFiG v1
    iGuidance Plugin for CF

    CarShell
    Working shell for a CarPC

    StopWatch
    StopWatch plugin remade for centrafuse RC1

  10. #30
    Raw Wave RoyN's Avatar
    Join Date
    Sep 2004
    Location
    São Paulo, Brazil
    Posts
    3,534
    cool, cant wait to try it out... my new carputer (for my dads car, but it will live temporarily in mine hehehe) comes in today (I hope....praying as I type).... I'm gonna have this all on CF, so I'll post boot times and any issues I find...
    Roy

    2005 Range Rover 4.4
    Any ideas for putting a PC in this? :)

Page 3 of 5 FirstFirst 12345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •