Log in

View Full Version : extension thought?



Shuttleu
07-25-2010, 10:00 AM
is it possible to run a procedure from a script by using a extension?

so you have a extension that adds a item to the menu, then when you click on it, it runs a procedure from the current running script?

~shut

Wizzup?
07-25-2010, 10:11 AM
Currently this is not possible. It would probably be rather hard to do this too, considering you don't know which script you want to execute the procedure of. Calling script procedures usually only happens from the script thread, and not from the main thread, unless the script thread synchronizes with the main thread.

Possible, yes.

Shuttleu
07-25-2010, 10:14 AM
Currently this is not possible. It would probably be rather hard to do this too, considering you don't know which script you want to execute the procedure of. Calling script procedures usually only happens from the script thread, and not from the main thread, unless the script thread synchronizes with the main thread.

Possible, yes.

ok, fair enough
thanks anyway

~shut

Shuttleu
07-25-2010, 10:27 AM
as you disabled the use of more than one script running at any time, wouldnt it be able to know which script is running?
or would it be too hard to implement because of the sync problems?

~shut

Wizzup?
07-25-2010, 10:53 AM
as you disabled the use of more than one script running at any time, wouldnt it be able to know which script is running?
or would it be too hard to implement because of the sync problems?

~shut

That way you would know what script is running, yeah. I still don't think it would be much easier to implement because of Synchronisation issues. Imagine the following:
Your script is in the middle of its Mining loop, and suddenly it must call a completely different procedure. This is quite hard to implement. (Although the interpreter may support it, IDK)

Shuttleu
07-25-2010, 11:14 AM
okay, the reason why i asked is because of the reset form which i made for MSI doesnt seem to run when i press F1 or any other F#

so i was thinking using an extension to run the procedure that will start the form

~shut