PDA

View Full Version : Example: Traytip v2


Friethoe
03-06-2006, 03:58 AM
I like the way Windows is displaying short messages in the traybar and couldn't find the right tool to make that happen in AMS.

Then I found the tool provided by Rhosk, but I didn't like the fact that I needed to create/modifiy the INI-file before I was able to display my text.

Now I modified the tool and now you are able to pass the parameter to the traytip.exe in the order:

Traytip "Title" "Text" "SecondsToDisplay" "SelectedIcon"
Where SelectedIcon=
0=None
1=Info
2=Warning
3=Error

I hope you can use this simple tool for your applications as well

Thanks Rhosk

playmenow
03-06-2006, 04:52 AM
can you attach it? sounds really useful :D

Friethoe
03-06-2006, 04:59 AM
can you attach it? sounds really useful :D

What, what, what :wow Oh I see!! Here it is ..... :rolleyes

Have fun with it !!!

Khattat
03-13-2006, 09:23 AM
How can i open a program when i clicked on it?(whit ams):p

playmenow
03-13-2006, 11:54 AM
first extract what's in the zip file...:rolleyes

Khattat
03-14-2006, 02:25 AM
first extract what's in the zip file...:rolleyes
it wasn't my mean
i want to open a file (for example open a pdf file) when the user click on the balloon :yes and i have another problem please download my project and tell me about it's problem (My text and Title are not showed in the balloon)
oh i could not upload it :huh
thanks a lot ;)

playmenow
03-14-2006, 02:57 AM
You should edit the ini file with the software. Hmmm...I don't see any attached project.
This is what use. It's very easy to customize:

-- tell the user
text = String.Concat("Playing next file: ", file_name);
INIFile.SetValue("AutoPlay\\Docs\\traytip.ini", "Text", "Value", text);
File.Run("AutoPlay\\Docs\\Traytip.exe", "", "AutoPlay\\Docs", SW_SHOWNORMAL, false);
end

Friethoe
03-14-2006, 04:31 AM
Hi Khattat,

It's not the most elegant example, but I think you will get the picture of how you can use this tool.
Just download the attached script and take a look how you can use it.

You don't need to modify the INI-file, on some systems you may not have the rights to do this so you just pass the parameters...

If it's still not clear, just let me know....

Good luck :)

playmenow
03-14-2006, 05:05 AM
You don't need to modify the INI-file, on some systems you may not have the rights to do this so you just pass the parameters...

Ahh...yes, yes...I'll make PMN 5.6 pass the parameters.
Here it is:

-- tell the user
text = String.Concat('"PlayMeNow" "Playing next file: "', file_name);
arg = String.Concat(text, " 5 1");
File.Run("AutoPlay\\Docs\\Traytip.exe", arg, "AutoPlay\\Docs", SW_SHOWNORMAL, false);

Preety easy :) And best: it's not a plug-in...you can use it anywhere :)

RizlaUK
07-01-2006, 05:29 AM
nice work, iv been useing the old traytip but i was writing the ini file with strText as i needed it, this will make it a little easyer, thanks