Jump to content

i want to complete my simple note (first time to me)


Go to solution Solved by Melba23,

Recommended Posts

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


EMZQQp.jpg

And 

my source here:

#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

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

 

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

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

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 :D

Edited by yousefsamy
Link to comment
Share on other sites

  • Moderators
  • Solution

yousefsamy,

Welcome to the AutoIt forum. :)

Take a look at this script and see if you can follow it: :)

#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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

yousefsamy,

Welcome to the AutoIt forum. :)

Take a look at this script and see if you can follow it: :)

#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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

  • Moderators

yousefsamy,

You can indeed replace that entire section as follows:

Else
    ; Put contents of edit into file
    FileWrite($sFile, GUICtrlRead($Edit1))
EndIf
but try it and see what happens. :blink:

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

set your cursor there, hit alt+i, and go read what you just "included"

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

  • Moderators

yousefsamy,

 

this code have many ways type

Only 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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...