dazza Posted February 10, 2009 Share Posted February 10, 2009 A file has this structure: (for example - and I know my footy knowledge is erroneous) ARSENAL#KEEPER#FRENCH#saving94#ALMUNIA ARSENAL#DEFENDER#FRENCH#tackling98#TOURE ARSENAL#DEFENDER#FRENCH#tackling98#EBOUE ARSENAL#DEFENDER#FRENCH#tackling94#CLICHY ARSENAL#MIDFIELD#SPANISH#passing90#FABREGAS ARSENAL#MIDFIELD#ENGLISH#shooting56#BENTNER MAN UTD#KEEPER#DUTCH#saving98#VAN DER SAAR MAN UTD#DEFENDER#ENGLISH#Tackling78#O'SHEA MAN UTD#FORWARD#ARGENTINIAN#shooting87#TEVEZ I can split it by line and element, but how do I get this data in a treeview? (with $TVS_HASBUTTONS) And what is the msg$ (from GUIGetMsg) to check which buttons have been pressed? Many thanks. Link to comment Share on other sites More sharing options...
BrettF Posted February 10, 2009 Share Posted February 10, 2009 That depends how you want to display it in a treeview. Create a sample script, that shows output and we can see what we can do... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
dazza Posted February 10, 2009 Author Share Posted February 10, 2009 That depends how you want to display it in a treeview. Create a sample script, that shows output and we can see what we can do...Cheers,BrettUrr. Standard+Arsenal <click on this to open it+Man Utd-Arsenal + KEEPER + DEFENDER <click on this to open it + MIDFIELD+Man Utd-Arsenal + KEEPER - DEFENDER + FRENCH + SPANISH + ENGLISH + MIDFIELD+ Man UtdI hope this suffices. Anything close to this format will do; I should be able to alter it once it's made. Link to comment Share on other sites More sharing options...
BrettF Posted February 10, 2009 Share Posted February 10, 2009 I said script, not +/- thingo. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
dazza Posted February 10, 2009 Author Share Posted February 10, 2009 $each_line = StringSplit($data_file, chr(13)) For $f = 1 to $each_line[0] ;eg ARSENAL#KEEPER#FRENCH#saving94#ALMUNIA $datum = StringSplit($each_line[$f], "#") ; so $datum[1]="ARSENAL", [2]="KEEPER", [3]="FRENCH", [4]="saving94", [5]="ALMUNIA" ;now comes the bit I cannot do ;PUT ELEMENTS INTO A TREE VIEW Next Link to comment Share on other sites More sharing options...
ReFran Posted February 10, 2009 Share Posted February 10, 2009 For a general overview,you may have a look at this: http://www.autoitscript.com/forum/index.php?showtopic=84119or that: http://www.autoitscript.com/forum/index.ph...amp;hl=ReinhardHTH, Reinhard Link to comment Share on other sites More sharing options...
dazza Posted February 13, 2009 Author Share Posted February 13, 2009 Figured out, done and dusted. 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