aceavatars Posted October 2, 2006 Share Posted October 2, 2006 hi everyone..im really a new bie to scripting and this programming stuff..i saw in example to open a notepad and send keystrokes ...till tht i did by taking help frm it...but thn if i want to mak it save thn wht commands shuld i giv thr so tht it saves itself with a specified name which i want and saves to the directory whr i want ..plz guide me....i knw itz a really simple but im total a newbie...i found this thngvery interesting Link to comment Share on other sites More sharing options...
AceLoc Posted October 2, 2006 Share Posted October 2, 2006 now in normal English? [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
aceavatars Posted October 2, 2006 Author Share Posted October 2, 2006 now in normal English? hey i dint get u..wht do u mean excatly Link to comment Share on other sites More sharing options...
jvanegmond Posted October 2, 2006 Share Posted October 2, 2006 Here's a way to go around Notepad, this can save you a lot of trouble. But please don't post it bold and big anymore.. $Text = "Hello" & @CRLF & _ "How are you doing?" & @CRLF $DirectoryandFilename = "C:\mytext.txt" FileWrite ( $DirectoryandFilename, $Text ) github.com/jvanegmond Link to comment Share on other sites More sharing options...
AceLoc Posted October 2, 2006 Share Posted October 2, 2006 (edited) maybe this is something you can understand a little better: $a = ("notepad.exe") Run($a) WinWaitActive("") Send("This is an example 8D!") WinWaitActive("") Send("^" & "s") WinWaitActive("") Send("Example{ENTER}") WinWaitActive("") WinKill("Example -") Exit Edited October 2, 2006 by AceLoc [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now