Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Can this be done

  1. #1
    Constant Bitrate ashgrovered's Avatar
    Join Date
    Jul 2005
    Location
    Brisbane Australia
    Posts
    150

    Can this be done

    I would like to read the contents of a RoadRunner Label and manipulate it inside a program, then send it back to RoadRunner as a user defined label.

    I know how to send a label to Roadrunner form AutoIT so I am part of the way.

    The RoadRunner SDK has an example VB program that can read the contents of a RoadRunner Label. Problem is I am not much of a programmer, AutoIt basics are ok but VB looks out of my depth and I don’t have VB.

    I would love to just do this inside AutoIT but I don’t think it is possible; please correct me if I am wrong. Even if you have an alternate suggestion.

    So what I am looking for is someone with VB skills that could use the RoadRunner example and modify it so I could call it from inside AutoIT. Some thing like this


    AutoIt scipt

    ;Get the RoadRunner Path from RoadRunner Label “RRPATH”
    $MyLabel = (call this magical exe)RRPATH

    ;Put the Label in a MsgBox
    MsgBox(0, "WindowName", $MyLabel)

    I hope what I am asking is not imposable; I can post a copy of RoadRunners sample code if required.

  2. #2
    Newbie
    Join Date
    Sep 2005
    Posts
    15
    Hi,

    Post the VB code sample please?

    It may be easier creating a simple VB executable from the VB code sample and simply running it from AutoIt with command line parameters. That way you could pass the label parameters to the VB application and it can change the RR label before ending. The VB application need not even be visible.

    Like I said, post the whole sample along with the parameters that you want to change and I'll take a look for you. Also, please explain why you want to change label parameters?

    cool dude

  3. #3
    Raw Wave
    Join Date
    Jun 2004
    Location
    On the beach
    Posts
    2,223
    What are you trying to achieve in the long run? Is there a reason it has to be AutoIT?

  4. #4
    Constant Bitrate ashgrovered's Avatar
    Join Date
    Jul 2005
    Location
    Brisbane Australia
    Posts
    150
    Gobby I have 2 initial things I would like to achieve both are related to 4WD driving rather that city driving.

    1) Average Speed - When traveling in Australia on outback roads your speed will vary from less that 5km/hr for rough creek crossing or deep bulldust to 80km for the good sections. You always know the distance to you next camp spot but it is a good idea to keen an eye on your average speed. The turn by turn navigation software will always give you your ETA but here in Australia turn by turn mapping is useless when you get off the main roads. I have a 2nd nav system that I use which is based on raster maps so it is impossible to do any routing calculations to get ETA’s; arriving at your camp spot 2 hours after darks is not much fun.
    2) Lat Long – I would like to display the Lat Long as DD.MM.SS not DD.dddd

    I had a look at Exec.exe and this is an excellent generic tool for sending 3rd party information back to RR for display, (I can do this with a 2 line AutoIT script) what would be really good to have an equivalent of Exec.exe that works the other way so you can grab any label some thing like.

    RRGrab.exe

    Usage: RRGrab [frequency to poll RR],[“separator”], [label1||label2|| label3…..]

    RRGrab.exe 60,%”GPSLAT||GPSLON||GPSHDG” would return

    123.1234%12.567%90


    I understand that what I want is possible with VB but if we had something like RRGrab.exe to complement Exec.exe Script kiddies like me could add some valuable scripts for others. Especially when AutoIt is FREE,
    But thats job for guino.

  5. #5
    Newbie
    Join Date
    Sep 2005
    Posts
    15
    So ashgrovered, are you going to post the RoadRunner sample code so that I can take a look at it for you?

  6. #6
    Constant Bitrate ashgrovered's Avatar
    Join Date
    Jul 2005
    Location
    Brisbane Australia
    Posts
    150
    DL to VB6.zip it is just the VB6 + Example from the RoadRunner source zip it only 12k
    http://www.savefile.com/files/1075144

    Unzip it anywhere you want
    Run SDKExample.exe
    If roadrunner is running it will populate the Track name etc.

    Thanks I hope you get somewhere

  7. #7
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,509
    I can knock a RRgrab up for you if you want, are you sure the exec doesnt do it already ? have you tried using the request command..

    CdR

  8. #8
    Newbie
    Join Date
    Sep 2005
    Posts
    15

    Done it...

    ashgrovered,

    I have modified the SDK Example code that you provided into an executable that can process RR SDK commands and return their values when used in conjunction with AutoIt. It is called "RR SDK" and it runs invisibly.

    Having never used AutoIt, I downloaded it and had a look. I wrote a script that allows the automation of the RR SDK application that I wrote. It's very basic but here you go:

    ;set the RR SDK text that you want to send to RR
    ControlSetText("RR SDK", "", "ThunderRT6TextBox2", "REQUEST;RR SDK;RRSCREEN")
    ;click the command button on the form to send the above command to RR
    ControlClick("RR SDK", "", "ThunderRT6CommandButton1")
    ;get the value returned from RR
    $var = ControlGetText("RR SDK", "", "ThunderRT6TextBox1")
    ;show the return result in a message box
    MsgBox (0,"Currentline",$var)

    Simply put, you can send any RR SDK commands to my RR SDK application and get the result returned by RR in AutoIt. I would imagine that the commands that you want would be:

    REQUEST;RR SDK;GPSLAT
    REQUEST;RR SDK;GPSLON
    REQUEST;RR SDK;GPSSPD
    REQUEST;RR SDK;GPSHDG
    REQUEST;RR SDK;GPSALT

    Essentially these are the GPS related RR labels. You can send any RR SDK command but they must start "REQUEST;RR SDK;". I cannot guarantee that all RR SDK will work correctly as I have only tried a few. Let me know how you get on?

    You can obviously run the RR SDK application from the AutoIt script, do your processing and then terminate it afterwards.

    Anyway, drop me a PM with your email address and I will email you the executable to try out?

    cool dude

  9. #9
    Constant Bitrate ashgrovered's Avatar
    Join Date
    Jul 2005
    Location
    Brisbane Australia
    Posts
    150
    Thanks cool dude, PM you my email address

  10. #10
    Newbie
    Join Date
    Sep 2005
    Posts
    15

    Nope

    It will only work with the application that I have written!

    Email me or send me a personal message with an email address where I can send it to, otherwise it obviously will not work!

    cool dude

Page 1 of 2 12 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
  •