中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-06 05:01
48,039 topics / 350,124 posts / today 2 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Programmers, how to express love to the beloved MM
Printable Version  3,475 / 35
Floor1 zhoushijay Posted 2007-04-24 07:24
高级用户 Posts 375 Credits 845
Copy the following code into Notepad, save it as a VBS file, and run it to enjoy the effect ^^!


[ Last edited by zhoushijay on 2007-4-23 at 06:26 PM ]
Floor2 jmz573515 Posted 2007-04-24 08:39
银牌会员 Posts 464 Credits 1,212
Nice
Floor3 wudixin96 Posted 2007-04-24 08:49
银牌会员 Posts 931 Credits 1,928
Correcting the LZ's spelling mistake. It should be "girl" right?
Floor4 zhoushijay Posted 2007-04-24 09:25
高级用户 Posts 375 Credits 845
....
Fortunately, there are no girls here, otherwise I'd be dead!
Floor5 dxxzf Posted 2007-04-24 09:54
新手上路 Posts 3 Credits 6
Floor6 zh159 Posted 2007-04-24 11:18
金牌会员 Posts 1,467 Credits 3,687
The " - " on both sides of the window name "Untitled - Notepad" should each have a space.

Simplify (replace $ with newline later):
Floor7 lxmxn Posted 2007-04-24 12:24
版主 Posts 4,938 Credits 11,386
A post like the one the LZ made is an imperfect script if it doesn't use loops.
Floor8 aspirer Posted 2007-04-24 22:44
初级用户 Posts 35 Credits 72
I have associated the txt with other editors. Is it useful to change it to activate Notepad upstairs? Isn't this making it less universal? The owner's code can directly call my editor. I don't know if it will go wrong after modification.
I'm using the English version.
There was no error during operation, but I don't know if it has achieved the activation effect.
Floor9 xuehu Posted 2007-04-24 22:45
初级用户 Posts 14 Credits 28
It seems difficult to implement a loop, right? Every time you have to change a character.
Floor10 lililulula Posted 2007-04-24 23:00
中级用户 Posts 138 Credits 302
Although simple but practical. However, for some MM who don't have a computer knack, if they type halfway or close it, the effect may not be satisfactory.......
Floor11 zh159 Posted 2007-04-24 23:15
金牌会员 Posts 1,467 Credits 3,687
Originally posted by aspirer at 2007-4-24 09:44:
I have associated txt with other editors. Did the person upstairs who changed it to activate Notepad work? Isn't this making it less universal? The code of the original poster can directly call my editor. After modification, I don't know...

Actually, it doesn't matter much whether it's activated or not, because the newly opened window of ws.run("notepad.exe") is generally set to the front. As long as the delay is appropriate after opening, it's okay.
Originally posted by xuehu at 2007-4-24 09:45:
It seems that the loop is not easy to implement?
You have to change a character each time...

My third sentence Num = len(str) outputs the length of the character to the number of loops for i = 1 to Num. You just need to modify the sentence.
PS: VBS does not support sending Chinese.
Originally posted by lililulula at 2007-4-24 10:00:
Although simple but practical. However, some MM who have no computer sense may not get the desired effect if they type or close the window halfway.......

You can add activating the window to judge whether to continue. When the window is closed, the script can't activate the Notepad window and will jump out of the loop. It's just for fun, so I didn't consider it.
Floor12 wydos Posted 2007-04-25 00:40
中级用户 Posts 117 Credits 304
zh159
Powerful!!
Top!!
Floor13 kennyfan Posted 2007-04-25 01:01
中级用户 Posts 112 Credits 259
Hehe.. Interesting.. Fun, right~
Floor14 petpiger Posted 2007-04-25 02:05
新手上路 Posts 5 Credits 10
Floor15 jmz573515 Posted 2007-04-25 04:34
银牌会员 Posts 464 Credits 1,212
It would be nice to be able to type Chinese characters....
1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023