garry
Joined: 19 Apr 2005 Posts: 1034 Location: switzerland
|
Posted: Tue Jul 12, 2005 10:42 am Post subject: Start URL with date |
|
|
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)
| Code: | ;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
|
|
|