mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
The second version of your script is very similar to what I have. Including how you did the $submenu() stuff. I just loop through making my popup text file a bit differently and have it organized another way.

Code:
on *:start: hw_update
on *:connect: hw_update
on *:disconnect: .timer -im 1 100 hw_update
on *:load: hw_update
on *:unload:{ .unload -rs $scriptdirhide_windows.txt | .remove $scriptdirhide_windows.txt }

That's what I have for updating it, that does a pretty good job. Only thing those don't do it update when you open a status and don't connect.

I guess I'll just leave it at that for now. I just prefer making scripts as bullet proof as possible


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
For that you can use:

Code:
alias server { 
  server $1-
  if (-*n* iswm $1) || (-*z* iswm $1) { hw_update }
}

Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
Thanks for that.

I had a genius idea but just like the on open/close it doesn't really work that well. I though why not update it when you right click. But on hotlink only works when clicking over text and there isn't a general on click type command.


http://scripting.pball.win
My personal site with some scripts I've released.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
This is possible too, although I won't say it's clean:

Code:
on *:start:{ .timer -h 0 50 rc_check }
alias rc_check {
  if ($mouse.key & 16) && (!%floodprotection) { 
    hw_update
    inc -u5 %floodprotection
  }
}


I haven't tried it but I doubt the menu will update prior to it opening. I suspect you will have to right click, then right click again to see the updated menu.

Your best bet would be to use a small custom dll rather than all of these hacks.

Btw, the reason for the flood protection in the above script is because the script catches about 6 right clicks in the time it takes a menu to open laugh

Page 2 of 2 1 2

Link Copied to Clipboard