Posted 23 October 2014 - 09:41 AM
warning, the link leads to fully working code, but as a comparison tool:
http://pastebin.com/F4AeRpvA
if i change line 71 and 72 to this:
the setstr after disk is read is completely bypassed (line 97 in link), however if i change the code above to the code in the link everything works fine, so my next question, how do i consecutively use pullEvent without code being bypassed mysteriously?
this is for a one time configuration of a pc
if anyone has any ideas that would be appreciated, right now its doing my head in so
thanks in advance :D/> :thumbsup:
edit: if im doing something wrong, then i also face the same issue in a larger project of mine o.0
http://pastebin.com/F4AeRpvA
if i change line 71 and 72 to this:
event={os.pullevent}
print("by default, 1:true or 2:false? press desired number")
if event[1]=="key" then
if event[2]==2 then
state=true
setstr(config,state)
elseif event[2]==3 then
state=false
setstr(config,state)
end
end
the setstr after disk is read is completely bypassed (line 97 in link), however if i change the code above to the code in the link everything works fine, so my next question, how do i consecutively use pullEvent without code being bypassed mysteriously?
this is for a one time configuration of a pc
if anyone has any ideas that would be appreciated, right now its doing my head in so
thanks in advance :D/> :thumbsup:
edit: if im doing something wrong, then i also face the same issue in a larger project of mine o.0
Edited on 23 October 2014 - 08:13 AM