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
mordyne
Newbie


Joined: 21 Apr 2013
Posts: 2

PostPosted: Sun Apr 21, 2013 6:44 pm   

Bringing Cmud to the Front in Win8
 
I play two different muds and I'd like to have my killtrigger bring that instance of CMUD to the front so I know that I need to act. I've been using sounds but my ears have learned to tune them out apparently. If anyone has an idea of how this can be done, I'd appreciate it.
Reply with quote
Tarn
GURU


Joined: 10 Oct 2000
Posts: 867
Location: USA

PostPosted: Mon Apr 22, 2013 6:02 pm   Re: Bringing Cmud to the Front in Win8
 
mordyne wrote:
I play two different muds and I'd like to have my killtrigger bring that instance of CMUD to the front so I know that I need to act. I've been using sounds but my ears have learned to tune them out apparently. If anyone has an idea of how this can be done, I'd appreciate it.


The CMUD COM interface does have a "cMUDFocus" method. Are you familiar with the COM scripting commands? (I have not used this particular call)

Another possibility: vbscript, SetFocus (though this has varied over the years based on Windows version and various Windows settings)
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue Apr 23, 2013 1:36 am   
 
It seems to me I've tried that COM method and it doesn't work. This is the alias I use to focus cmud:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <alias name="focuscmud" language="VBScript" copy="yes">
    <value>Set WshShell = CreateObject("WScript.Shell")
WshShell.AppActivate "CMUD"</value>
  </alias>
</cmud>
Reply with quote
mordyne
Newbie


Joined: 21 Apr 2013
Posts: 2

PostPosted: Tue Apr 23, 2013 1:49 am   
 
Thanks both. I copy pasted the code Daern gave and it works perfectly!
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