Forum

Free Download More Info

Welcome to the Personal Stock Streamer Support Forum. Anyone can read messages, but you must be a registered user in order to post. (Sorry, we did this in order to prevent forum spam.)

This forum is for general Personal Stock Streamer questions and support. For information about writing extensions and plug-ins, please visit the Developers section.

Everyone who is registered for the Support Forum on this site should now also have permission to log in and post to the Developers Forum.  This was done by hand, so we may have missed a couple of people.  Please let us know if you do not have access to both forums.

Subscribe to RSS Feed
PSS Support -> Creating an Action Alert (Pop-Up) w/ Column Info
Not logged in.
2010-04-23 14:35:16
1 of 4
#2063
The PSS alert options are excellent!!

I was able to setup email, highlights, etc.. not a problem. I was also able to setup an alert to trigger ("Run Program") a simple VBS file (which pops up a simple msgbox), which works great. Pop-ups in my environment are critical....

What I would like to do is to have a pop-up and pass it some column info (i.e. "symbol", "price", etc...) very similar to what is offered when you set up an email alert (which is very cool!!!). Any recommendations on how to do this? If I need to use particular code or scripting functions - please let me know....

Should I be using the "Run Script Function" option? If so, can you assist on this code?

Any assistance would be greatly appreciated.

Thanks,
Adam


Posted by: aguild4385
2010-04-24 07:42:31
2 of 4
#2071
in reply to #2063
You may be able to do it with the external VBS. The first and only argument that is passed to the program is the ticker symbol, so you can connect to the PSS scripting object model from your script and query whatever other values you need for the alert.

You also could do it using the Run Script Function action in this case, since it gets a reference to the ticker symbol object, but you would have to package your script function as an extension that would get loaded on program startup, so the function is always available. I would have to come up with some sample code for that, maybe sometime next week if I have time.
Anatoly Ivasyuk
DTLink Software
2010-04-29 16:55:47
3 of 4
#2091
in reply to #2071
Anatoly and others,
Thanks for responding. Quick question, due to my lack of coding....

I have a straightforward popup vbs file (called: popup.vbs). In the vbs file it has the following code:

-----------------------------------
Text = "% Change Alert"
Timeout = "15" 'in seconds
Title = "ALERT"

Set WshShell = CreateObject("WScript.Shell")

WshShell.Popup Text, TimeOut, Title

Set WshShell = Nothing
-------------------------------------------

I setup some alerts selecting the "Run Program" option and pointed them to this file. It works great. After reading your respond above, it appears that PSS passes the symbol info to my vbs file. Correct? If so, how is it passed (by what function) and how should I reference that function in my vbs file in order to pull in the symbol info. Because ideally I would like to insert the symbol info in the Text field above and have the popup box show "% Change Alert for [SYMBOL]".

Any coding help from anyone would be GREATLY appreciated.

Thanks,
Adam
Posted by: aguild4385
2010-04-29 18:04:44
4 of 4
#2092
in reply to #2091
The ticker will be WScript.Arguments(0), so something like this should work:

Text = "% Change Alert for " + WScript.Arguments(0)
Anatoly Ivasyuk
DTLink Software