Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Question] How Do I Make A Notepad Open And Type Something?
#1
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!(:
[Image: sighype.gif]
Reply
#2
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
Reply
#3
you use sendkeys command
http://msdn.microsoft.com/en-us/library/...S.85).aspx
slowly getting better
Reply
#4
Im confused a batch fiile..? like an exe file?
Reply
#5
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
Reply
#6
This is not possible with C++, but yes you may do it with vbscript. Easily done.
Reply
#7
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.
Reply
#8
(09-18-2011, 03:30 AM)Ace Wrote: 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.

Well, then I must be having less knowledge bout it.
Reply
#9
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)