*URGENT - getselectionbounds not working inside a while loop

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

*URGENT - getselectionbounds not working inside a while loop

rrmarino
Hello All,

I apologize for writing urgent on the subject, but really is :(

I have a macro that I want to loop indefinitely, therefore I put a "while (1) { " in the beginning and a "}" in the end.

My macro has a getSelectionBounds(x,y,width,height) and on the second loop, I get an error message: " '[' expected in line 43. getSelectionBounds (x<,>y,width,height);

If I take that command out of my program, it works perfectly. If I take the "while (1)" it also works. I have checked for mismatching {s and }s and everything is alright.

Any clue? Or any other way of looping my program indefinitely? Unfortunately I can't post the code here, it is in other computer.

Regards,

Rodrigo
PUC RIO BRAZIL
Reply | Threaded
Open this post in threaded view
|

Re: *URGENT - getselectionbounds not working inside a while loop

rrmarino
I have found a solution, not really elegant.. but :)

if I add random values to x, y, width, height on the beginning of the loop, the program flow is ok.

:)