yousefsamy Posted June 22, 2014 Share Posted June 22, 2014 i have done all this note but i cant make a relation between FileSaveDialog or FileOpenDialog And inputBox ?? i mean i want to view the contain of the txt files in my note or save what i type in it ... what should i do ?? Image of this note And my source here: expandcollapse popup#include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> $Form1_1 = GUICreate("Note V1.1", 608, 446, 190, 74) $MenuItem1 = GUICtrlCreateMenu("&File") $open = GUICtrlCreateMenuItem("Open"&@TAB&"", $MenuItem1) $save = GUICtrlCreateMenuItem("Save", $MenuItem1) $exit = GUICtrlCreateMenuItem("Exit"&@TAB&"", $MenuItem1) $MenuItem2 = GUICtrlCreateMenu("&About") $Designer = GUICtrlCreateMenuItem("Designer", $MenuItem2) $MenuItem3 = GUICtrlCreateMenu("options") $hide = GUICtrlCreateMenuItem("Make it Hidden", $MenuItem3) $Show = GUICtrlCreateMenuItem("Make it Showen", $MenuItem3) $Input1 = GUICtrlCreateInput("Hello Dear...", 0, 0, 606, 423) GUICtrlSetFont(-1, 10, 400, 0, "Neo Tech Alt Medium") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $open FileOpenDialog("File Open", @DesktopDir , " Text Files (*.txt)" ) Case $save FileSaveDialog("File Save", @DesktopDir , " Text Files (*.txt)" ) Case $exit Exit Case $Designer MsgBox(0,"Note V1.1","Welcome Dear,, Designed By.Yousef-Samy",HWnd) _IECreate("https://www.facebook.com/yousef.samy.2013") Case $Show WinSetTrans("Note V1.1","",250) Case $hide WinSetTrans("Note V1.1","",150) EndSwitch WEnd Link to comment Share on other sites More sharing options...
orbs Posted June 22, 2014 Share Posted June 22, 2014 hello yousefsamy, welcome to AutoIt forum! the same way GUICtrlCreateInput returns a control ID you can manipulate later, so do FileOpenDialog and FileSaveDialog - they return a file name you can use later. however you call these functions without accepting their return... check these functions carefully in the helpfile. then, you need to use the control ID of the input control to read the data in the control, so you can save the data to a file. when you read the data from a file, you use the control ID to set the data in the control. check out these functions in the help file: GUICtrlRead() GUICtrlSetData() FileWrite() FileRead() Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 hello yousefsamy, welcome to AutoIt forum! the same way GUICtrlCreateInput returns a control ID you can manipulate later, so do FileOpenDialog and FileSaveDialog - they return a file name you can use later. however you call these functions without accepting their return... check these functions carefully in the helpfile. then, you need to use the control ID of the input control to read the data in the control, so you can save the data to a file. when you read the data from a file, you use the control ID to set the data in the control. check out these functions in the help file: GUICtrlRead() GUICtrlSetData() FileWrite() FileRead() oh sry this is first time to me (i dont understand i want you to correct my mistakes in my source this is my way to learn ) and thnx for your effort Link to comment Share on other sites More sharing options...
iamtheky Posted June 22, 2014 Share Posted June 22, 2014 There are only about a thousand different directions you can go with "your source" since it really doesnt do anything at all. So I would start over and take care to learn to the functions Orbs recommended. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 (edited) There are only about a thousand different directions you can go with "your source" since it really doesnt do anything at all. So I would start over and take care to learn to the functions Orbs recommended. oh i know it's nothing really but the problem with me is how to make this relation when i choose txt file , show it in input box and the same with save ?? i need the code or way ? i mean i want the way of using Edited June 22, 2014 by yousefsamy Link to comment Share on other sites More sharing options...
Moderators Solution Melba23 Posted June 22, 2014 Moderators Solution Share Posted June 22, 2014 yousefsamy,Welcome to the AutoIt forum. Take a look at this script and see if you can follow it: expandcollapse popup#include <GUIConstantsEx.au3> #include <FileConstants.au3> #include <MsgBoxConstants.au3> $Form1_1 = GUICreate("Note V1.1", 608, 446, 190, 74) $MenuItem1 = GUICtrlCreateMenu("&File") $open = GUICtrlCreateMenuItem("Open", $MenuItem1) $save = GUICtrlCreateMenuItem("Save", $MenuItem1) $exit = GUICtrlCreateMenuItem("Exit", $MenuItem1) $Edit1 = GUICtrlCreateEdit("Hello Dear...", 0, 0, 606, 423) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $open ; Get file name to open $sFile = FileOpenDialog("File Open", @DesktopDir , " Text Files (*.txt)" ) If @error Then MsgBox($MB_SYSTEMMODAL, "Error", "File open failed") Else ; Open file and put content into edit GUICtrlSetData($Edit1, FileRead($sFile)) EndIf Case $save ; Get file name for save $sFile = FileSaveDialog("File Open", @DesktopDir , " Text Files (*.txt)" ) If @error Then MsgBox($MB_SYSTEMMODAL, "Error", "File save failed") Else ; Open file and overwrite existing content $hFile = FileOpen($sFile, $FO_OVERWRITE) ; Put contents of edit into file FileWrite($hFile, GUICtrlRead($Edit1)) ; Close file FileClose($hFile) EndIf Case $exit Exit EndSwitch WEndPlease ask if you have any questions. M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 yousefsamy, Welcome to the AutoIt forum. Take a look at this script and see if you can follow it: expandcollapse popup#include <GUIConstantsEx.au3> #include <FileConstants.au3> #include <MsgBoxConstants.au3> $Form1_1 = GUICreate("Note V1.1", 608, 446, 190, 74) $MenuItem1 = GUICtrlCreateMenu("&File") $open = GUICtrlCreateMenuItem("Open", $MenuItem1) $save = GUICtrlCreateMenuItem("Save", $MenuItem1) $exit = GUICtrlCreateMenuItem("Exit", $MenuItem1) $Edit1 = GUICtrlCreateEdit("Hello Dear...", 0, 0, 606, 423) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $open ; Get file name to open $sFile = FileOpenDialog("File Open", @DesktopDir , " Text Files (*.txt)" ) If @error Then MsgBox($MB_SYSTEMMODAL, "Error", "File open failed") Else ; Open file and put content into edit GUICtrlSetData($Edit1, FileRead($sFile)) EndIf Case $save ; Get file name for save $sFile = FileSaveDialog("File Open", @DesktopDir , " Text Files (*.txt)" ) If @error Then MsgBox($MB_SYSTEMMODAL, "Error", "File save failed") Else ; Open file and overwrite existing content $hFile = FileOpen($sFile, $FO_OVERWRITE) ; Put contents of edit into file FileWrite($hFile, GUICtrlRead($Edit1)) ; Close file FileClose($hFile) EndIf Case $exit Exit EndSwitch WEnd Please ask if you have any questions. M23 Hello sir can i talk with you on FB or Yahoo ?? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2014 Moderators Share Posted June 22, 2014 yousefsamy,No. The forum exists so that everyone can learn so just post here - and do not worry if the questions appear simple, we were all beginners once. M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 okay sir yousefsamy, No. The forum exists so that everyone can learn so just post here - and do not worry if the questions appear simple, we were all beginners once. M23 but what is the benefit of this line ?? $hFile = FileOpen($sFile, $FO_OVERWRITE) i can do the save operation without this line right ?? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2014 Moderators Share Posted June 22, 2014 yousefsamy,You can indeed replace that entire section as follows:Else ; Put contents of edit into file FileWrite($sFile, GUICtrlRead($Edit1)) EndIfbut try it and see what happens. By opening the file with the $FO_OVERWRITE flag you delete the previous contents - if you do not do this you just add to the existing content, which is probably not what you want. M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 yea It's Right and Thnx alot .. if i want help how to communicate with you ?? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2014 Moderators Share Posted June 22, 2014 yousefsamy,Just post in the forum - someone will always help if you show the effort (as you did here). As I pointed out earlier, the whole ethos of the forum is that everyone can see and learn so we do not encourage private coaching. M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 (edited) Sir Moderators, you are right .. i have one more question now in ur source [Enter] Button do his job and mine not the same ?? why ? Edited June 22, 2014 by yousefsamy Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2014 Moderators Share Posted June 22, 2014 yousefsamy,I can only assume that you are referring to the return value from the FileOpen/SaveDialog functions. Note how I save the return value in a variable to use later. As you appear to be a complete beginner to coding (and no problem there as we all were at one point) might I suggest reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) as this will help you enormously. You should also look at this excellent tutorial - you will find other tutorials in the Wiki (the link is at the top of the page). M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 yousefsamy, I can only assume that you are referring to the return value from the FileOpen/SaveDialog functions. Note how I save the return value in a variable to use later. As you appear to be a complete beginner to coding (and no problem there as we all were at one point) might I suggest reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) as this will help you enormously. You should also look at this excellent tutorial - you will find other tutorials in the Wiki (the link is at the top of the page). M23 okay i work hard ... #include<> <<== this code have many ways type but i dont understand the benefit of it :/ Link to comment Share on other sites More sharing options...
iamtheky Posted June 22, 2014 Share Posted June 22, 2014 set your cursor there, hit alt+i, and go read what you just "included" ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2014 Moderators Share Posted June 22, 2014 yousefsamy, this code have many ways typeOnly 2. This directive tells AutoIt to add the contents of the referenced file at that point in the script - that way you can add code libraries to your script very easily. The 2 ways to use it are:; Reference an include file in the main AutoIt "Include" folder, if it is not found then look in the same folder as the script: #include <Filename.au3> ; Reference an include file in the same folder as the script, if it is not found then look in the main AutoIt "Include" folder: #include "Filename.au3"Use the Help file a lot - it is a really useful aid to learning about AutoIt. M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 oh yea .. but i mean there is #include<message.au3> ,#include<file.au3> <etc...> ... how can i know the usage of them ? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2014 Moderators Share Posted June 22, 2014 yousefsamy,If you look at the Help file (have you noticed how that is a constant refrain?) you will see that many of the functions and constants referenced are contained within libraries which need to be #included in your script. Here is a simple example:Global $aLines _FileReadToArray(@ScriptFullPath, $aLines) _ArrayDisplay($aLines)If you run this you will see something like the following appear in the SciTE console:>"M:\Program\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "M:\Program\Au3 Scripts\fred4.au3" /UserParams +>15:47:20 Starting AutoIt3Wrapper v.2.2.0.3 SciTE v.3.4.3.0 Keyboard:00000809 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86 Environment(Language:0409) +> SciTEDir => M:\Program\AutoIt3\SciTE UserDir => C:\Users\Melba23\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Melba23\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.13.0) from:M:\Program\AutoIt3 input:M:\Program\Au3 Scripts\fred4.au3 "M:\Program\Au3 Scripts\fred4.au3"(1,43) : error: _FileReadToArray(): undefined function. _FileReadToArray(@ScriptFullPath, $aLines) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "M:\Program\Au3 Scripts\fred4.au3"(2,22) : error: _ArrayDisplay(): undefined function. _ArrayDisplay($aLines) ~~~~~~~~~~~~~~~~~~~~~^ M:\Program\Au3 Scripts\fred4.au3 - 2 error(s), 0 warning(s) !>15:47:21 AU3Check ended. Press F4 to jump to next error.rc:2 +>15:47:21 AutoIt3Wrapper Finished. >Exit code: 2 Time: 0.9997As you can see, AutoIt tells you that the 2 functions are "undefined" - you need to #include the relevant libraries - like this:#include <File.au3> #include <Array.au3> Global $aLines _FileReadToArray(@ScriptFullPath, $aLines) _ArrayDisplay($aLinesNow the script will run as the 2 functions are available in the libraries which you have #included in your script. Clearer now? M23 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...
yousefsamy Posted June 22, 2014 Author Share Posted June 22, 2014 yousefsamy, If you look at the Help file (have you noticed how that is a constant refrain?) you will see that many of the functions and constants referenced are contained within libraries which need to be #included in your script. Here is a simple example: Global $aLines _FileReadToArray(@ScriptFullPath, $aLines) _ArrayDisplay($aLines) If you run this you will see something like the following appear in the SciTE console:>"M:\Program\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "M:\Program\Au3 Scripts\fred4.au3" /UserParams +>15:47:20 Starting AutoIt3Wrapper v.2.2.0.3 SciTE v.3.4.3.0 Keyboard:00000809 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86 Environment(Language:0409) +> SciTEDir => M:\Program\AutoIt3\SciTE UserDir => C:\Users\Melba23\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Melba23\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.13.0) from:M:\Program\AutoIt3 input:M:\Program\Au3 Scripts\fred4.au3 "M:\Program\Au3 Scripts\fred4.au3"(1,43) : error: _FileReadToArray(): undefined function. _FileReadToArray(@ScriptFullPath, $aLines) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "M:\Program\Au3 Scripts\fred4.au3"(2,22) : error: _ArrayDisplay(): undefined function. _ArrayDisplay($aLines) ~~~~~~~~~~~~~~~~~~~~~^ M:\Program\Au3 Scripts\fred4.au3 - 2 error(s), 0 warning(s) !>15:47:21 AU3Check ended. Press F4 to jump to next error.rc:2 +>15:47:21 AutoIt3Wrapper Finished. >Exit code: 2 Time: 0.9997 As you can see, AutoIt tells you that the 2 functions are "undefined" - you need to #include the relevant libraries - like this:#include <File.au3> #include <Array.au3> Global $aLines _FileReadToArray(@ScriptFullPath, $aLines) _ArrayDisplay($aLines Now the script will run as the 2 functions are available in the libraries which you have #included in your script. Clearer now? M23 Yea thnxxxx .. i cant post any more today tomorrow if i have any problem i will post okay Sir .. you are a nice man 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