Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Thu Oct 23, 2014 6:34 pm   

Command rerouting
 
I was thinking of a setting to reroute the command back to the main window if you forgot to give it back focus.
It would need to be in a module and exclude the main window, or have a separate instance in each window you want it to apply to.

#ONINPUT {*} {#IF (%window!=%item(%names, 1)) {#EXECWIN %item(%names, 1) {%1}}

Something like that -should- work, or so I thought, but it doesn't seem to be the case.

Commands only seem to get rerouted from the main window in the first place, if the window is docked or tabbed in a group relative to the main window,
(for instance the 3 windows i have tabbed together above the main window)
as that removes the focus from the command line. When the window is in another column
(like the 4 above and 2 below my map, on the right side of the screen)
or otherwise docked unrelated to the main window, then the command line retains focus.

Looks like i will need separate instances in the 3 windows this is an issue for, but i need an effective way to push the command.
Any ideas?
_________________
Discord: Shalimarwildcat
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Thu Oct 23, 2014 6:39 pm   
 
Simple syntax error, i forgot the parentheses, once i fixed that, it did push the command.

That fact that i need this is still an issue though.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net