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 

Get in sync with E.bay

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
BoBoĻ
Guest





PostPosted: Mon Jan 21, 2008 4:27 pm    Post subject: Get in sync with E.bay Reply with quote

I wanna slightly change my past request from [here], to cover this: Do you see a chance to access E.bay and synch a local PCs clock using their response?
Quote:
http://viv.ebay.de/ws/eBayISAPI.dll?EbayTime
Indeed, I need E.bays German time setting Wink

Anything close to realtime will be high appreciated! Very Happy Cool
Back to top
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Mon Feb 18, 2008 2:17 pm    Post subject: Reply with quote

OMG this is crazy, DateParse() accepts German!

Code:
SetBatchLines, -1
tf = %A_Temp%\e
URLDownloadToFile, http://viv.ebay.de/ws/eBayISAPI.dll?EbayTime, %tf%
FileRead, html, %tf%
StringGetPos, p, html, eBay Deutschland
StringMid, time, html, p += 40, InStr(html, "</", "", p) - p
time := DateParse(time) ; http://www.autohotkey.com/forum/topic20405.html
MsgBox, %time%

I don't know what the MEZ timezone is though. You can easily offset the minutes with EnvAdd because time will be an ahk-format timestamp (see FormatTime).
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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