Sign in to follow this  
Followers 0
bwon1994

Script Loops Without Looping Code

7 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



Yea.

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

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

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?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Yea thanks i found out why it didn't work...

There was a file called notepad.exe. The file i first made for my vista computer. Thank You ;)

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