Posts: 358
Threads: 62
Joined: Jun 2011
Reputation:
9
I have seen programs that have files where when you open them, it is notepad and it starts typing something.
I would like to know how to do that?
If anyone knows, please tell me.
Contact:
PM
AIM: dakotahibbard
or
Reply to thread.
Thanks!(:
Posts: 106
Threads: 5
Joined: Aug 2011
Reputation:
0
Those are special batch files that are created to do that. They start out as text files, and then are later turned into VBS files. Id suggest looking around a forum with such knowledge that exists. :]
-DeathxXxAwaits
Posts: 126
Threads: 1
Joined: Sep 2011
Reputation:
0
Im confused a batch fiile..? like an exe file?
Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
Since this thread was bumped, you can create a text file, then open it and delete the original. Or you can use Windows messages to send a message to the system about the edit class embedded in notepad.
Haphazard, that link you gave was for Windows shell scripting in vbs, otherwise that's also assuming he uses Visual C++, unless the OP posted this in the wrong section, and it was supposed to be VB.net
Posts: 16
Threads: 2
Joined: May 2011
Reputation:
0
This is not possible with C++, but yes you may do it with vbscript. Easily done.
Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
Not possible with C++, what are you talking about? It's very possible, look into the windows API for sending windows messages through user32.dll.
Posts: 5,793
Threads: 268
Joined: Sep 2010
Reputation:
85
09-18-2011, 03:40 AM
(This post was last modified: 09-18-2011, 03:41 AM by AceInfinity.)
he would need to specify the params for the specific system window, and send the data to the "Edit" class for notepad. Also, pretty much anything that can be done with vbs, can be done in C++. It's a more developed language.