Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Start URL with date


  • Please log in to reply
No replies to this topic
garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005
changed 2005-07-18 close opened TABs in Firefox
idea, I started url and see comic/news from today (example german Tages Zeitung TAZ)
(close script with Esc button)
I want see the comics/news from last 10 days
start script and type in -10
with SPACE-bar see next days comic, sunday will skipped (no comic on sunday)
a message box when tomorrow reached, push SPACE again,open TABs will closed (when you work with tabs in Firefox)
;TAZ.AHK 2005-07-18 garry  (sunday no comic)
InputBox,I,D-TagesZeitung Comic,[TAZ Touche] Start before x-days (Example: -14) =
if ErrorLevel <> 0
ExitApp
if I=
{
I=0
FormatTime,wDAY2,%A_NOW%,wDay
if wday2=1
 {
msgbox,Today is sunday (no comics avaible), script will close
ExitApp
 }
}

A5:
if I>0
{
msgbox,TABs OPEN=%IL%  Today+%I% days, script will close
;close openTABs
loop,%IL%
  {
send,^w
sleep,600
  }
ExitApp
}
envadd,A,%I%,days
stringmid,YR4,A,1,4
stringmid,MN2,A,5,2
stringmid,DY2,A,7,2
DA=%YR4%%MN2%%DY2%
FormatTime,wDAY1,%DA%,wDay
if wday1=1     ;never on sunday
GOTO A6
IL+=1
DS=http://www.taz.de/pt/%YR4%/%MN2%/%DY2%.nf/tomnf
run,%DS%
keywait,space,D
sleep,200
A6:
I+=1
A=
GOTO A5
ButtonCancel:
Guiclose:
GuiEscape:
ExitApp
Esc::ExitApp