Results 1 to 9 of 9

Thread: Front end chooser ? anyone ?

  1. #1
    Maximum Bitrate SAScooby's Avatar
    Join Date
    Feb 2004
    Location
    Johannesburg, South Africa
    Posts
    535

    Front end chooser ? anyone ?

    Hi

    I am not sure if this has been an idea before

    but what about a front end chooser ?
    an exe that replaces explorer.exe as the shell
    this app then has a few customisable buttons on it

    frodo nmc
    rr phonecontrol
    winamp explorer.exe
    centrafuse car amp
    media engine obd

    so that you can then choose the front end you want, of course if there is no selection, then perhaps a default is done automatically, there may be some times you want to use the pc but not through the front end, and to wiat for the front end to open up and then close
    what about it ?
    Nano ITX / 512 MB / 60 GB / Panasonic slot load / M1-ATX / Bu303 / Sound blaster 24 / PPi amps / rockford sub

  2. #2
    Well, He asked for it. WebDog's Avatar
    Join Date
    Sep 2004
    Location
    Los Angeles, CA (West LA)
    Posts
    1,636
    I would use that if someone made it...
    1990 Jeep Cherokee
    2000 VW Golf TDI 4dr
    2005 VW GTI MKIV - SOLD

  3. #3
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173
    I wrote an app that does something similiar to this. Basically because I/we all enable our front ends as the shell sometimes this can limit our abilities to access certian features of our PC's. In my hardware design my front end is stored on an external 2.5" drive. Forseeing myself forgetting to put in the 2.5" drive ocasionally, causing the system to boot with no front end, I devised a plan.

    My plan was to have a CF card (in the MII's CF slot) with my frontend on it. The OS on a CF card connected to IDE and a 2.5" External drive capable of mass storage, with my front end on it.

    The shell I designed is actually the new windows shell. When loaded it figures out if the primary front end is available (on the 2.5" drive) If its not then looks for the secondary front end (located on the CF card) If thats not available, then is loads explorer.exe... If thats not available it will try to load a "launch file window" (for diagnostics)

    The app has an editable XML file where you can chose (Primary,Secondary,Emergency) applications. Also one addition, is that it watches the primary and secondary applications for termination (a crash) if the app crashed, it relaunches it within 5 seconds. Like windows will do to its shell.

    I can post some base code OR possibly re-design the app to how you guys want it... Of course I'll do this only if there's enough interest. But when I get home I will at least post the basecode.
    Progress [I will seriously never be done!]
    Via EPIA MII
    512MB RAM
    OEM GPS (embedded)
    nLite WinXP pro on
    1GB Extreme III CF card
    Carnetix 1260 startup/ DC-DC regulator
    Software: Still, re-Writing my existing front end in .Net

  4. #4
    Maximum Bitrate SAScooby's Avatar
    Join Date
    Feb 2004
    Location
    Johannesburg, South Africa
    Posts
    535
    Yip, this is getting on to the right track
    Nano ITX / 512 MB / 60 GB / Panasonic slot load / M1-ATX / Bu303 / Sound blaster 24 / PPi amps / rockford sub

  5. #5
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173
    Someone could easily edit the code to do what you guys wanted. Its all based of XML for one thing so that would really make it easier.
    Progress [I will seriously never be done!]
    Via EPIA MII
    512MB RAM
    OEM GPS (embedded)
    nLite WinXP pro on
    1GB Extreme III CF card
    Carnetix 1260 startup/ DC-DC regulator
    Software: Still, re-Writing my existing front end in .Net

  6. #6
    Raw Wave RoyN's Avatar
    Join Date
    Sep 2004
    Location
    São Paulo, Brazil
    Posts
    3,534
    what about this? CarShell v2

    altho intellas idea is purdy cool!
    Roy

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

  7. #7
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173
    Code:
     
    
       Private primary_directory As String
        Private secondary_directory As String
        Private emergency_directory As String
    
        Public Enum ENUM_ShellState
            primary
            secondary
            cleared
            emergency
        End Enum
    
        Private ShellState As ENUM_ShellState
    
    
    Private Sub frm_main_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
    
            Dim node_data As String
            Dim settings As New XmlDocument
            Dim node As XmlNode
    
    
    
    
            If File.Exists("settings.xml") Then
                settings.Load("settings.xml")
    
    
    
    
    
                Dim primary_app As XmlNodeList
                primary_app = settings.GetElementsByTagName("application")
    
                Dim p_nodes As XmlNode
                For Each p_nodes In primary_app
                    node_data = p_nodes.ChildNodes(0).ChildNodes(0).Value
                    Select Case (p_nodes.ChildNodes(1).ChildNodes(0).Value)
                        Case "1"
                            primary_directory = node_data
    
                        Case "2"
                            secondary_directory = node_data
                        Case "3"
                            emergency_directory = node_data
    
                    End Select
    
                Next
    
                Call launch_something()
    
    
    
            Else
                lbl_status.Text = "settings.XML missing"
            End If
    
    
    
    
    
        End Sub
    
    
       Private Sub launch_something()
            Dim filename As String
    
            Try
                Shell(primary_directory)
                ShellState = ENUM_ShellState.primary
            Catch ex As Exception
                ShellState = ENUM_ShellState.cleared
                Try
                    Shell(secondary_directory)
                    ShellState = ENUM_ShellState.secondary
                Catch ex2 As Exception
                    ShellState = ENUM_ShellState.cleared
                    Try
                        Shell(emergency_directory)
                        ShellState = ENUM_ShellState.emergency
                        lbl_status.Text = "Emergency mode!"
                        process.Enabled = False
    
                    Catch ex3 As Exception
    
    
                        'diag_emergency.ShowDialog()
    
                        FileExp.Filter = "Exec (*.exe)|*.exe|" & "All files|*.*"
                        If FileExp.ShowDialog() = DialogResult.OK Then
                            'showDialog method makes the dialog box visible at run time
                            FileName = FileExp.FileName
                        End If
    
    
                        If Not filename = "" Then
                            Try
                                Shell(filename)
                            Catch ex4 As Exception
                                launch_something()
                            End Try
    
                        Else
                            launch_something()
                        End If
    
    
                        lbl_status.Text = "Catastrophic Failure!"
    
                    End Try
    
    
    
    
                End Try
    
    
    
            End Try
    
    
    
    
        End Sub
    
      Private Sub process_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles process.Tick
            Dim Proc As Process
    
    
    
            If Not ShellState = ENUM_ShellState.cleared Then
                Try
                    Proc = System.Diagnostics.Process.GetProcessesByName("Carinterface")(0)
    
                Catch ex As Exception
    
                    launch_something()
    
    
                End Try
            End If
           
    
    
    
          
    
    
    
    
    
        End Sub
    Attached Files Attached Files
    Progress [I will seriously never be done!]
    Via EPIA MII
    512MB RAM
    OEM GPS (embedded)
    nLite WinXP pro on
    1GB Extreme III CF card
    Carnetix 1260 startup/ DC-DC regulator
    Software: Still, re-Writing my existing front end in .Net

  8. #8
    FLAC IntellaWorks's Avatar
    Join Date
    Jun 2004
    Location
    NH
    Posts
    1,173

    How to use it:

    Below is the XML file. In directory tag you put the applications shell path
    The priority is self explanitory.
    The name tag is for the process name, so launch your app press ctrl + alt + delete and look for the exe of your front end and put that here.

    Oh and don't try Explorer.exe if its already as your windows shell, it freaks the machine out... not sure why...

    Code:
    <settings>
    
    	<application>
    		<directory>C:\carinterface.exe</directory>
    		<priority>1</priority>
    		<name>CarInterface</name>
    	</application>
    
    	<application>
    		<directory>E:\</directory>
    		<priority>2</priority>
    		<name>CarInterface</name>
    	</application>
    	
    	<application>
    		<directory>C:\</directory>
    		<priority>3</priority>
    		<name>Emercency</name>
    	</application>
    	
    
    	
    
    </settings>
    Progress [I will seriously never be done!]
    Via EPIA MII
    512MB RAM
    OEM GPS (embedded)
    nLite WinXP pro on
    1GB Extreme III CF card
    Carnetix 1260 startup/ DC-DC regulator
    Software: Still, re-Writing my existing front end in .Net

  9. #9
    Newbie yukon's Avatar
    Join Date
    Sep 2006
    Posts
    30
    So does this work? Anyone else tried it?

Similar Threads

  1. what front end do you use?
    By emdzey01 in forum Software & Software Development
    Replies: 30
    Last Post: 02-24-2006, 08:07 AM
  2. Searching for the right Front End
    By ninjatill in forum Newbie
    Replies: 9
    Last Post: 09-10-2005, 03:47 PM
  3. which front end for no touch screen?
    By turbochris in forum Newbie
    Replies: 4
    Last Post: 08-30-2005, 10:59 AM
  4. This is an awesome front end, and here is why:
    By WhiteRabbit in forum NeoCar Media Center
    Replies: 47
    Last Post: 08-27-2005, 10:43 PM
  5. need a front end that runs at 640x480 ...
    By mattress in forum Software & Software Development
    Replies: 5
    Last Post: 06-09-2005, 04:44 PM

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
  •