mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2003
Posts: 29
2
2big Offline OP
Ameglian cow
OP Offline
Ameglian cow
2
Joined: Aug 2003
Posts: 29
I've written a script that uses many timers on start, (it's a picwin script) and it sort of takes a second to load, then it plays the end of what I want the animation of the picwin to be. Is there a different way to use timers to prevent that, or maybe a way to preload?

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
maybe try get the stuff you want to that win from a text file? thats how i made my picture windows..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Aug 2003
Posts: 29
2
2big Offline OP
Ameglian cow
OP Offline
Ameglian cow
2
Joined: Aug 2003
Posts: 29
How so? It also has to do with I have about 10 loops going at once...... @_@

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
window -l +s @Startup 200 150 315 51 Arial bold 18
window -a @Startup
rline @Startup 1 1,15         Loading removed!                                      
rline @Startup 2 14,15   1[14,15||||||                              1,15]14,15                           
rline @Startup 2 14,15   1[14,15||||||||||||                           1,15]14,15                           
rline @Startup 2 14,15   1[14,15||||||||||||||||||                      1,15]14,15                        
rline @Startup 2 14,15   1[14,15||||||||||||||||||||||||                 1,15]14,15                        
rline @Startup 1 4,15         Loading removed!                                      
rline @Startup 2 14,15   1[14,15||||||||||||||||||||||||||||||         1,15]14,15                        
rline @Startup 2 14,15   1[14,15||||||||||||||||||||||||||||||||||||        1,15]14,15                        
rline @Startup 2 14,15   1[14,15||||||||||||||||||||||||||||||||||||||||||            1,15]14,15                        
rline @Startup 2 14,15   1[14,15||||||||||||||||||||||||||||||||||||||||||||||||        1,15]14,15                        
rline @Startup 2 14,15   1[14,15||||||||||||||||||||||||||||||||||||||||||||||||||||||      1,15]14,15                        
rline @Startup 1 1,15         Loading removed!                                      

this is how i made it.. and that loads allot of lines.. you only see a fev of them here.. and thats done at startup.. maybe you can make somthing out of it? smile

i dont even have that file loaded, i load it when i start the script.. and unloading it when its done.. "load -rs file.mrc"


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Can you consolidate your 10 different animation routines to a single timer, so that when 2 or more animations occur at the same time they can share the same draw (PAINT) routine?

If you're using /draw commands for your animation, use the -n flag up until the final /draw command used (you can also /drawdot @window with no other parameters). This significantly speeds up your routine as it only has to issue a single WM_PAINT (the command mIRC sends to Windows telling it to update the window).

I hope this makes some sense.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Aug 2003
Posts: 29
2
2big Offline OP
Ameglian cow
OP Offline
Ameglian cow
2
Joined: Aug 2003
Posts: 29
Well, that isn't really possible in this case, because I'm running about 11 loops that make changes in 11 different places, along with 2 timers in each loop. The end of the loop is what causes it to change, so it's constantly changing. Thus, I can't have more than one draw command going in one loop.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
i dont even have that file loaded, i load it when i start the script.. and unloading it when its done.. "load -rs file.mrc"
Why not put all that into a startup.txt file and call /.play -sc startup.txt [color:red]0[/color] from "on start", adjust the timing (0) to suit.


Link Copied to Clipboard