Jump to content

Recommended Posts

Posted (edited)

Hey! Just a warning: The attached file makes "notepad.exe" run infinitly. I had to restart my computer. Posted Image

I'm pretty new to this so I tried messing around with the examples they gave us. In Notepad1, I got rid of all the comments and the last line of code: WinWaitClose("[CLASS:Notepad]").

So the result looked like this:

Run("notepad.exe")

WinWaitActive("[CLASS:Notepad]")

Send("Hello from Notepad.{ENTER}1 2 3 4 5 6 7 8 9 10{ENTER}")

Sleep(500)

Send("!f")

Send("x")

WinWaitActive("Notepad")

Send("n")

I then used "Aut2exe" to make it into an .exe file (which is what is attached). I can't figure out whats wrong Posted Image. Plus, the actual programs don't ever appear, only the processes of notepad.exe does.

Does anyone know what's wrong?

Thanks in advance ^^ Hope I can learn to use this well Posted Image

file: http://www.mediafire.com/?welmmlcju3f

Edited by bwon1994
  • Developers
Posted

Yea.

Just a sec...uploading file is too big apparently

you are constantly running your own script NOT Notepad that comes with windows.

Delete your notepad.exe script and rename your source.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

you are constantly running your own script NOT Notepad that comes with windows.

Delete your notepad.exe script and rename your source.

Jos

Oh that's what you meant. No it's named Notepad1.exe now and still does the same thing.

Even if I double click once, it runs over and over. Why is that?

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