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
Fizgar
Magician


Joined: 07 Feb 2002
Posts: 333
Location: Central Virginia

PostPosted: Thu Jan 05, 2012 3:42 am   

Alias calling #waitfor in a different window
 
What is the proper way to call an alias and have it issue a #waitfor in a different window? I can't seem to get the thread created by the #waitfor to be for the intended window. The thread is always created for the window the alias is sent from.

The Alias is in a global module in one package.
The window is in a different package.

I want to run the alias in window A, then have the script issue a #waitfor that will need a response from window b.
_________________
Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Jan 05, 2012 5:48 am   
 
I would have thought #execwin would do this, but I just tested it and it made the #waitfor in the window calling it, not the window being executed in. Wonder if that's a bug...
Reply with quote
shalimar
GURU


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

PostPosted: Thu Jan 05, 2012 6:26 pm   
 
Might be easier to do this with a #TEMP trigger.
_________________
Discord: Shalimarwildcat
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Jan 06, 2012 2:24 pm   
 
Could you explain exactly what you intend to do? #WAITFOR stops the _current_ thread. As such, it has to run in the whatever thread you want to pause. Do you want the thread in window A to stop running until something happens in window B? Or do you want to start some separate thread in window B which pauses for something to happen, while the script in window A continues?
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