javascript:alert(document.lastModified)it will display the date/time stamp for the page you are on (although I'm not sure how reliable this value is).
It remembered this when I read a question on the support forum.
http://www.autohotke...topic.php?t=911
but there is more that you can do with javascript in ahk scripts. I am no JavaScript expert but here are some examples.
selectaddress = !D^{HOME}{SHIFT DOWN}^{END}{SHIFT UP}^C ; get a list of links on the page #i:: command = javascript:function ROIoiW(){var map='';DL5e=document.links;for(lKi=0;lKi<DL5e.length;lKi++){map = map + DL5e[lKi]+'|'}prompt('map',map);}ROIoiW(); gosub, sendcommand Return sendcommand: send, %selectaddress% clipboard = %command% send, ^V{enter} send, ^c{enter} StringReplace, clipboard, clipboard, |, `n , all msgbox, %clipboard% Return ; on www.msn.com, set the stock quote field to b autohotkey #j:: command = javascript:function wewe(){document.forms["getquote"].Symbol.value='autohotkey';}wewe(); send, %selectaddress% clipboard = %command% send, ^V{enter} Return ; position the cursor on the search input field #K:: command = javascript:document.STWF.q.focus() send, %selectaddress% clipboard = %command% send, ^V{enter} Return ; various commands (uncomment to test) #L:: ; show which page you came from ; command = javascript:function wewe(){prompt('test',document.referrer)}wewe(); ; get the URL ; command = javascript:function wewe(){prompt('test',document.URL)}wewe(); ; get the path in the URL command = javascript:function wewe(){prompt('test',document.location.pathname)}wewe(); send, %selectaddress% clipboard = %command% send, ^V{enter} send, ^c{enter} msgbox, %clipboard% Return
(you'll need to be careful about line feeds etc, some of the clode lines are quite long and need to be on one line
There is a handy web page that gives bits of code that may be useful herehttp://www.bookmarkl...ls/categor.html. They suggest adding the link to you favouries but you can right-click on a link and copy the shortcut to the clipboard and paste it into and address bar or into your script.
Mike