urc field auto press enter?
Moderator: Moderators
urc field auto press enter?
to exec the stuff command in a field class in a urc menu you have to press enter. Can any1 think of a way this could be bypassed so it would exec the stuffcmd with the linkcvar?
eg
set lol "HI"
linkcvar "lol"
then in the field stuffcommand "say "
then as soon as we see the field it would do "say hi" in console?
ive tried showcommand but it just makes the message box open.
EDIT: even better if any1 cud think of a way to add 2 cvars together?
cmd append adds a string to a cvar:(.
also what does touchfile do?
eg
set lol "HI"
linkcvar "lol"
then in the field stuffcommand "say "
then as soon as we see the field it would do "say hi" in console?
ive tried showcommand but it just makes the message box open.
EDIT: even better if any1 cud think of a way to add 2 cvars together?
cmd append adds a string to a cvar:(.
also what does touchfile do?
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
i would like ot be able to add 2 cvars in console but then thought maybe a urc cud be used to do it. I want the server to be doing the work not the client. So it does it without the cleint knowing. but nm.bdbodger wrote:I don't think you can do what you want just from a urc I think you need a script running also . What is wrong with pressing enter by the way ? I mean you have to type into the box anyway so I don't get it .
not for the server though.bdbodger wrote:Well a script and menu can do it but don't think you can do it with a menu alone but I maybe wrong .
the menu wud be on the client the script on serv. the menu i just thought might add cvars together and then the script can use that. client cvars. the server cant get those. but we cant add cvars together and we cant make a menu do something without some sort of interaction so nm
they are server side.
i am not able to get this to work
. But i can get the admins stuff.
i wont eb able to get the info wihtout client input soo. on my admin men u thing im planning to make it will have setting "free" or login and when selected to login u have to login and set what if u are instead of the script doing it for u:(. the field linked ot a cvar will send the info to the server:).
the script will then println so people know who did what using the menu by looking at the logfile.
i am not able to get this to work
i wont eb able to get the info wihtout client input soo. on my admin men u thing im planning to make it will have setting "free" or login and when selected to login u have to login and set what if u are instead of the script doing it for u:(. the field linked ot a cvar will send the info to the server:).
the script will then println so people know who did what using the menu by looking at the logfile.


