AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Start URL with date

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
garry



Joined: 19 Apr 2005
Posts: 1034
Location: switzerland

PostPosted: Tue Jul 12, 2005 10:42 am    Post subject: Start URL with date Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group