Page 3 of 15 FirstFirst 12345678910111213 ... LastLast
Results 21 to 30 of 146

Thread: MobileWeb v1.0 for MediaCar Released

  1. #21
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    I ended up getting it to embed... I had to open the VB project and change the Caption on the main form to something other than "mobileweb"... I ended up changing it to "mWeb" and put that as my SearchString and it worked... It appears that when you launch the program it creates an instance called "mobileweb" as well as one with the Caption name, which orignally was also "mobileweb"... MediaCar never selected the second one, which was the right window..

    Now, there is still a "mobileweb", but also an "mWeb", and that works...
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  2. #22
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    Also in the VB project I had a problem with the disconnect function... One thing was the Navigate in the ConectChange function didn't work at first..

    I changed:
    Navigate ("file://" & App.Path & "html\blank.htm")

    to:
    Navigate ("file://" & App.Path & "\html\blank.htm")

    Needed the extra backslash, you had it right in the Form.Load... Also it doesn't disconnect... After I fixed the above it does navigate to the blank page, but it doesn't disconnect the phone.. the "InternetAutodialHangup 0" doesn't appear to work... When I close the application I do get the windows dialog asking if I want to stay connected and that does properly close the connection...
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  3. #23
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by veetid
    Also in the VB project I had a problem with the disconnect function... One thing was the Navigate in the ConectChange function didn't work at first..

    I changed:
    Navigate ("file://" & App.Path & "html\blank.htm")

    to:
    Navigate ("file://" & App.Path & "\html\blank.htm")

    Needed the extra backslash, you had it right in the Form.Load... Also it doesn't disconnect... After I fixed the above it does navigate to the blank page, but it doesn't disconnect the phone.. the "InternetAutodialHangup 0" doesn't appear to work... When I close the application I do get the windows dialog asking if I want to stay connected and that does properly close the connection...



    VB is dumb when it comes to app.path.

    App.Path will return a trailing slash when at the root of a drive and
    not when without it.

    Solution, write a wrapper function:

    Code:
    Public Function SmartAppPath() As String
        If Right$(App.path, 1) = "\" Then
            SmartAppPath = App.path
        Else
            SmartAppPath = App.path & "\"
        End If
    End Function
    [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
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    Quote Originally Posted by frodobaggins
    VB is dumb when it comes to app.path.

    App.Path will return a trailing slash when at the root of a drive and
    not when without it.

    Solution, write a wrapper function:

    Code:
    Public Function SmartAppPath() As String
        If Right$(App.path, 1) = "\" Then
            SmartAppPath = App.path
        Else
            SmartAppPath = App.path & "\"
        End If
    End Function

    There's nothing like a good wrapper, and Vanilla Ice was nothing like a good rapper

  5. #25
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Quote Originally Posted by veetid
    Also in the VB project I had a problem with the disconnect function... One thing was the Navigate in the ConectChange function didn't work at first..

    I changed:
    Navigate ("file://" & App.Path & "html\blank.htm")

    to:
    Navigate ("file://" & App.Path & "\html\blank.htm")

    Needed the extra backslash, you had it right in the Form.Load... Also it doesn't disconnect... After I fixed the above it does navigate to the blank page, but it doesn't disconnect the phone.. the "InternetAutodialHangup 0" doesn't appear to work... When I close the application I do get the windows dialog asking if I want to stay connected and that does properly close the connection...
    yeah just a typo in there; will change as you suggest and upload again. The InternetAutodialHnagup relys on interent explorer settings etc, suchh as testing it first, and ticking the usual 'do not ask me about this ever again' boxes. If anyone knows a better way please let me know.

    I've had the same problem with the embedding of the window on a couple of occasions - I have no idea why? nothing seems to be wrong, it didn't embed right on the way to work this morning which was weird.
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  6. #26
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    Quote Originally Posted by frodobaggins
    VB is dumb when it comes to app.path.

    App.Path will return a trailing slash when at the root of a drive and
    not when without it.

    Solution, write a wrapper function:

    Code:
    Public Function SmartAppPath() As String
        If Right$(App.path, 1) = "\" Then
            SmartAppPath = App.path
        Else
            SmartAppPath = App.path & "\"
        End If
    End Function
    Can I use that function in my apps frodo (not that there are many other ways to do the above)? Note that I tend to BSD license them tho
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  7. #27
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote Originally Posted by stevieg
    Can I use that function in my apps frodo (not that there are many other ways to do the above)? Note that I tend to BSD license them tho
    I don't give a ****. Use away !
    [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!

  8. #28
    See me in my wet t-shirt. stevieg's Avatar
    Join Date
    Aug 2003
    Location
    Warwickshire, UK
    Posts
    1,887
    New version 1.0.18 uploaded, not much diffeent, just a few fixes, see first post.
    Ford Focus MP3 : www.stevieg.org/carpc Blog Updated 29 January 2009!
    Car PC Status: Complete - Undergoing Software Redevelopment

  9. #29
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    I saw earlier in the thread someone wanting weather support built in... I have some good weather code that should be pretty universal... You might need to right some code to detect whether to show in F/C and MPG/KM, but other than that...

    I have it in an aspx page right now... I call this webpage from your mobileweb program...

    http://mirkwood.gotdns.com/mweb/weat...stalcode=92008

    Here is the code:

    http://mirkwood.gotdns.com/downloads/weather.zip
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  10. #30
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    I found that code useful veetid, thanks.
    Frodo
    [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!

Similar Threads

  1. FrodoSkinner v1.0 Released
    By Jawbreak in forum FrodoPlayer
    Replies: 21
    Last Post: 12-30-2004, 12:34 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
  •