Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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:

Posted

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...
Posted

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.
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...