CodyBarrett Posted November 14, 2008 Share Posted November 14, 2008 (edited) i am having trouble when i try to load an ini into an editbox in an GUI i have tried $Ldbtn = GUICtrlCreateButton("LOAD",100,360,100,20) While 1 $nMsg = GUIGetMsg() Switch $nMsg case $Ldbtn fileopen("guild.ini") EndSwitch Wend do i have to use a mode at the end of the file open OR do i have to use variables? can anyone help me? *i want to load a section in an .INI and have it posted in a GUI edit box\input box* Edited November 14, 2008 by bob00037 [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
BrettF Posted November 14, 2008 Share Posted November 14, 2008 Hi, There was no need for your other topic. Please see my response there. I've had a look at your code, and I have a question... Where exactly are you setting the data into your edit box? For that have a look at GUICtrlSetData(). Also take a look at the INI* functions. If you wish to read it just as a text file, look at FileRead. 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...
CodyBarrett Posted November 14, 2008 Author Share Posted November 14, 2008 sorry 'bout the useless post i made in GUIhelp... anyway i got it so the user can save what they type into input\edit box and now im working on (after program close and restart) loading what they have saved and setting it into the editbox\input so it can be edited and saved again i will try your previous suggestions *ini help doesnt help much*, *fileread doesnt help much but ill look into it again* [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
CodyBarrett Posted November 14, 2008 Author Share Posted November 14, 2008 ok i tried GUIctrlsetdata... and when i set a variable i had previously set to read a section of an .ini file it only reads a numeric value ex.(9)... any ideas? [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
EvilEd Posted November 14, 2008 Share Posted November 14, 2008 sorry 'bout the useless post i made in GUIhelp... anyway i got it so the user can save what they type into input\edit box and now im working on (after program close and restart) loading what they have saved and setting it into the editbox\input so it can be edited and saved again i will try your previous suggestions *ini help doesnt help much*, *fileread doesnt help much but ill look into it again*Could you show us the code you are having problems with? How you read it depends on how you wrote it. Link to comment Share on other sites More sharing options...
CodyBarrett Posted November 14, 2008 Author Share Posted November 14, 2008 S*** guys i actually JUST figured it out now it was a combination of GUICTRLSETDATA + a few variables + INIREAD thanks guys lol [sOLVED] [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] 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