View Full Version : Untyped Text
Jason2gs
02-20-2007, 10:15 PM
What function could I use to read untyped text in chatbox?
I want to add more to my RC system, but I don't want to have to say anything outloud.
Boreas
02-20-2007, 10:37 PM
I don't see how this would be useful, but look at GetTextAtEx. You need to check which font(/charset) it uses first.
Jason2gs
02-20-2007, 10:44 PM
How would I check which font it uses?
And I want to be able to send messages to my slave, without having to stop the entire script.
Like if I type into the chatbox "logout", my slave will log out, and then log in to the next player in line.
I can do more than this, but this is just an example.
Edit: Could you please write a small example of "GetTextAtEx"? I'm not really sure how to use it.
Boreas
02-20-2007, 10:47 PM
So you want to control the script, from the computer that is running the script?
Jason2gs
02-20-2007, 10:49 PM
Yes. Just a sec, I'll explain in a minute.
Boreas
02-20-2007, 10:51 PM
Ah in that case I would suggest using hotkeys.
if isfkeydown(11) then nextplayer(true);
if isfkeydown(12) then nextplayer(false);
etc
Hold I'll find a link to script.
Edit: here it is http://www.villavu.com/forum/showthread.php?t=3599?t=4342
Jason2gs
02-20-2007, 10:56 PM
If I want to tell my slave to do something, I have to stop the script, and restart it from the begining, starting with the first player (unless I want to mess around with the order of the players).
But if I can feed my slave commands, right from the text box... I could do a lot (until jagex catches on).
I was going to use if(IsFKeyDown(...))then, but I figured it would be too obvious to jagex. ("Whenever player x punches in F12, he logs out.")
Edit: Plus I would like to set it up to do more than just logging out. (eventually)
Jason2gs
02-20-2007, 11:03 PM
Gtg, bye. I'll come back later.
Boreas
02-20-2007, 11:30 PM
Hotkeys are less obvious than typing in text box.
The other option is creating 'buttons' to mouse. These would be boxes (you can mark them with a paint window or something, or they can be invisible) that you set the x1,y1,x2,y2 for, and when you move the mouse into these boxes, it performs the appropriate functions. The downside is, you would have to have the script allow time in which it doesn't move the mouse, and it checks where the mouse is, to give you a chance to move it. The upside is, jagex doesn't look at mouse position outside of the client.
Jason2gs
02-20-2007, 11:52 PM
LESS obvious? Hmm... I woudln't think they'd care what you type, as long as it doesn't go through to the real chat box.
Thanks, though. ;)
Boreas
02-21-2007, 01:51 AM
F12 doesn't go through either. Typing words does go to that one line though, so they are definitely monitoring whether 'a' is being pressed (obviously, or typing messages wouldn't work). The may or may not be monitoring whether F12 is being pressed, and even if they are, they won't connect it to logging out as much, because it doesn't have a visible effect on the client.
Besides, checking if a key is being pressed is easier than getting text.
Smartzkid
02-21-2007, 03:17 AM
@ post before boreas's: yes, but an autoresponder could really mess up your script if you weren't careful...
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.