これはStackoverflowの最初の投稿です。私はどのように起動するのか分からないが、ここでは 私の質問です:私は、RPGゲームを使用してvbscriptを使用しています。私はメモ帳 を使用していますが、文字は、このような一つ一つ表示されました:vbscriptを使って、メモ帳に文字を1つずつ表示させる方法
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad.exe", 3
WshShell.SendKeys ". L"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "t'"
WScript.Sleep(100)
WshShell.SendKeys "s"
WScript.Sleep(100)
WshShell.SendKeys " m"
WScript.Sleep(100)
WshShell.SendKeys "a"
WScript.Sleep(100)
WshShell.SendKeys "k"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys " a"
WScript.Sleep(100)
WshShell.SendKeys "n"
WScript.Sleep(100)
WshShell.SendKeys " e"
WScript.Sleep(100)
WshShell.SendKeys "x"
WScript.Sleep(100)
WshShell.SendKeys "a"
WScript.Sleep(100)
WshShell.SendKeys "m"
WScript.Sleep(100)
WshShell.SendKeys "p"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys "e:"
WScript.Sleep(100)
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "{ENTER}"
WScript.Sleep(100)
WshShell.SendKeys "Y"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "u"
WScript.Sleep(100)
WshShell.SendKeys " a"
WScript.Sleep(100)
WshShell.SendKeys "r"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys " i"
WScript.Sleep(100)
WshShell.SendKeys "n"
WScript.Sleep(100)
WshShell.SendKeys " a "
WScript.Sleep(100)
WshShell.SendKeys "f"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "r"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "s"
WScript.Sleep(100)
WshShell.SendKeys "t"
WScript.Sleep(100)
WshShell.SendKeys " w"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "t"
WScript.Sleep(100)
WshShell.SendKeys "h"
WScript.Sleep(100)
WshShell.SendKeys " l"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "m"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "t"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "d"
WScript.Sleep(100)
WshShell.SendKeys " r"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "s"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "u"
WScript.Sleep(100)
WshShell.SendKeys "r"
WScript.Sleep(100)
WshShell.SendKeys "c"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "s."
WScript.Sleep(100)
WshShell.SendKeys " W"
WScript.Sleep(100)
WshShell.SendKeys "h"
WScript.Sleep(100)
WshShell.SendKeys "a"
WScript.Sleep(100)
WshShell.SendKeys "t"
WScript.Sleep(100)
WshShell.SendKeys " w"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys " y"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "u"
WScript.Sleep(100)
WshShell.SendKeys " d"
WScript.Sleep(100)
WshShell.SendKeys "o?"
WScript.Sleep(100)
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "1-"
WScript.Sleep(100)
WshShell.SendKeys "I"
WScript.Sleep(100)
WshShell.SendKeys " w"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys " t"
WScript.Sleep(100)
WshShell.SendKeys "r"
WScript.Sleep(100)
WshShell.SendKeys "y"
WScript.Sleep(100)
WshShell.SendKeys " t"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys " f"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "n"
WScript.Sleep(100)
WshShell.SendKeys "d"
WScript.Sleep(100)
WshShell.SendKeys " s"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "m"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys " r"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "s"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "u"
WScript.Sleep(100)
WshShell.SendKeys "r"
WScript.Sleep(100)
WshShell.SendKeys "c"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys "s."
WScript.Sleep(100)
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "2-"
WScript.Sleep(100)
WshShell.SendKeys "I"
WScript.Sleep(100)
WshShell.SendKeys " w"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys " b"
WScript.Sleep(100)
WshShell.SendKeys "u"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys "d"
WScript.Sleep(100)
WshShell.SendKeys " a "
WScript.Sleep(100)
WshShell.SendKeys "s"
WScript.Sleep(100)
WshShell.SendKeys "m"
WScript.Sleep(100)
WshShell.SendKeys "a"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys "l"
WScript.Sleep(100)
WshShell.SendKeys " h"
WScript.Sleep(100)
WshShell.SendKeys "o"
WScript.Sleep(100)
WshShell.SendKeys "u"
WScript.Sleep(100)
WshShell.SendKeys "s"
WScript.Sleep(100)
WshShell.SendKeys "e"
WScript.Sleep(100)
WshShell.SendKeys " w"
WScript.Sleep(100)
WshShell.SendKeys "i"
WScript.Sleep(100)
WshShell.SendKeys "t"
WScript.Sleep(100)
WshShell.SendKeys "h"
WScript.Sleep(100)
WshShell.SendKeys " m"
WScript.Sleep(100)
WshShell.SendKeys "y"
これは素晴らしい作品が、それはそんなに時間がかかるです。だから、どうすれば同じことを行うことができます多くの行なしで 。
注:コーディングがわからないので、基本について説明することができます。
やり直して、SendKeysを使ってメモ帳にテキストを挿入しないでください。代わりにコンソールプログラムを作ることができます。 – crashmstr
@crashmstr世界初のメモ帳RPGを作成しない限り、その目的はありますか? ; p – Lankymart