|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: 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 |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: 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...
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Thu Jan 05, 2012 6:26 pm |
Might be easier to do this with a #TEMP trigger.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: 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?
|
|
|
|
|
|