AutoIM 5 Posted May 15, 2011 Report Share Posted May 15, 2011 Hi Guys I'm going around in circles here and could do with a push in the right direction. I'm trying to get the URL of the page the browser is at passed in to a variable. I've tried many things, but along the lines of the screenshot below. Any help gladly appreciated ! Phil Quote Link to post Share on other sites
UBotBuddy 331 Posted May 15, 2011 Report Share Posted May 15, 2011 have you tried something like this? http://screencast.com/t/IZ4g5lPx1jFX Quote Link to post Share on other sites
AutoIM 5 Posted May 16, 2011 Author Report Share Posted May 16, 2011 have you tried something like this? http://screencast.com/t/IZ4g5lPx1jFX Hi Bot Buddy Yes, and no. Yes, I have in other bots, and no, not in this one. The problem is that the url is unknown, so it has to be retrieved dynamically. I'm working in cpanel with the 'set security tokens' enabled, so that a random eight digit number is inserted in to the url. I need to use javascript to get the url to allow me to navigate directly in to the iframe to click or select etc. Best RegardsPhil Quote Link to post Share on other sites
Eddie Waller 158 Posted May 16, 2011 Report Share Posted May 16, 2011 Maybe this is what you're looking for: http://screencast.com/t/aWWf6Dccu8V Quote Link to post Share on other sites
AutoIM 5 Posted May 16, 2011 Author Report Share Posted May 16, 2011 Maybe this is what you're looking for: http://screencast.com/t/aWWf6Dccu8V Thanks a lot Eddie, that's exactly what I was looking for ! Silly thing is, I had been trying with window.location in the eval box, but I had the format of the javascript wrong, I was making it a function, and putting in the ; at line ends, which obviously it doesn't need. Simplest works best ! Thanks again, I'm moving forwards now, Best RegardsPhil Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.