mIRC Home    About    Download    Register    News    Help

Print Thread
#93311 08/08/04 08:10 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
I don't think this is very useful but is there anyway if i had this code:

f1 return nick identify <pass>

able to be activated ?
or does that require a dll ?

#93312 08/08/04 08:29 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
1. Don't use F1, it is assigned by default to open help files in most Windows programmes and a script will over ride this (in mIRC anyway), though the point is you'll lose the functionality.

2. F2 ns identify <nickname> <password> will work (just alter the command itself to suit your network's services) but I don't recommend storing passwords as text. The best thing to do is store it in your brain and make it ia mix of upper/lower case, numerals and ASCII characters, ie: eUd4X&a< as this format will help prevent losers guessing your password with a script.

#93313 08/08/04 10:01 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
"Dont" should be, "I would recommend you not..", since its upto them really if they want to or not.

Infact lots of others, including myself find it rather annoying that F1 opens the helpfile, the first thing I do after installing a version of mIRC is;

/alias f1 clear

Gotta love it.

Eamonn.

#93314 08/08/04 11:02 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
I can just to /help to get to the help file as well

#93315 08/08/04 11:41 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
F1 opens help in almost all windows applications (that have help files), including Windows itself. :tongue:

#93316 09/08/04 11:02 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Exactly my point and as a result theres no harm whatsoever in replacing mIRCs F1.

Iori, I am aware but since the F1 is application reliant, replacing F1 in mIRC wont harm any other programs F1.

#93317 09/08/04 12:18 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
"find it rather annoying that F1 opens the helpfile"

You must get 'rather annoyed' a lot!

#93318 09/08/04 01:23 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Not really since mIRC is the only program i use that i even press the Fkeys, as a result, yes it is rather annoyin =P

However this thread isnt regarding me, rather just pointing out that he can, if he likes, replace F1.

Eamonn.

#93319 09/08/04 08:03 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It won't be surprising to know that the guy who invented the Insert key is also accused of F1.

#93320 10/08/04 09:47 AM
Joined: Feb 2004
Posts: 50
D
Babel fish
Offline
Babel fish
D
Joined: Feb 2004
Posts: 50
back to the subject at hand :tongue:

You could use something as simple as this:

Code:
alias f2 { if ($server) { identify $$input(What is your NickServ password?,pq,[/identify]) } }


..in your remotes. This opens an $input window with a password edit box requesting your NickServ password. It doesnt store it (which is bad practice btw) and it doesn't send it if you don't type one.

#93321 10/08/04 11:59 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Why would I bother typing all that BS for? I am quite sure that people don't always interpret "don't" as a direct order. This is a help forum, not a mothers club. I'm not going to increase the intencity of my RSI by typing needless text. If it bothers you then don't (as well has recommending that you refrain from) read(ing) it.

Secondly, F1 is a universal help file shortcut in Windows. Why break it simply because mIRC allows it in scripting? Isn't it quicker to push one button than five when one wants to open the help file?

#93322 10/08/04 12:12 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
The point is that since he originally posted wanting to replace 'F1' with his command, you should not be telling him off because the helpfile happens to be linked to the button.

Furthermore, if someone asked you 'How do I perform a command when someone Joins' you dont give them a script to do something when someone Parts, which is exactly what you did, by giving him an F2 script.

Anyways, I'm not going to debate this any longer.

Eamonn.

#93323 11/08/04 07:03 AM
Joined: Aug 2004
Posts: 6
S
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Aug 2004
Posts: 6
Hardly anybody uses the F1 for help anyway, most people just type something like "/hep $nick" for example.

Also pressing F1 isnt much easier than going 'Help > Contents'

Everybody to their own, so your opinion dosen't always have to be the right answer. If he wants to change F1, then so be it.

#93324 13/08/04 11:21 PM
Joined: Nov 2003
Posts: 257
A
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
so can u activate an fkey without pressing it ?

#93325 14/08/04 12:03 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
If you just want to activate an Fkey, you simply do for example; /F1 - to run the f1 fkey, similiarly /sf1 would run any code linked to shift+f1, and so on.

If you want to mimic all the keys, you can use 'sendkey' by qwerty avaliable from, mIRCscripts.org

Or, you can use the wonders of COM Objects.

alias skeys {
if ($com(sendkeys)) { .comclose sendkeys }
.comopen sendkeys WScript.Shell
if (!$comerr) { .comclose sendkeys $com(sendkeys,SendKeys,3,bstr,$1-) }
}


An example would be:

/skeys {F1} - Mimics you pressing 'F1' (helpfile opens by default).
/skeys /echo hello{enter} - Will mimic you typing '/echo hello' and pressing the enter key, 'hello' will appear in your window.

Hope this helps.

Eamonn.


Link Copied to Clipboard