mIRC Home    About    Download    Register    News    Help

Print Thread
#67356 10/01/04 08:27 PM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
How can I write an ALIAS, that works, when I push the key combination "Alt + S" in a specified Dialog?


Mathias

#67357 11/01/04 03:59 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
How about this.....

Code:
 
; place this code in your script.ini file or remove the 'alias' before the F2 and put it in your aliases.ini
alias F2 {
  if ($dialog(DialogNameHere)) {
    echo -s Dialog is Open
  }
  else {
    echo -s Dialog is Closed
  }
}
 


I just threw this together and should echo in the status window if your dialog is open, "Dialog is Open" and vise versa....
I hope this is what you meant or something close to it....

I substituted the F2 for example to replace what you specified so that the DCC Send dialog wasn't ignored....anyways I hope this pretty close...

if not i apologize for the misunderstanding.

And this concludes my brief appearance online yet again...


#67358 11/01/04 06:45 PM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
All right, but I mean a script for a shortcut "Alt + S", not for F2 or so. smile

Mathias

#67359 11/01/04 08:53 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Make button with &S text on it (and hide it, though not sure if it'll work then), then use the buttons event to capture the keypress...


Code:
//if ( khaled isgod ) echo yes | else echo no
#67360 12/01/04 03:19 PM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
Yes, good idea! I do not think in this way, but it's logic. Thx smile

Mathias


Link Copied to Clipboard