Share this post

Link to post

Share on other sites

Melba23 2,898

Melba23 2,898

When you post here it always helps if you include the code you have been working on to try and solve your problem. Having some code to work on is a great help - and no-one here is too keen to help the "code it for me" brigade.

Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here. There are even video tutorials on YouTube if you prefer watching to reading.

But as it can be difficult to get started, take a look at this and see if it is close to your needs:

I think the comments are clear enough, but do ask if there is anything you do not understand.

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

Share this post

Link to post

Share on other sites

Sjov2200 0

Sjov2200 0

When you post here it always helps if you include the code you have been working on to try and solve your problem. Having some code to work on is a great help - and no-one here is too keen to help the "code it for me" brigade.

Reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will help you enormously. You should also look at the excellent tutorials that you will find here and here. There are even video tutorials on YouTube if you prefer watching to reading.

But as it can be difficult to get started, take a look at this and see if it is close to your needs:

I think the comments are clear enough, but do ask if there is anything you do not understand.

M23

Hey! Thx man... I will try it out as soon as I get home :-).

Ye' sorry for not posting the things that I've tried, but I was'nt really anywhere near a solution, so I think posting would have confused matters more then benefitted ^^.

I did try out some examples under help, but I found it hard to grasp the function of the different Gui ctrl's ...

Share this post

Link to post

Share on other sites

Melba23 2,898

Melba23 2,898

Delighted I could help. Posts like that really brighten up a cold autumn day.

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

Share this post

Link to post

Share on other sites

Sjov2200 0

Sjov2200 0

Delighted I could help. Posts like that really brighten up a cold autumn day.

M23

So, my proggie works fine, listbox updates are working, I have added a column to the array and the listbox no problem there.

My next development is saving / loading the arrays and I found an earlier post using the Save_Array command, I will be looking into that.

I was trying my own version with loops, comma seperation and fileread and it works fine. Only sometimes Filegetsize returns the wrong size of the file?!? It happens when I load once and then I load the same file. Filegetsize returns the wrong size and my loop is out of bounds of course...

Share this post

Link to post

Share on other sites

Melba23 2,898

Melba23 2,898

Seriously, if you do not post the code, how are we expected to offer suggestions on what might be wrong. My crystal ball is having an off-day!

However, the best way to save/load arrays into/from files is to use the _FileReadToArray and _FileWriteFromArray functions. They are easy to use and do all the work for you! Just look them up in the Help file - then you can forget about FileGetSize etc.

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

Share this post

Link to post

Share on other sites

Sjov2200 0

Sjov2200 0

Seriously, if you do not post the code, how are we expected to offer suggestions on what might be wrong. My crystal ball is having an off-day!

However, the best way to save/load arrays into/from files is to use the _FileReadToArray and _FileWriteFromArray functions. They are easy to use and do all the work for you! Just look them up in the Help file - then you can forget about FileGetSize etc.

M23

Nah :-) I like to get pointers and figuring out the rest myself.

So, I have succes with _FileReadToArray & _FileWriteFromArray makes my code much cleaner too (not so many variables needed anymore).