Ilounah Posted March 7, 2019 Share Posted March 7, 2019 Hello Guys Im just starting to learn #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=C:\Users\MPC\Desktop\STOCK REQUEST FORM 2019\Form1.kxf $Form1 = GUICreate("Form1", 229, 224, 206, 184) $Label1 = GUICtrlCreateLabel("DIMSUM CATEGORY", 8, 8, 110, 17) $Label2 = GUICtrlCreateLabel("SOMAI", 8, 56, 137, 17, $WS_BORDER) $Label3 = GUICtrlCreateLabel("WANTON", 8, 80, 137, 17, $WS_BORDER) $Label4 = GUICtrlCreateLabel("SHARKS FIN", 8, 104, 137, 17, $WS_BORDER) $Label5 = GUICtrlCreateLabel("CHICKEN FEET", 8, 128, 137, 17, $WS_BORDER) $Label6 = GUICtrlCreateLabel("ITEM DESCRIPTION", 8, 32, 106, 17) $Label7 = GUICtrlCreateLabel("REQUEST", 160, 32, 56, 17) GUICtrlCreateInput("", 160, 56, 57, 21, 0, 0) GUICtrlSetBkColor(-1, 0xB9D1EA) GUICtrlCreateInput("", 160, 80, 57, 21, 0, 0) GUICtrlSetBkColor(-1, 0xB9D1EA) GUICtrlCreateInput("", 160, 104, 57, 21, 0, 0) GUICtrlSetBkColor(-1, 0xB9D1EA) GUICtrlCreateInput("", 160, 128, 57, 21, 0, 0) GUICtrlSetBkColor(-1, 0xB9D1EA) $Button1 = GUICtrlCreateButton("PREVIEW", 160, 192, 60, 25) $Button2 = GUICtrlCreateButton("RESET", 106, 192, 50, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd planning to make a simple stock request after request are done, if they click preview all 0 or blank request item will be remove and it will only display item with a request value after display ill make a button to save it as a pdf file, Is this possible in autoit? can you lead me what should I need to learn. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted March 7, 2019 Share Posted March 7, 2019 (edited) Hi @Daniza If you would like to enlarge the amount of data to store/show, you could think about a ListView, so you can have as many columns as you want, in order to store more information. In this case, you could have a 1-D array in which you store the quantity of the various items (but you have somehow to remember the item name). Again, a ListView seems to be the best control to use in this situation; you can look at here to see how this control works Edited March 7, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
TheDcoder Posted March 8, 2019 Share Posted March 8, 2019 (edited) 6 hours ago, FrancescoDiMuro said: (but you have somehow to remember the item name) Scripting.Dictionary could be useful in this case but sadly no one has made a proper wrapper for it in AutoIt as far as I know. @Daniza If you are feeling adventurous then you can install the Beta version of AutoIt and use the new Map datatype to store information (like quantity) related to an item. This should help you get started: 20 hours ago, Daniza said: save it as a pdf file You can probably use the Word UDF to make a new document and export it as a PDF file, see this function: _Word_DocExport Microsoft Word needs to be installed on the running computer of course, a free alternative might be the LibreOffice UDF that I have seen in this forum, not sure if that UDF supports export to PDF... Edited March 8, 2019 by TheDcoder FrancescoDiMuro 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Ilounah Posted March 8, 2019 Author Share Posted March 8, 2019 @TheDcoder and @FrancescoDiMuro Thanks for help , I will try this suggestion. I will reply soon as I got Progress Sorry for my Bad English. Link to comment Share on other sites More sharing options...
Skysnake Posted March 9, 2019 Share Posted March 9, 2019 @Ilounah, also look here: Skysnake Why is the snake in the sky? Link to comment Share on other sites More sharing options...
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