Page 1 of 2 12 LastLast
Results 1 to 10 of 14
Like Tree2Likes

Thread: Loading a website and sending a command via rr to control java script... possible?

  1. #1
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82

    Question Loading a website and sending a command via rr to control java script... possible?

    Have you ever wanted to view live radar in RR?

    This thread will be used to help me create an application and plugin that works seamlessly with RR.

    Currently only an external application exists.

    The source code can be downloaded here: http://bit.ly/RRadar_src (Download as .zip)

    The application can be downloaded here: http://bit.ly/RRadar_app (Continue with bitly warning message)

    Commands (use SENDKEY in RR)
    Alt+P = Play Radar (must have radar selected)
    Alt+S = Stop Radar (must have radar selected)
    Left Arrow = Move map left
    Right Arrow = Move map right
    Up Arrow = Move map up
    Down Arrow = Move map down
    - = Zoom Out (Shift can be on or off)
    + = Zoom In (Shift can be on or off)
    Last edited by dlane2155; 09-19-2013 at 08:27 PM. Reason: Updated: 9/19/2013

  2. #2
    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,617
    You could probably do it with a plugin.

    Or if there is a key sequence to toggle it you could use sendkey commands.

  3. #3
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    701
    If you can tell RR to navigate to the URL, then you might be able to tell it to navigate:

    javascript:document.getElementById('youridhere').c lick()

    Look up the ID of the button in the page source and try it. Not sure how RR does anything.


    EDIT: Not sure why my post has a space in the middle of the word click, but obviously it should be click and not c lick.
    Last edited by ClockWorK; 09-13-2013 at 09:39 AM.

  4. #4
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    Cool subject

  5. #5
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    Quote Originally Posted by ClockWorK View Post
    If you can tell RR to navigate to the URL, then you might be able to tell it to navigate:

    javascript:document.getElementById('youridhere').c lick()

    Look up the ID of the button in the page source and try it. Not sure how RR does anything.


    EDIT: Not sure why my post has a space in the middle of the word click, but obviously it should be click and not c lick.
    I tried this using the following:

    javascript:document.getElementById("LayerSatellite _animate_start").click()

    Is this something you should be able to enter in the url bar and hit enter? When I do, it searches the web. I have no java programming experience...

  6. #6
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    No , if you use RR, use Skintool ! But i have tried without success!
    The easier would be a plugin or an autoit script

  7. #7
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    701
    If using IE, it should work even in the url bar.

    I can use
    javascript:window.scroll(200,200);
    to scroll the current window. However, i had to type it in the URL box. When I pasted it into IE, IE cut out the "javascript:" part and tried to search.

    So, if you paste in your document.getElementById("LayerSatellite _animate_start").click() text, make sure the "javascript:" part is still there, or retype it.
    Last edited by ClockWorK; 09-14-2013 at 06:23 PM.
    dlane2155 likes this.

  8. #8
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    Quote Originally Posted by ClockWorK View Post
    If using IE, it should work even in the url bar.

    I can use
    javascript:window.scroll(200,200);
    to scroll the current window. However, i had to type it in the URL box. When I pasted it into IE, IE cut out the "javascript:" part and tried to search.

    So, if you paste in your document.getElementById("LayerSatellite _animate_start").click() text, make sure the "javascript:" part is still there, or retype it.
    Thank you! I was not using a ";" at the end of the line. I did not try this is IE, but google chrome. I'm sure it will work in IE, but not in Firefox. I think if you want to do it in Firefox there may be a plugin available.

    If anyone is interested in doing this as well, these are the javascript urls that will work on the page:

    Start Radar Animation:
    javascript:document.getElementById("LayerRadarAnim Gif_animate_start").click();

    Stop Radar Animation:
    javascript:document.getElementById("LayerRadarAnim Gif_animate_stop").click();

    Now it's time to make a skin file and see if I can get it work within RR. If everything works well I will continue researching different things I can do using javascript to change the settings for the map. I can see this being useful on lots of different websites, assuming the way the website is coded doesn't change too drastically too often!

  9. #9
    Low Bitrate
    Join Date
    Jun 2011
    Location
    PA
    Posts
    82
    Okay, having some issues implementing this into RR.

    I've learned you can set the browser path to whatever browser you choose in the config and at least WEBURL will work. I have not tried other commands. I have tried this with IE, Chrome, and Opera so far.

    Using WEBURL;url will open the browser if it's not open for each of the 3 browsers above. That is how I want to load the weather site.

    The problem is when I use a second WEBURL;javascript:... command it doesn't send the url to the same tab.

    IE closes the current window.
    Chrome opens a new window.
    Opera opens a new tab.

    It's pointless to even try Firefox because it doesn't allow javascript in the address bar.

    I can do this with SENDKEY, but it's ugly because as RR is "typing" in the address bar it drops down. I have not found any way to turn off the address bar drop down in Chrome or Opera.

    Any ideas? I would prefer to use Chrome or Opera.

  10. #10
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    It's possible that you share your vb code ? I have begun to do the same thing with vb.net but without success for the commands!

Page 1 of 2 12 LastLast

Similar Threads

  1. Send a OSKCMD command to an Autoit script
    By pierrotm777 in forum Road Runner
    Replies: 0
    Last Post: 04-19-2010, 05:39 AM
  2. Need Java Script help
    By EBFoxbat in forum General MP3Car Discussion
    Replies: 2
    Last Post: 02-02-2005, 12:31 PM
  3. Looking For ASP / Java Script / HTML File Upload Prog
    By ccsnet in forum General MP3Car Discussion
    Replies: 14
    Last Post: 12-27-2003, 08:13 PM
  4. Trigger script/command on resume from hibernate?
    By tejesh83 in forum Software & Software Development
    Replies: 9
    Last Post: 10-24-2003, 07:05 PM
  5. Sending SMS website?
    By jakeep in forum Off Topic
    Replies: 8
    Last Post: 10-10-2003, 06:26 AM

Tags for this Thread

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
  •