View Full Version : Key code tutorial - press any key!
R0b0t1
05-22-2007, 11:35 PM
Why would I want to know the codes for every key on the board? Because you can do much more with it! You can do shortcuts, such as windows key + L, or you could even use this to take screen shots by having SCAR press the prntscrn key!
To use these type:
KeyDown(NUMBER);
Wait(1);
KeyUp(SAMENUM);
simple, isnt it?
Well, this (fro general purposes) really just lets you press enter in the same line of code if using "SendKeys".
I hope someone would give me some rep, I'm going for members!
Maxine
05-23-2007, 07:39 PM
Type mismatch in script gives me all the time.. this aint working for me:(
neo_welmeow
05-23-2007, 11:49 PM
i get the same thing
grindisbest
05-24-2007, 12:09 AM
Cheers for the nicely layed out keycodes list.
neo_welmeow
05-24-2007, 12:15 AM
okay i figured it out
i even put in some examples :garfield:
put in
KeyDown((chr #));
Wait(1);
KeyUp((chr #));
//example0
KeyDown(13);
Wait(1);
KeyUp(13);
//would push enter
//example1
KeyDown(17);//ctrl
Wait(1);
KeyDown(18);//alt
wait(1);
KeyDown(46);//del
wait(3);
KeyUp(17);
KeyUp(18);
KeyUp(46);
//brings up task man
R0b0t1
05-24-2007, 12:35 AM
yeah, I was thinking of a dif language when I put the "chr" part. don't use that, just the number.
Maxine
05-24-2007, 04:13 AM
ok thanks.. its working now
shaunthasheep
05-24-2007, 11:48 AM
yeah, I was thinking of a dif language when I put the "chr" part. don't use that, just the number.
you weren't thinking of another language.. u were thinking about adding it to a string eg SendKeys(chr(13)); //enter
WhoCares357
05-24-2007, 02:43 PM
Very good. I like this. Keep up the good work.
BTW, I posted your tutorial here:
http://www.zamorak.org/showthread.php?p=6428#post6428
If you want it removed, I will do so.
Hugolord
05-24-2007, 03:13 PM
Thanks this is a great help (for me) cz of my script im making ty m8!
Lalaji
05-24-2007, 07:33 PM
I Got that. Can some1 please post some more codes for keys. Or tell me where i can get them
Maxine
05-24-2007, 07:39 PM
I Got that. Can some1 please post some more codes for keys. Or tell me where i can get them
more keys? i think theres all in that file:D you have like chinese keyboard with 5000 different letters:D
robot add those examples to your guide and it will be perfect!
R0b0t1
05-25-2007, 07:19 PM
No, these are the keys that would be of anyuse to us.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.