ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: smitty on November 25, 2017, 06:07:59 PM

Title: sending a parameter to a form
Post by: smitty on November 25, 2017, 06:07:59 PM
Hey there!!!!
So I have been dissecting Drabadan's Auto killer script, and it looks amazing!!! ive been basing my own project off of this script! i do have two questions that i cant really figure out on my own. throughout the script Drabadan sends Action<string> messanger around to a lot of different places.

My questions:
1) What is the Action<string> messanger accomplishing.
2) It appears the shell constructor is taking a parameter... Where is that getting sent from?
 
Code: [Select]
public Shell(Action<string> messanger)
        {
            InitializeComponent();
            _messanger = messanger;
        }
Title: Re: sending a parameter to a form
Post by: The Ghost on November 25, 2017, 06:19:54 PM
Those are to be send to your phone.   So they can monitor what going on.  I have read about it,  but never use it or fully understand how it work really
Title: Re: sending a parameter to a form
Post by: Tidus on November 27, 2017, 06:05:42 AM
Hey there!!!!
So I have been dissecting Drabadan's Auto killer script, and it looks amazing!!! ive been basing my own project off of this script! i do have two questions that i cant really figure out on my own. throughout the script Drabadan sends Action<string> messanger around to a lot of different places.

My questions:
1) What is the Action<string> messanger accomplishing.
2) It appears the shell constructor is taking a parameter... Where is that getting sent from?
 
Code: [Select]
public Shell(Action<string> messanger)
        {
            InitializeComponent();
            _messanger = messanger;
        }

His whole script is to be able to send notifications to ICQ also.  It is very specific to this autokiller.