Jump to content

Recommended Posts

Posted (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! :idea:

Rawox.

post-40706-12741173432594_thumb.png

post-40706-12741174179218_thumb.png

Edited by Rawox
Posted

$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
Posted

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

Posted

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!"

Posted

When you run in X86 mode the sysdir is: C:\Windows\SysWOW64

Now 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!"

Posted (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 :idea:

Edited by Rawox
  • Developers
Posted (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 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.
  :)

  • Developers
Posted

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

Posted

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
Posted

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

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

Posted

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "D:\Scripts\StickyNoter\StickyNoter.au3"    
0>Exit code: 0  Time: 0.217

  • Developers
Posted (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. :idea: Edited 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.
  :)

Posted

This means that you haven't installed the SciTE4AutoIt3 installer which is a prerequisite for the directives to work. :idea:

Huh? What do you mean, what do I have to do?

  • Developers
Posted

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

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
  • Recently Browsing   0 members

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