Rawox Posted May 17, 2010 Posted May 17, 2010 (edited) Hi there! Why do I get the error (showed in the attachment) When I run this: $Path = @WindowsDir & "\System32\StikyNot.exe" ConsoleWrite ( $Path ) ShellExecute ( $Path ) This is just so weird, I tried it with admin rights and still same problem... Ow, btw it says it can't find the file but when I go look in the directory it's there! (Image 2) Please give me an answer, I'm excited! Rawox. Edited May 17, 2010 by Rawox
PsaltyDS Posted May 17, 2010 Posted May 17, 2010 Care to translate the error message to English? Did it just not find that file, or was it expecting you to pass another file as a parameter? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 (edited) "Cannot find file ..... Check the name and try again" Are you running WIN7 X64? Edited May 17, 2010 by 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.
GEOSoft Posted May 17, 2010 Posted May 17, 2010 $path = @SystemDir & "\stikynot.exe" ShellExecute($path) Works for me George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 I get the above error when I run the below on Win7/X64: #AutoIt3Wrapper_UseX64=n $Path = @WindowsDir & "\System32\StikyNot.exe" ConsoleWrite ( $Path ) ShellExecute ( $Path ) 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.
GEOSoft Posted May 17, 2010 Posted May 17, 2010 I get the above error when I run the below on Win7/X64: #AutoIt3Wrapper_UseX64=n $Path = @WindowsDir & "\System32\StikyNot.exe" ConsoleWrite ( $Path ) ShellExecute ( $Path ) What do you get with @SystemDir instead of @WindowsDir "\system32\" George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 What do you get with @SystemDir instead of @WindowsDir "\system32\"When you run in X86 mode the sysdir is: C:\Windows\SysWOW64 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.
GEOSoft Posted May 17, 2010 Posted May 17, 2010 When you run in X86 mode the sysdir is: C:\Windows\SysWOW64Now I'm even more convinced that installing 32 bit was the better way to go. Besides saving on RAM it avoided headaches like this. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Rawox Posted May 17, 2010 Author Posted May 17, 2010 (edited) I get the above error when I run the below on Win7/X64: #AutoIt3Wrapper_UseX64=n $Path = @WindowsDir & "\System32\StikyNot.exe" ConsoleWrite ( $Path ) ShellExecute ( $Path ) @SystemDir indeed returns SysWOW64 and I'm on 64bit but this also doesn't work... same error. And it just says it can't find the file, nothing special about parameters etc. //EDIT: MSDN Article //EDIT2: cmd -> stikynot.exe doesn't work. //EDIT3: Found the problem. In some way it can't run it but if I copy it to another folder (not C:\Windows\System32) then it works Edited May 17, 2010 by Rawox
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 (edited) There is no x86 version of StickyNot.exe in the SysWOW64 subdir so it will not work when you run it from a x86 program on a X64 OS unless it is made available. Edited May 17, 2010 by 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.
Rawox Posted May 17, 2010 Author Posted May 17, 2010 (edited) So I should make it x64? How to do that within the script (without compiling)? BTW, FileCopy ( @WindowsDir & "\System32\StikyNot.exe", @DesktopDir, 1 ) also doesn't work... (returns 0) Edited May 17, 2010 by Rawox
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 Have you installed the x64 version of AutoIt3 at installtime? This determines the default. When you have the SciTE4Autoit3 installer installed you could use the directive I shown in my example and set it to Y. 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.
Rawox Posted May 17, 2010 Author Posted May 17, 2010 Well... I'm not 100% sure about the 64bit install, I think I chose it... And I already tried both y and n for #AutoIt3Wrapper_UseX64 although the text (#AutoIt3Wrapper_UseX64) stays black in SciTE
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 Well... I'm not 100% sure about the 64bit install, I think I chose it...And I already tried both y and n for #AutoIt3Wrapper_UseX64 although the text (#AutoIt3Wrapper_UseX64) stays black in SciTEShow me your SciTE console output when you run it. 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.
Rawox Posted May 17, 2010 Author Posted May 17, 2010 >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Scripts\StickyNoter\StickyNoter.au3" 0>Exit code: 0 Time: 0.217
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 (edited) >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Scripts\StickyNoter\StickyNoter.au3" 0>Exit code: 0 Time: 0.217 This means that you haven't installed the SciTE4AutoIt3 installer which is a prerequisite for the directives to work. Edited May 17, 2010 by 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.
Rawox Posted May 17, 2010 Author Posted May 17, 2010 This means that you haven't installed the SciTE4AutoIt3 installer which is a prerequisite for the directives to work. Huh? What do you mean, what do I have to do?
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 Huh? What do you mean, what do I have to do?look at my signature of each post. 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.
Developers Jos Posted May 17, 2010 Developers Posted May 17, 2010 By the way. Have a look at this script for testing: (I hope I defined it correctly) #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;Works when run on x64 OS in x64 mode ;Works when run on x86 OS $Path = @WindowsDir & "\System32\StikyNot.exe" ConsoleWrite ( $Path & @CRLF) ShellExecute ( $Path ) ;Works when run on x64 OS in x64 mode ;Works when run on x86 OS $Path = @SystemDir & "\StikyNot.exe" ConsoleWrite ( $Path & @CRLF) ShellExecute ( $Path ) ;Works when run on x64 OS in x86 mode $Path = @WindowsDir & "\Sysnative\StikyNot.exe" ConsoleWrite ( $Path & @CRLF) ShellExecute ( $Path ) 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.
Rawox Posted May 17, 2010 Author Posted May 17, 2010 (edited) Thanks Jos, Sorry I was being stupid, I thought it was automatically installed with AutoIt. This works now: #AutoIt3Wrapper_UseX64=y $Path = @WindowsDir & "\System32\StikyNot.exe" ConsoleWrite ( $Path ) ShellExecute ( $Path ) Edited May 17, 2010 by Rawox
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