So why would one need to recount counters in razor? What I mean is in what situation would that be useful?
I use it for mining and I have had problem smelting because razor miscounted, I guess that happens sometimes. The toruble is that if razor says that there is ore and reality that ore isn't there, macro exits. So thats what I am using it for I am unsure if it actually works.........now I try.....
When wait timers expire they terminate the macro. If you have it on loop, it'll go back to the top execution line I think. It sounds like you must be using a non-looped routine and its getting hung up on the wait timer and exiting out from that. If this is the case, try figuring out what you need to do keep that wait timer from getting hung.
also sometimes its best to replace a "wait for target" "wait for gump" with just a "Pause 1.00sec" wait. I have many macros where doing that cleared up the flow of execution
That's exactly what I am doing since I have trouble calling other macros, which I would prefer. It hangs up macro (exits) when I actually have no iron but system believes that it has iron, then it tries to melt and waits for target and when target never comes it exits. Recounting actually fixed the issue. I do trouble though calling other macros inside my main macro. It seems to exit after calling sub-macro. But maybe you have an idea for what I could be doing wrong here? That would help alot! Since some of my macro-scripts are 900-1000 lines after I have inserted all my check and bla bla
hmm.. are you sure you are recalling back into main macro from the sub macro. You have to re-execute the main macro by using the hotkeys -> macros -> execute function while recording the sub macro. You can spaghetti code like this but are you sure you're doing this on both ends? Both main AND sub?
I believe I do, but will it return from sub-macro and if you had something after your hiding (drums and whatever), would it continue from here, when submacro has finished executing? My point is can I make "modules" and when all the modules are done can I put them all together in a main macro where I call submacros inside?
No, if you call back from a sub to a main it will still start with the top line every time in the main. Razor is not robust enough to call embedded macros like they're methods or functions. The execution flows sequentially so you have to spaghetti code and plan ahead with checks that determine when said subs will execute.
I highly suggest you implement at least some recursion in your macros. Razor is at its most powerful when you incorporate loops, fors, etc.