Page 1 of 10 12345678910 LastLast
Results 1 to 10 of 92

Thread: Automatically start GPS for Streets '06

  1. #1
    Newbie
    Join Date
    Apr 2006
    Posts
    12

    Automatically start GPS for Streets '06

    I've put together an AutoIT3 script to automatically start the GPS and answer the "safety warning" whenever it isn't already started. I searched before I did this and didn't see it anywhere, so I thought it might be useful to others:

    Opt("WinTitleMatchMode",2)
    While 1
    WinWait("Microsoft Streets & Trips","")
    if Not ControlCommand("Microsoft Streets & Trips","","Button39","IsChecked","") Then
    ControlCommand("Microsoft Streets & Trips","","Button39","Check","")
    WinWait("Safety Warning","")
    ControlClick("Safety Warning","",5912)
    EndIf
    Sleep(5000)
    WEnd


    This can be compiled into an EXE file, and just run in the background. It checks once every 5 seconds and starts the GPS if necessary.

  2. #2
    Raw Wave tj!2k4's Avatar
    Join Date
    Oct 2004
    Posts
    3,294
    nice! thanks for sharing

  3. #3
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    I'm a complete moron with compiling exe's, but I would like this. How do I compile it? When I do then just run it and it will stay in the background processes and continuously check right? Any idea how much CPU power this uses? Thanks in advance.

  4. #4
    Newbie
    Join Date
    Apr 2006
    Posts
    12
    Quote Originally Posted by 2k1Toaster
    I'm a complete moron with compiling exe's, but I would like this. How do I compile it? When I do then just run it and it will stay in the background processes and continuously check right? Any idea how much CPU power this uses? Thanks in advance.
    Just download and install AutoIT3, and save the script as a .au3 file. If you right click on the file, you will see an option to compile it to a .exe file (so that autoit doesn't have to be installed on the carpc). I think that the resources it uses are pretty minimal - it will just sit in the background and mostly sleep.

  5. #5
    Fusion Brain Creator 2k1Toaster's Avatar
    Join Date
    Mar 2006
    Location
    Colorado, but Canadian!
    Posts
    10,045
    Thankyou. I just got around to compiling it. Works well. And to answer the memory ?, it takes 3.1Mb of RAM so basically nothing.

  6. #6
    Newbie
    Join Date
    Nov 2000
    Location
    Augusta GA
    Posts
    50
    I've been messing with this all day and its frustrating me to no end. I am trying to alter the script a bit so that it selects button39,41,44 and 45 (start GPS, rotate map, keep position centered, create gps trail) and I get some stupid error about no while command with wend. how am I supposed to add to this? I've tried everything! argh!
    2005 Subaru Legacy GT, carputer in progress
    Current status: Phase 1 Complete: working in car with no bugs, Phase II started, screen out of dash, making working mockup for beta testing

  7. #7
    Newbie
    Join Date
    Nov 2005
    Location
    Pittsburgh
    Posts
    44
    I used a line of sendkey button commands to do that...but I have to press a button. It went something like this.

    B01,0,343,135,68,"ACTIVATE;Microsoft Streets & Trips||SENDKEY;%TGS%TGM%TGA","GPS On"

    I'm not if sure you can execute a RR command upon loading a skin. I didn't get a chance to play with AutoIT3 yet. Sounds interesting.
    Colossians 1:16 - Everything

  8. #8
    Variable Bitrate breaker021's Avatar
    Join Date
    Apr 2005
    Location
    Midtown Manhattan
    Posts
    398
    I have not had the time to mess with this yet but do you think that this may be something that you can apply via registry?

    For example, if u turnon the gps, the trailing function, and maybe some other functions, is there a change in the registry?

    I am going to take a snapshot of my registry, turn on gps and some of the other options, then take another "after" snapshot of the registry... afterwards, i will compare the two "S&T" related hives and see if there are differences....

    if this is the case, then you can create a batch file that does two things: launches streets and trips and immediately after launch, you can apply the .reg registry keys with a regedit /s (i believe) command...

    i will let you know know next week how this works. my carputer is a mess right now. lol.
    - sh00k
    Duct tape and a Bandana for the win, b!shes!!!

    My Setup:http://www.mp3car.com/vbulletin/show-off-your-project/73500-06-scion-xb-tablet-in-the-box.html

    Cost so far: Less than a grand ;]



    _________________
    Economy/Commuter cars + Computers = many entertained miles

  9. #9
    Variable Bitrate gameboy's Avatar
    Join Date
    May 2005
    Location
    Elizabeth City, NC
    Posts
    294
    nice work(subscribed)
    95 Mazda Protege LX
    Worklog
    Overall [Project Dead] 0%

    2003 Nissan Altima
    [XXXXXXXX--] 80% Planning
    [XX--------] 20% FABRICATION/INSTALLATION

    Worklog

  10. #10
    Variable Bitrate gameboy's Avatar
    Join Date
    May 2005
    Location
    Elizabeth City, NC
    Posts
    294
    For Gps autostart, and rotate map, keep position Centered:

    // Cut here
    Opt("WinTitleMatchMode",2)
    While 1
    WinWait("Microsoft Streets & Trips","")
    if Not ControlCommand("Microsoft Streets & Trips","","Button39","IsChecked","") Then
    ControlCommand("Microsoft Streets & Trips","","Button39","Check","")
    WinWait("Safety Warning","")
    ControlClick("Safety Warning","",5912)
    EndIf
    Sleep(2500)
    if Not ControlCommand("Microsoft Streets & Trips","","Button41", "IsChecked","") Then
    ControlCommand("Microsoft Streets & Trips","","Button41","Check","")
    EndIf
    If Not ControlCommand("Microsoft Streets & Trips","","Button44", "IsChecked","") Then
    ControlCommand("Microsoft Streets & Trips","","Button44","Check","")
    Endif
    Sleep(5000)
    WEnd
    //End Cut here

    That will do it...., however you will not be able to turn that stuff off, with out closing the script, as ever 5 seconds it will check
    95 Mazda Protege LX
    Worklog
    Overall [Project Dead] 0%

    2003 Nissan Altima
    [XXXXXXXX--] 80% Planning
    [XX--------] 20% FABRICATION/INSTALLATION

    Worklog

Page 1 of 10 12345678910 LastLast

Similar Threads

  1. Replies: 17
    Last Post: 02-19-2007, 04:21 PM
  2. Getting Started with GPS
    By grepzen in forum The FAQ Emporium
    Replies: 12
    Last Post: 09-26-2006, 05:54 AM
  3. Newbie's guide
    By EBFoxbat in forum Newbie
    Replies: 6
    Last Post: 02-08-2005, 10:06 AM
  4. Mediacar V1.8.5
    By coyote in forum MediaCar
    Replies: 47
    Last Post: 02-16-2004, 01:16 PM
  5. Making Winamp LCD plugin start automatically
    By RobRoy in forum General Hardware Discussion
    Replies: 1
    Last Post: 11-06-1999, 12:50 AM

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
  •