Mar. 24, 2018

Hello der,  Guest
Trader Name:
 | Home | Forum List | Active Threads | Search:
Page: of 1   
TWX Development > RFC y'all know what that means  
<< Thread >>

Joined: Apr 2005

posted: 03/14/2008 at 07:58 PM Post #1

I would like to propose an idea that has come to me about TWXProxy.

I have not found any way to send a message/keystroke or anything else to another script when they are in "menu" mode.
I'm asking because of all the scripts out there that ask for stuff that another script could give them instead of having a person at keys to give them the data.  Some of CK's scripts have been tweaked to be script controlled but I believe that is an exception rather than the rule.

I'm working on a script that calls other scripts to do whatever they do instead of re-inventing the wheel so to speak and have found no way of sending anything to another script with the exception of if they use loadvar/savevar logic.
What I would like to see is a new command SendToScript which would allow one script to actually send keystrokes/menu choices to a script.  Would this be hard to implement? Would this be useful?

I would imagine that one could figure out what the script requires for how should I say this human intervention and instead of having the human behind the keys making sure that the choices are appropiate the script would just send the required keystrokes to make the other script feel that they had a human behind the keystrokes instead of a script.

To counter the argument about the "safety" factor behind the menu choices, You have to have prior knowledge of what the script requires before you can program the keystrokes required.  And I fairly certain that the existing scripts don't care how they get their data they just want the data.

Whether this is feasible is another question which is why I am throwing this RFC out.

Comments and Flames are welcome and if the Flames get too hot I can always don my asbestos suit and deal with them.

TWX Development Team

Joined: Mar 2005

posted: 03/14/2008 at 10:00 PM Post #2

I'm shooting for a TWX update sometime in April.  I'll consider this while I'm working on it.  I see some real hurdles that will have to be overcome though.  At the very least, a command like that would have to run in a new thread, and will have to have a means of interacting with the main thread.  I'm planning on this release being a fairly minor update, so a significant change like this may not make it in, but I agree the idea has merit. 


Haggle Blog->

"why hello der matey! have a sit and buy me an ale, eh?" -- The Grimy Old Trader

The Grimy Trader is best viewed at 1024x768 resolution -- this page was generated in: 0.343 seconds.