Sign in to follow this  
Followers 0
NELyon

what the heck happened here?

12 posts in this topic

OK, this is messed up. here was my EXACT code:

run('Notepad.exe")
sleep(200)
WinWaitActive("Untitled - Notepad")
send("you can type text now")
sleep(500)

It ran fine as a au3 code, but when i compiled it, it ran notepad just fine... about 500 times, killing all my ram and i had to restart... also each notepad window, instead of sending "you can type text" it sent ("yyyyyyooooooouu caaaaaaaaaaaaannnn ttttttypeeeeeeeeee texxxxxxxt nnnnnooowwwww")

Share this post


Link to post
Share on other sites



OK, this is messed up. here was my EXACT code:

run('Notepad.exe")
sleep(200)
WinWaitActive("Untitled - Notepad")
send("you can type text now")
sleep(500)

It ran fine as a au3 code, but when i compiled it, it ran notepad just fine... about 500 times, killing all my ram and i had to restart... also each notepad window, instead of sending "you can type text" it sent ("yyyyyyooooooouu caaaaaaaaaaaaannnn ttttttypeeeeeeeeee texxxxxxxt nnnnnooowwwww")

This is not the exact code since it has a syntax error in the run statement, but let me guess....

You called your script notepad.au3 and compiled that .... right ?


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

Share this post


Link to post
Share on other sites

the script you posted wont even run

run('Notepad.exe")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

This is not the exact code since it has a syntax error in the run statement, but let me guess....

You called your script notepad.au3 and compiled that .... right ?

very good guess JdeB...

I'll bet your right

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Run(@WindowsDir & "\notepad.exe")

...something about this thread...


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

I think we need a FAQ on this...

Lar.

I had this problem from the day I started with AutoIt and to this day I never knew what I did wrong. I guess I do now lol

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

yeah, i did name it notepad.au3... guess that was the problem

Share this post


Link to post
Share on other sites

yeah, i did name it notepad.au3... guess that was the problem

Also, you may want to change

send("you can type text now")

To

send("you can type text now", 1)

The second one will send the keys RAW so it won't like press alt f4 if you put send("Guess what I press!{F4}", 1)

=)

Share this post


Link to post
Share on other sites

yeah, but i just made this for my friend who hates going to run>>notepad.exe on his computer every time and he can't find the notepad.exe file on his comp to make a shortcut XD

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

yeah, but i just made this for my friend who hates going to run>>notepad.exe on his computer every time and he can't find the notepad.exe file on his comp to make a shortcut XD

As much as i love autoit, wouldn't this have been much easier?

Start>>Search>>Notepad.exe

then make a shorcut

Edit: I Spelled notepad wrong

Edited by Paulie

Share this post


Link to post
Share on other sites

yeah, but i just made this for my friend who hates going to run>>notepad.exe on his computer every time and he can't find the notepad.exe file on his comp to make a shortcut XD

Why not just put Notepad in the startup folder and leave it running all the time?

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

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