• Force Open The ChatBox
    7 replies, posted
Is there a way, without calling the actual keypress, to open the chat box? GAMEMODE:StartChat( bool ) doesn't seem to work, so just curious if anyone can point me in the right direction. All help is appreciated, thanks guys!
Not sure if its blocked but, [lua] RunConsoleCommand("messagemode"); [/lua]
Alrighty, any way to force close it? Thanks :D
It's the oddest thing, 'messagemode' works fine as a bind, but try running it as a console command results in a 'Unknown command: messagemode'. Any ideas?
are you forcing them to run the command serverside or clientside if i try to run clientside commands serverside i always get concommand blocked, maybe it's something similar with you, don't really know.
Well I tried calling it from code client side, and calling it as an actual command while hosting the server in gmod. I'll see about calling it from server side code.
[QUOTE=LauScript;32099782]are you forcing them to run the command serverside or clientside if i try to run clientside commands serverside i always get concommand blocked, maybe it's something similar with you, don't really know.[/QUOTE]If you open your console and try running the command manually "messagemode" it results in "Unknown command: messagemode". If you bind a key to messagemode "bind" "y" "messagemode" and press the key, it works just fine..very weird indeed.
It's not a real console command. It's just hardcoded: [cpp]int ClientModeShared::KeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding ) { if ( engine->Con_IsVisible() ) return 1; // Should we start typing a message? if ( pszCurrentBinding && ( Q_strcmp( pszCurrentBinding, "messagemode" ) == 0 || Q_strcmp( pszCurrentBinding, "say" ) == 0 ) ) { if ( down ) { StartMessageMode( MM_SAY ); } return 0; } [...] [/cpp] You need garry to make a binding for StartMessageMode.
Sorry, you need to Log In to post a reply to this thread.