Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: AutoIt

  1. #11
    Low Bitrate rjankowski's Avatar
    Join Date
    Oct 2006
    Location
    TN/KY Home is Houston
    Posts
    63
    WOW, thats alot of coding... is it because you want a smoother transisition? I managed to code something for streets and trips using send() and didnt even come close to that much programming... ill post it here if you want
    It works!!

    Almost all of the time too!

  2. #12
    Constant Bitrate
    Join Date
    Apr 2006
    Posts
    153
    If you have code you'd like to share that would be great. I'm going to throw samples of code on here every now and again for anyone who's trying to get started. The easier it is, the more people will try, the more people who contribute, the easier it is for everyone.

  3. #13
    Low Bitrate rjankowski's Avatar
    Join Date
    Oct 2006
    Location
    TN/KY Home is Houston
    Posts
    63
    Was something like this, I am not at my work computer so, I dont have the exact stuff infront of me. (i copied what you guys already had up here to make it easier on me)

    $number = $cmdline[1]
    $rr = ObjCreate("RoadRunner.SDK")
    $gaslat = $rr.GetInfo("gas_" & $number & "_lat")
    $gaslon = $rr.GetInfo("gas_" & $number & "_lon")

    you call this program with as: gas.exe n
    n being the number of the gas station you want the lat and lon for, 0-5
    you can then use the Send() command to send keys to the program to route you to it
    It works!!

    Almost all of the time too!

  4. #14
    Constant Bitrate
    Join Date
    Apr 2006
    Posts
    153
    Haha that's the exact code I have up there! I think all the extra code you're seeing is sending 'GPS' back to RR. As you've indicated there's an easy way to get info (SDK) but not send it back. If you have an easier way to send it there, let me know.

  5. #15
    Low Bitrate rjankowski's Avatar
    Join Date
    Oct 2006
    Location
    TN/KY Home is Houston
    Posts
    63
    WinActivate("Map - Microsoft Streets & Trips", "")
    $rr = ObjCreate("RoadRunner.SDK")
    $number = $cmdline[1]
    $gaslat = $rr.GetInfo("gas_" & $number & "_lat")
    $gaslon = $rr.GetInfo("gas_" & $number & "_lon")
    ;msgbox(0,"", $gaslat & $gaslon)
    Send("!ef{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{RIGHT}{TAB }{TAB}{TAB}{RIGHT}")
    WinWaitActive("Find", "Type the latitude and longitude as decimal values")
    Send($gaslat)
    Send("{TAB}")
    Send($gaslon)
    Send("{TAB}{TAB}{SPACE}")
    Send("!ud")
    Send("^{F5}")
    Sleep(300)
    Send("^u")
    Exit

    I could probably reduce most of the send commands to one or two lines, but im lazy... yes its a hacked up version of what you have.

    Im still trying to figure out why you have it reading the registry?
    It works!!

    Almost all of the time too!

  6. #16
    Constant Bitrate
    Join Date
    Apr 2006
    Posts
    153
    Ah. The registry read is for a separate part of the code which I didn't include. It essentially is a quick and dirty way of getting the RR path so if I wanted to read/write to rr.ini etc. it would be at $RR_Path. I put all my plugins in the RR_Path; traffic, gmail, weather, etc. and it's an easy way to get to them all.

  7. #17
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    FYI...

    Using the sdk, you can just pull RR's path right from a varible thats already set by rr.

    $oRR.GetInfo("=$RRPATH$") 'returns RR's path with trailing '/'
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  8. #18
    Constant Bitrate
    Join Date
    Apr 2006
    Posts
    153
    yep. I just learned how to get info from the registry before I learned about sdk. all gets you to the same answer. you're my boy blue....what movie?...anybody?

  9. #19
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,168
    Blog Entries
    51
    oooold school~!

    and since i answered correctly i have a autoit related question. Has anyone figured out how to send data from rr to an autoit script. I dont mean labels n such i mean sending commands. Say i hadda autoit script that worked basically as a keyboard that sends keys to another application. i could skin the autoit script but i'd have focus and embedding issues. What i'd like to do is just skin the keyboard in rr then have rr send the keypresses to the autoit script.. which would then in turn send it to the application as if the key was pressed in autoit itself.

    Figure this one out for me blue!
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  10. #20
    Constant Bitrate
    Join Date
    Apr 2006
    Posts
    153
    If you have each key on the keyboard send your .exe |k |l etc. then this should work:

    $keypress = $cmdlineraw

    if $keypress = "k" Then
    send command to your program
    endif

    if $keypress = "l" Then
    send command to your program
    endIf

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Parallel port relay control in RR using Autoit?
    By momanz in forum Road Runner
    Replies: 5
    Last Post: 04-03-2009, 09:20 AM
  2. Thoughts on Autoit X
    By lostreception in forum Software & Software Development
    Replies: 4
    Last Post: 09-13-2006, 12:33 AM
  3. Replies: 3
    Last Post: 04-24-2006, 03:53 PM
  4. AutoIT
    By ashgrovered in forum Coders Corner
    Replies: 3
    Last Post: 03-16-2006, 08:29 AM
  5. Any AutoIt script experts out there?
    By mindracing in forum Centrafuse
    Replies: 8
    Last Post: 08-11-2005, 02:19 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
  •