Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: MindArchon on August 06, 2004, 09:16 PM

Title: Alt Keystroke
Post by: MindArchon on August 06, 2004, 09:16 PM
In stealthbot when someone goes ?trigger it displays the trigger with the Keystroke (Alt + 454).

Does anyone know the code of how to make it display the keystroke of the trigger?
Title: Re:Alt Keystroke
Post by: Tuberload on August 06, 2004, 09:22 PM
If I am not mistaken the keystroke he is displaying is just the character(ASCII/UNICODE) value.
Title: Re:Alt Keystroke
Post by: UserLoser. on August 06, 2004, 10:27 PM
Quote from: MindArchon on August 06, 2004, 09:16 PM
Does anyone know the code of how to make it display the keystroke of the trigger?

Yes.
Title: Re:Alt Keystroke
Post by: Stealth on August 06, 2004, 10:30 PM
That's right. "0" & Asc(Trigger) - just be sure Trigger is restricted to a single character in length.
Title: Re:Alt Keystroke
Post by: hismajesty on August 06, 2004, 10:34 PM
Quote from: Stealth on August 06, 2004, 10:30 PM
That's right. "0" & Asc(Trigger) - just be sure Trigger is restricted to a single character in length.

Especially if Eibro is in your clan. Go away for a while and return to the trigger being EIBROISSOCOOL.
Title: Re:Alt Keystroke
Post by: MindArchon on August 06, 2004, 10:38 PM
Quote from: Stealth on August 06, 2004, 10:30 PM
That's right. "0" & Asc(Trigger) - just be sure Trigger is restricted to a single character in length.

Why do I need the 0 in front? I tried Asc(".") and it got 46.

Alt + 46 still gives me .
Title: Re:Alt Keystroke
Post by: Eli_1 on August 06, 2004, 11:25 PM
You just do. Alt+225 != Alt+0225
Title: Re:Alt Keystroke
Post by: Adron on August 07, 2004, 03:08 PM
I think Alt + 3 digits is compatible with the way it "always" worked, using the charset that was used then, and alt + 4+ digits uses unicode.
Title: Re:Alt Keystroke
Post by: MyndFyre on August 09, 2004, 12:20 PM
Quote from: Adron on August 07, 2004, 03:08 PM
I think Alt + 3 digits is compatible with the way it "always" worked, using the charset that was used then, and alt + 4+ digits uses unicode.

Hrm.  In Windows 3.1, it required you to use 4 digits, prepending the 0 to the key combination.  I'm not saying that it wasn't possible (AFAIK, you *could* use 2 or 3 digits), but that was the "Microsoft-sanctioned" way.