NELyon Posted June 15, 2006 Share Posted June 15, 2006 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") Link to comment Share on other sites More sharing options...
Developers Jos Posted June 15, 2006 Developers Share Posted June 15, 2006 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 ? 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 More sharing options...
Valuater Posted June 15, 2006 Share Posted June 15, 2006 the script you posted wont even runrun('Notepad.exe")8) Link to comment Share on other sites More sharing options...
Valuater Posted June 15, 2006 Share Posted June 15, 2006 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 right8) Link to comment Share on other sites More sharing options...
CyberSlug Posted June 15, 2006 Share Posted June 15, 2006 So what JdeB is saying is that you have at least two solutions: 1) Rename your compiled script. 2) (Better) Change the run statement to Run(@WindowsDir & \notepad.exe") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
herewasplato Posted June 15, 2006 Share Posted June 15, 2006 Run(@WindowsDir & "\notepad.exe")...something about this thread... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
theguy0000 Posted June 15, 2006 Share Posted June 15, 2006 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 Link to comment Share on other sites More sharing options...
NELyon Posted June 15, 2006 Author Share Posted June 15, 2006 yeah, i did name it notepad.au3... guess that was the problem Link to comment Share on other sites More sharing options...
MagickCrafter Posted June 15, 2006 Share Posted June 15, 2006 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) =) Link to comment Share on other sites More sharing options...
NELyon Posted June 15, 2006 Author Share Posted June 15, 2006 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 Link to comment Share on other sites More sharing options...
Paulie Posted June 15, 2006 Share Posted June 15, 2006 (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 XDAs much as i love autoit, wouldn't this have been much easier?Start>>Search>>Notepad.exethen make a shorcutEdit: I Spelled notepad wrong Edited June 15, 2006 by Paulie Link to comment Share on other sites More sharing options...
jefhal Posted June 16, 2006 Share Posted June 16, 2006 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 XDWhy 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now