Put your two commands in an alias then have the timer call the alias.

//timer $+ %timernr 1 1 writestuff

alias writestuff {
writeini filename.ini %id %res 1
writeini filename.ini %id status 0

%timernr would become part of the timers name with the $+ there, so I added an extra '1' in there.

Those who live by the sword get shot by those who don't.