mIRC Homepage
Posted By: alkahol1k activating fkeys ? - 08/08/04 08:10 PM
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 ?
Posted By: Watchdog Re: activating fkeys ? - 08/08/04 08:29 PM
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.
Posted By: Coolkill Re: activating fkeys ? - 08/08/04 10:01 PM
"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.
Posted By: alkahol1k Re: activating fkeys ? - 08/08/04 11:02 PM
I can just to /help to get to the help file as well
Posted By: Iori Re: activating fkeys ? - 08/08/04 11:41 PM
F1 opens help in almost all windows applications (that have help files), including Windows itself. :tongue:
Posted By: Coolkill Re: activating fkeys ? - 09/08/04 11:02 AM
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.
Posted By: Iori Re: activating fkeys ? - 09/08/04 12:18 PM
"find it rather annoying that F1 opens the helpfile"

You must get 'rather annoyed' a lot!
Posted By: Coolkill Re: activating fkeys ? - 09/08/04 01:23 PM
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.
Posted By: Online Re: activating fkeys ? - 09/08/04 08:03 PM
It won't be surprising to know that the guy who invented the Insert key is also accused of F1.
Posted By: Ddan Re: activating fkeys ? - 10/08/04 09:47 AM
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.
Posted By: Watchdog Re: activating fkeys ? - 10/08/04 11:59 AM
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?
Posted By: Coolkill Re: activating fkeys ? - 10/08/04 12:12 PM
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.
Posted By: saxinat0r Re: activating fkeys ? - 11/08/04 07:03 AM
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.
Posted By: alkahol1k Re: activating fkeys ? - 13/08/04 11:21 PM
so can u activate an fkey without pressing it ?
Posted By: Coolkill Re: activating fkeys ? - 14/08/04 12:03 AM
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.
© mIRC Discussion Forums