Turtlix21 Posted June 20, 2015 Posted June 20, 2015 (edited) Hello, I've problem with filereadline command (probably). $settings = FileOpen(@DocumentsCommonDir & "\settings.ini", 1) $ostzdj = FileReadLine($settings, 1) MsgBox(0,"",$ostzdj)Inside settings.ini in public documents I'veOstatnie zdjęcie:IMG_8092 I tried change format, change file open mode, without macro, but all time it return nothing. One strange thing what I found is when i was use MsgBox(0,"","'" & $ostzdj * "'")It return '0 but idk why Edited June 20, 2015 by Turtlix21
Jfish Posted June 20, 2015 Posted June 20, 2015 Try IniRead ( "filename", "section", "key", "default" ) instead ... Turtlix21 1 Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
Developers Jos Posted June 20, 2015 Developers Posted June 20, 2015 Likely your FileOpen() points to the wrong file, so test for success of FileOpen by testing @error.Jos Turtlix21 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Turtlix21 Posted June 20, 2015 Author Posted June 20, 2015 File was in "\\users\public" but should be in "\\users\public\documents" BTW. error returned -1And now i will use ini commands couse I know about it
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