Sign in to follow this  
Followers 0
aceavatars

PROBLEM WHN I EXCUTE MY SCRIPT

6 posts in this topic

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}")

Share this post


Link to post
Share on other sites



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}")

please anyone guide me..if something is not understandable please be free to say me..i wil write again

Share this post


Link to post
Share on other sites

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. :lmao:

Share this post


Link to post
Share on other sites

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. :lmao:

im sorry but i dint get u exactly what u want to clear me up please can u mak me a little more clear...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0