Indigo Rose Software
  #1  
Old 03-06-2006
Friethoe Friethoe is offline
Forum Member
 
Join Date: Feb 2005
Posts: 48
Lightbulb Example: Traytip v2

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
Reply With Quote
  #2  
Old 03-06-2006
playmenow playmenow is offline
Banned
 
Join Date: Nov 2005
Location: Banned by moderator.
Posts: 264
can you attach it? sounds really useful
Reply With Quote
  #3  
Old 03-06-2006
Friethoe Friethoe is offline
Forum Member
 
Join Date: Feb 2005
Posts: 48
Quote:
Originally Posted by playmenow
can you attach it? sounds really useful
What, what, what Oh I see!! Here it is .....

Have fun with it !!!
Attached Files
File Type: zip TrayTip-v2.zip (124.5 KB, 757 views)
Reply With Quote
  #4  
Old 03-13-2006
Khattat Khattat is offline
Forum Member
 
Join Date: Mar 2006
Posts: 17
How can i open a program when i clicked on it?(whit ams)

Last edited by Khattat; 03-13-2006 at 09:26 AM.
Reply With Quote
  #5  
Old 03-13-2006
playmenow playmenow is offline
Banned
 
Join Date: Nov 2005
Location: Banned by moderator.
Posts: 264
first extract what's in the zip file...
Reply With Quote
  #6  
Old 03-14-2006
Khattat Khattat is offline
Forum Member
 
Join Date: Mar 2006
Posts: 17
Quote:
Originally Posted by playmenow
first extract what's in the zip file...
it wasn't my mean
i want to open a file (for example open a pdf file) when the user click on the balloon 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
thanks a lot
Reply With Quote
  #7  
Old 03-14-2006
playmenow playmenow is offline
Banned
 
Join Date: Nov 2005
Location: Banned by moderator.
Posts: 264
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:
Code:
-- 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

Last edited by playmenow; 03-14-2006 at 03:01 AM.
Reply With Quote
  #8  
Old 03-14-2006
Friethoe Friethoe is offline
Forum Member
 
Join Date: Feb 2005
Posts: 48
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
Attached Files
File Type: apz TrayTip.apz (151.2 KB, 317 views)
Reply With Quote
  #9  
Old 03-14-2006
playmenow playmenow is offline
Banned
 
Join Date: Nov 2005
Location: Banned by moderator.
Posts: 264
Quote:
Originally Posted by Friethoe
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:
Code:
-- 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

Last edited by playmenow; 03-14-2006 at 05:13 AM.
Reply With Quote
  #10  
Old 07-01-2006
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software