royco Posted November 12, 2009 Posted November 12, 2009 hi ppl i want to print with my sticker printer , its should be 5cm on 6cm 1. i want to add title 2. start day = select from guictrlcreatedate 3. expiration date = also select from guictrlcreatedate 4. opend by = input 5. print = select printer any help be appreciated also i need explanation on how it works expandcollapse popup#include <ButtonConstants.au3> #include <DateTimeConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <File.au3> #Region ### START Koda GUI section ### Form=C:\Scriptim\working on\Form1.kxf $Form1 = GUICreate("Form1", 390, 318, 192, 114) $Button1 = GUICtrlCreateButton("exit", 8, 272, 113, 33, $WS_GROUP) $Button2 = GUICtrlCreateButton("print", 128, 272, 113, 33, $WS_GROUP) $Button3 = GUICtrlCreateButton("reset", 256, 272, 113, 33, $WS_GROUP) ;$file = GUICtrlRead BitAND($Date1, $Date2) $Date1 = GUICtrlCreateDate("2009/11/10 09:53:51", 8, 88, 129, 25) $Date2 = GUICtrlCreateDate("2009/11/10 09:54:53", 160, 88, 121, 25) $Input1 = GUICtrlCreateInput("Input1", 8, 32, 121, 21) $Group1 = GUICtrlCreateGroup("Opened", 0, 8, 137, 57) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group2 = GUICtrlCreateGroup("Entry", 0, 72, 145, 49) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group3 = GUICtrlCreateGroup("exp day", 152, 72, 137, 49) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Exit ;Case $Button2 ; print() EndSwitch WEnd
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