China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 14:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » TrayBalloon.exe Taskbar Balloon Tip View 7,613 Replies 62
Original Poster Posted 2007-02-13 05:15 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
I saw someone asking for it on the forum yesterday. I looked at the previous post, and that was too complicated.
So I wrote one last night, and just debugged it a moment ago. No problems found for the time being.
Everyone, test it out.

■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■
■■■■■■■■■■■■■■■■■■■■



::TrayBalloon.exe ;parameter 1;;parameter 2;;parameter 3;;parameter 4;;parameter 5;
::Parameter 1:
:: Icon path
::Parameter 2:
:: Title
::Parameter 3:
:: Content
::Parameter 4:
:: Type
::Parameter 5:
:: Prompt stay time (unit: seconds)

@echo off
::Example 1:
TrayBalloon.exe ;%cd%\TB.ico;;I am the title!!;;Beautiful prompt!!Cool, right?);;2;;5;
::Example 2:
@rem Add to task schedule……
at 16:05 /interactive %cd%\TrayBalloon.exe ;%cd%\TB.ico;;I am the title!!;;Beautiful prompt!!Cool, right?);;1;;3;

pause>nul


Some people want to run the program and input parameters themselves. I also did this, but I don't know what good prompts there are.
Also, this version is compatible with the previous one, and can still call and directly write parameters later. Attachment 3.

[ Last edited by slore on 2007-2-13 at 09:48 PM ]
Recent Ratings for This Post ( 4 in total) Click for details
RaterScoreTime
zh159 +5 2007-02-13 08:25
mygoldnet +2 2007-02-15 10:10
chengbiner +1 2007-05-26 12:44
zhfeng +1 2019-04-09 23:20
Attachments
TrayBalloon.JPG
TrayBalloon.rar (35.39 KiB, Credits to download 1 pts, Downloads: 329)
New-TrayBalloon.rar (39.48 KiB, Credits to download 1 pts, Downloads: 407)
Floor 2 Posted 2007-02-13 05:19 ·  中国 江苏 南京 电信
初级用户
Credits 22
Posts 11
Joined 2007-02-12 03:35
19-year member
UID 79275
Gender Male
Status Offline
Floor 3 Posted 2007-02-13 05:22 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
I have here; error message: run-time error '5'
invalid procedure call or argument
Floor 4 Posted 2007-02-13 05:27 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Is the format of the parameters correct as you see?

There are two ;; semicolons in the middle
;Parameter 1;;Parameter 2;;Parameter 3;;Parameter 4;;Parameter 5;

[ Last edited by slore on 2007-2-12 at 04:28 PM ]
Floor 5 Posted 2007-02-13 07:30 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
Bump
Floor 6 Posted 2007-02-13 08:24 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Floor 7 Posted 2007-02-13 08:43 ·  中国 辽宁 本溪 联通
银牌会员
★★★
Credits 1,212
Posts 464
Joined 2006-12-13 21:11
19-year member
UID 73417
Gender Male
Status Offline
Floor 8 Posted 2007-02-13 08:55 ·  中国 江苏 连云港 联通
高级用户
★★★
前进者
Credits 641
Posts 303
Joined 2007-01-10 02:57
19-year member
UID 76009
Gender Male
Status Offline
Wow, it's impressive. Although I don't understand much, I'll give it a thumbs up.
我相信总有一天,总会遇到一个人可以相濡以沫、相吻以湿!
Floor 9 Posted 2007-02-13 22:06 ·  中国 上海 联通
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
Comrade, is TrayBalloon.exe written by you? Can you introduce more usage?
Floor 10 Posted 2007-02-13 22:37 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Originally posted by slore at 2007-2-13 05:27:
Is the format of the parameter correct as you see?

There are two ;; semicolons in the middle
;Parameter 1;;Parameter 2;;Parameter 3;;Parameter 4;;Parameter 5;

[ Last edited by slore on 2007-2-12 at 04:28 PM ]



OK, thanks. By the way, what is this written with? It doesn't seem to be written in P, but looking at your shell icon, it seems like it.
Floor 11 Posted 2007-02-14 02:21 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Processing ^P in VB without using APIs
Floor 12 Posted 2007-02-14 02:29 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Originally posted by echo at 2007-2-13 09:06:
Comrade, is TrayBalloon.exe written by you?

Can you introduce more usage?


I wrote it myself. For the tray, what else do you need? There are icons, titles, contents, and display times.

What other parameters do you want?
Floor 13 Posted 2007-02-14 03:46 ·  中国 重庆 中移铁通
初级用户
Credits 28
Posts 15
Joined 2007-01-12 10:03
19-year member
UID 76275
Gender Male
Status Offline
Thank you so much, LZ. This is the tool I've been dreaming of!
Floor 14 Posted 2007-02-14 09:42 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Originally posted by qiuqiansuo at 2007-2-13 14:46:
Thanks a lot, LZ! This is the tool I've been dreaming of!


Hehe, as long as it works
Floor 15 Posted 2007-02-14 09:47 ·  中国 浙江 绍兴 上虞区 电信
初级用户
Credits 23
Posts 9
Joined 2006-12-28 03:39
19-year member
UID 74771
Gender Male
Status Offline
LZ PF you~ Give a thumbs up
1 2 3 5 Next ›
Forum Jump: