Jump to content

Script Loops Without Looping Code


bwon1994
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Developers

you are 100% sure you do not have a script compiled to notepad.exe?

Do you get a lot of Systemtray icons when you start the script?

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

Link to comment
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
 Share

  • Recently Browsing   0 members

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