price98 Posted August 28, 2018 Share Posted August 28, 2018 hi, i am new to autoit. I have to create search engine and database. Suppose , In the database we have to upload list of files from desktop and If i search for certain file, i have to select it and download the file. Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 28, 2018 Moderators Share Posted August 28, 2018 price98, Welcome to the AutoIt forums. However, we do not just produce code for you - we help you get your code working properly. Think of the old saying: "Give a man a fish, you feed him for a day; give a man a net and you feed him forever". We try to be net makers and repairers, not fishmongers. So I suggest you look at the examples in the Help file for GUICreate, GUICtrlCreateButton, GUICtrlCreateInput & GUICtrlCreateList to get your GUI started - and _FileListToArray to get the files on your desktop. Have a go at producing something yourself and then post it (see here how to do it) - even if it does not do what you require. We can then start helping you to get it working as you wish. M23 Fin, price98 and Starstar 3 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted August 28, 2018 Share Posted August 28, 2018 @price98 To make GUI easier, take a look at Koda Form Designer price98 1 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...
AutoBert Posted August 29, 2018 Share Posted August 29, 2018 22 hours ago, FrancescoDiMuro said: To make GUI easier, take a look at Koda Form Designer is much better, if you don't like to create in editor. @price98: Must you download from a ftp-server? Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted August 29, 2018 Share Posted August 29, 2018 15 minutes ago, AutoBert said: is much better, if you don't like to create in editor. I think that Koda is handy even if you are creating a sample GUI. But those are tastes 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...
Zedna Posted August 30, 2018 Share Posted August 30, 2018 (edited) As about database engine: look at SQLite. It's part of standard include files of AutoIt, so HelpFile will be your friend ... :-) Edited August 30, 2018 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
price98 Posted August 30, 2018 Author Share Posted August 30, 2018 (edited) 13 hours ago, AutoBert said: server i am using koda form designer. I did not know how to upload files from folder and download the selected files. Edited August 30, 2018 by price98 Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted August 30, 2018 Share Posted August 30, 2018 Just now, price98 said: I did not know how to upload files from folder FileOpenDialog(), _FileListToArray(), _FileListToArrayRec(). 1 minute ago, price98 said: and download the selected files It depends from where you are trying to upload/download files. Provide more information, so we could point you in the right direction 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...
Zedna Posted August 30, 2018 Share Posted August 30, 2018 He probably means creating Listview items by filenames from directory and later getting file names from selected rows in ListView Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
price98 Posted August 30, 2018 Author Share Posted August 30, 2018 FrancescoDiMuro I have harddisk with list of files and connected to server , and i have to upload files from server to database and download it in autoit. Prince98 Link to comment Share on other sites More sharing options...
AutoBert Posted August 30, 2018 Share Posted August 30, 2018 3 minutes ago, price98 said: I have harddisk with list of files and connected to server which server, SQL-Server, FTP-Server, etc.? Link to comment Share on other sites More sharing options...
price98 Posted August 30, 2018 Author Share Posted August 30, 2018 (edited) sorry for wrong reply. Its not SQL server or FTP. Its local server Edited September 3, 2018 by price98 Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted August 30, 2018 Share Posted August 30, 2018 @price98 Then you need to look at _FileListToArray(), and _FTP* functions in the Help file 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...
price98 Posted September 3, 2018 Author Share Posted September 3, 2018 sorry for wrong reply. Its not SQL server or FTP. Its local server Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 3, 2018 Share Posted September 3, 2018 @price98 So, what did you try by now? 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...
price98 Posted September 3, 2018 Author Share Posted September 3, 2018 I am in starting stage. I did below one #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= Global $Pannel = GUICreate("Pannel", 615, 438, 192, 124) $File = GUICtrlCreateMenu("File") $Open = GUICtrlCreateMenuItem("Open"&@TAB&"Ctrl+O", $File) $Save = GUICtrlCreateMenuItem("Save"&@TAB&"Ctrl+S", $File) $Group1 = GUICtrlCreateGroup("Group1", 8, 40, 273, 169) Global $UserInput = GUICtrlCreateEdit("", 16, 56, 185, 89) Global $SaveButton = GUICtrlCreateButton("Save", 16, 160, 75, 25) Global $DefaultButton = GUICtrlCreateButton("Default", 120, 160, 75, 25) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group2 = GUICtrlCreateGroup("Group2", 8, 240, 273, 137) GUICtrlSetBkColor(-1, 0x0066CC) $Downloads = GUICtrlCreateCombo("Downloads", 24, 296, 161, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUICtrlCreateGroup("", -99, -99, 1, 1) Dim $Pannel_AccelTable[2][2] = [["^o", $Open],["^s", $Save]] GUISetAccelerators($Pannel_AccelTable) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Downloads $DatafromFile = GUICtrlRead($File) $OpenLocation = FileOpenDialog("Open File", @ScriptDir, "Text Files ('*')") FileWrite($OpenLocation, $DatafromFile) Case $UserInput = GUICtrlRead($UserInput) $SaveLocation = FileSaveDialog("Save File", @ScriptDir, "Text Files ('*')") FileWrite($SaveLocation, $UserInput) Case $DefaultButton GUICtrlSetData($UserInput,'This is default information') EndSwitch WEnd Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 3, 2018 Share Posted September 3, 2018 @price98 What do you need now? 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...
price98 Posted September 3, 2018 Author Share Posted September 3, 2018 I need .......how to upload the files to server and download it Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 3, 2018 Share Posted September 3, 2018 @price98 Sorry for the continuous asking, but I'm not understanding about what server are you trying to upload files to. How is this server structured? 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...
price98 Posted September 3, 2018 Author Share Posted September 3, 2018 @FrancescoDiMuro At the starting of this topic discussion. I uploaded a figure .In a hard disk, I have list of files .I will connect hard disk to system. I have to upload the files to database (local server). After that, I have to search for file and select that file and download it Link to comment Share on other sites More sharing options...
Recommended Posts