Sign in to follow this  
Followers 0
pcjunki

2015 Printable Calendar

1 post in this topic

I made a little gui that downloads a month you pick and you can print it out.

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("2015 Printable Calendar", 486, 326, 192, 124)

$Button1 = GUICtrlCreateButton("January", 8, 8, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button2 = GUICtrlCreateButton("February", 126, 8, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button3 = GUICtrlCreateButton("March", 240, 8, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button4 = GUICtrlCreateButton("April", 354, 8, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button5 = GUICtrlCreateButton("May", 8, 110, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button6 = GUICtrlCreateButton("June", 126, 110, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button7 = GUICtrlCreateButton("July", 240, 110, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button8 = GUICtrlCreateButton("August", 354, 110, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button9 = GUICtrlCreateButton("September", 8, 208, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button10 = GUICtrlCreateButton("October", 126, 208, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button11 = GUICtrlCreateButton("November", 240, 208, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

$Button12 = GUICtrlCreateButton("December", 354, 208, 113, 97)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

Case $button1
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_january_calendar.gif" , @DesktopDir & "/jan.jpg")
ShellExecute(@DesktopDir & "/jan.jpg")

Case $button2
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_february_calendar.gif" , @DesktopDir & "/feb.jpg")
ShellExecute(@DesktopDir & "/feb.jpg")

Case $button3
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_march_calendar.gif" , @DesktopDir & "/march.jpg")
ShellExecute(@DesktopDir & "/march.jpg")

Case $button4
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_april_calendar.gif" , @DesktopDir & "/april.jpg")
ShellExecute(@DesktopDir & "/april.jpg")

Case $button5
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_may_calendar.gif" , @DesktopDir & "/may.jpg")
ShellExecute(@DesktopDir & "/may.jpg")

Case $button6
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_june_calendar.gif" , @DesktopDir & "/june.jpg")
ShellExecute(@DesktopDir & "/june.jpg")

Case $button7
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_july_calendar.gif" , @DesktopDir & "/july.jpg")
ShellExecute(@DesktopDir & "/july.jpg")

Case $button8
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_august_calendar.gif" , @DesktopDir & "/august.jpg")
ShellExecute(@DesktopDir & "/august.jpg")

Case $button9
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_september_calendar.gif" , @DesktopDir & "/sept.jpg")
ShellExecute(@DesktopDir & "/sept.jpg")


Case $button10
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_october_calendar.gif" , @DesktopDir & "/oct.jpg")
ShellExecute(@DesktopDir & "/oct.jpg")

Case $button11
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_november_calendar.gif" , @DesktopDir & "/nov.jpg")
ShellExecute(@DesktopDir & "/nov.jpg")

Case $button12
InetGet("http://www.free-printable-calendar.net/printable-calendar-images/2015_december_calendar.gif" , @DesktopDir & "/dec.jpg")
ShellExecute(@DesktopDir & "/dec.jpg")



    EndSwitch


 WEnd

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0