asa32sd23 Posted October 8, 2010 Report Share Posted October 8, 2010 I know there is a GET IP address which will return (ei) 126.52.1.1 what i need is to get the URL (ei) http://pgmacros.invisionzone.com/index.php?app=forums&module into a variable once a webpage opens. how is this accomplished? thanks Quote Link to comment Share on other sites More sharing options...
kevin Posted October 8, 2010 Report Share Posted October 8, 2010 You can use Macro Express to read the URL from the address field in the browser. Something like this should work: Text Type: <ALTD>d<ALTU> // move to the address field in the browser Delay 0.1 Seconds // wait a moment to let the browser catch up Text Type: <CTRLD>c<CTRLU> // copy URL to the clipboard Quote Link to comment Share on other sites More sharing options...
asa32sd23 Posted October 8, 2010 Author Report Share Posted October 8, 2010 Thanks I looked at the Clipboard Functions, I didnt see where I can place the TEXT (URL) that was copied via a keyboard command into a Variable. I am trying to do a logic statement IF %URL% = www.sampleURL.com then do this else do this Quote Link to comment Share on other sites More sharing options...
acantor Posted October 8, 2010 Report Share Posted October 8, 2010 Text Type: <ALTD>d<ALTU> // move to the address field in the browser Delay 0.1 Seconds // wait a moment to let the browser catch up Text Type: <CTRLD>c<CTRLU> // copy URL to the clipboard Hi Kevin, I use <ALTD> and <ALTU> only when <ALT> does not work, which it almost always does. And when I am forced to use the up and down versions, the key sometimes get stuck in the down position. Are there guidelines on when to use plain modifiers, and when to use the up and down versions? In other words, are there advantages (and drawbacks) of <ALTD>, <ALTU>, <CTRLD>, and <CTRLU> compared to <ALT> and <CONTROL>? Quote Link to comment Share on other sites More sharing options...
gotim123 Posted October 9, 2010 Report Share Posted October 9, 2010 Depending upon your browser, you can also try: 1)Text Type: <CTRLD>F6<CTRLU> // move to the address field in the browser 2)Delay 0.1 Seconds // wait a moment to let the browser catch up 3)Text Type: <CTRLD>c<CTRLU> // copy URL to the clipboard 4)Delay 0.1 Seconds // wait a moment 5)Text Type: (F6) // to unhighlight the URL... 6)Delay 0.1 Seconds // wait a moment 7)Variable Set String %T1% from Clipboard //Save To String Variable Quote Link to comment Share on other sites More sharing options...
kevin Posted October 10, 2010 Report Share Posted October 10, 2010 Some programs work with either <Alt>d or <ALTD>d<ALTU> while others do not. When one doesn't work try the other. For me, <ALTD>d<ALTU> seems to work best. Your mileage may vary. Quote Link to comment Share on other sites More sharing options...
kevin Posted October 10, 2010 Report Share Posted October 10, 2010 I looked at the Clipboard Functions, I didnt see where I can place the TEXT (URL) that was copied via a keyboard command into a Variable. Variable Set String %T1% from Clipboard Quote Link to comment Share on other sites More sharing options...
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.