g64 Posted May 25, 2008 Posted May 25, 2008 Hello everyone, I am rather new to the forum and have made some little scripts in the past. For my new little script i am writing i am a little stuck. I`ll explain my situation: I have a Dreambox Satellite receiver. When an email arrives on my pc i want to execute an Outlook rule that triggers my script to show on my TV i have a new email. The line that is needed to be executed in a browser to send that message is: "http://satbox-ip-here/cgi-bin/xmessage?caption=Outlook 2007&body=You have new email&timeout=7" In my old script i used wget.exe to execute that line without opening a browser. The only downside to this is that wget.exe writes a file that is of no use for every email that arrives. I have now created a new AutoIT script that also checks the uptime of the pc so that if i turn on my pc and receive 50 emails i do not have see 50 messages on my tv for the first few minutes. But i can`t find the right command in AutoIT to silently execute that string to my sattelite receiver without opening any browser windows or other script or programs like wget.exe. I hope there is anyone willing to teach me which command i need to use or which way this is best achieved. CODE#Include <Date.au3> $aTSB = DllCall ("kernel32.dll", "long", "GetTickCount") $ticksSinceBoot = $aTSB[0] dim $iHours, $iMins, $iSecs _TicksToTime ( $ticksSinceBoot, $iHours, $iMins, $iSecs ) $iDays = int($iHours / 24) $iHours = $iHours - ($iDays * 24) ;msgbox(0,"System Uptime","Days: "&$iDays& ", Hours: "&$iHours &", Minutes: "&$iMins & ", Seconds: "&$ticksSinceBoot ) If $ticksSinceBoot > 300000 Then ShellExecute("http://192.168.1.65/cgi-bin/xmessage?caption=Outlook%202007&body=New%20email%20received&timeout=10", "", @SW_HIDE)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now