aceavatars Posted October 14, 2006 Posted October 14, 2006 hello everyone..!! im having a problem when i excute my script...sometimes it runs fine sometimes it opens something else doono y...here is the script below.BASICALLY im trying to open my computer than create a folder and save the notepad in that...my script is not complete but stil it goes wrong..i mean it opens something else plz guide me where im going wrong thanx send ("^{Esc}") send ("{Up 9}") send ("{Enter}") WinWaitActive ("") send ("l") send ("{Enter}") DirCreate ("c:\test") run ("notepad") WinWaitActive ("") send ("Hello.this a test notepad {Enter} ") send ("check ur c:\TEST {Enter}") send ("^s") send ("test") send ("{Tab 7}")
aceavatars Posted October 14, 2006 Author Posted October 14, 2006 hello everyone..!! im having a problem when i excute my script...sometimes it runs fine sometimes it opens something else doono y...here is the script below.BASICALLY im trying to open my computer than create a folder and save the notepad in that...my script is not complete but stil it goes wrong..i mean it opens something else plz guide me where im going wrong thanxsend ("^{Esc}")send ("{Up 9}")send ("{Enter}")WinWaitActive ("")send ("l")send ("{Enter}")DirCreate ("c:\test")run ("notepad")WinWaitActive ("")send ("Hello.this a test notepad {Enter} ")send ("check ur c:\TEST {Enter}")send ("^s")send ("test")send ("{Tab 7}")please anyone guide me..if something is not understandable please be free to say me..i wil write again
MHz Posted October 14, 2006 Posted October 14, 2006 If you change you startmenu configuration later then your sends can fail. Maybe you could go alittle more direct at writing to a file? If DirCreate('c:\test') Then If FileWrite('c:\test\test.txt', 'Hello.this a test notepad' & @CRLF & 'check ur c:\TEST') Then Run('notepad c:\test\test.txt') EndIf EndIf Does not look as fancy but does get the task done.
aceavatars Posted October 14, 2006 Author Posted October 14, 2006 If you change you startmenu configuration later then your sends can fail. Maybe you could go alittle more direct at writing to a file? If DirCreate('c:\test') Then If FileWrite('c:\test\test.txt', 'Hello.this a test notepad' & @CRLF & 'check ur c:\TEST') Then Run('notepad c:\test\test.txt') EndIf EndIf Does not look as fancy but does get the task done. im sorry but i dint get u exactly what u want to clear me up please can u mak me a little more clear...
MHz Posted October 14, 2006 Posted October 14, 2006 im sorry but i dint get u exactly what u want to clear me up please can u mak me a little more clear...We do not have the same startmenu setup as you to confirm your sends. One thing I do notice though is that you send to an active window rather then any particular window so it is basically blind sends in action. WinWaitActive("") is not accurate enough so your sends can go almost anywhere.
aceavatars Posted October 15, 2006 Author Posted October 15, 2006 We do not have the same startmenu setup as you to confirm your sends. One thing I do notice though is that you send to an active window rather then any particular window so it is basically blind sends in action. WinWaitActive("") is not accurate enough so your sends can go almost anywhere.ya thats the problem itz giving,,,,u wont believe wht it did when i complied this script to exe and excueted ..at that time my yahoo messenger was running it automatically selected eac one of my friends and sended the message ""this is test"" it happened because of winwaitactive command ..i dint specify particular window to take over...thanx so much let me try 1st on my behalf if smoething goes wrong than i wil ask u...thanx
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