Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Can not open an EXE

$
0
0

I've been at this for about two weeks now.  I can not for the life of me open an exe!

 

Here is the function that calls the exe:

AutoIt         
Func scite4au3_model_update_context_menu_entries(Const $this, Const ByRef $context_menu_selections)   Local Const $autoit_directory = " """ & $this.GetAutoItDirectory() & """ "   Local Const $command = $this.EnableDisableContextMenuItems($context_menu_selections)   local const $definition = $this.GetLoadedDefinition()   local const $is_admin = IsAdmin()   Select     Case $is_admin And ($definition = "Production")       RunWait($this.StorageDirectory & "SciTE4AutoIt3\ContextMenuAdmin.exe" & $autoit_directory & "Production " & $command, '', @sw_hide)     Case $is_admin And ($definition = "BETA")       RunWait($this.StorageDirectory & "SciTE4AutoIt3\ContextMenuAdmin.exe" & $autoit_directory & "Beta " & $command, '', @sw_hide)     Case (Not $is_admin) And ($definition = "Production")       RunWait($this.StorageDirectory & "SciTE4AutoIt3\ContextMenuNonAdmin.exe" & $autoit_directory & "Production " & $command, '', @sw_hide)     Case (Not $is_admin) And ($definition = "BETA")       RunWait($this.StorageDirectory & "SciTE4AutoIt3\ContextMenuNonAdmin.exe" & $autoit_directory & "Beta " & $command, '', @sw_hide)   EndSelect EndFunc

Here is the code in the exe:

#AutoIt3Wrapper_testing=y #NoTrayIcon #RequireAdmin Run(@ScriptDir & "\ContextMenu.exe " & command(), '', @sw_show) func command()   local $command = ''   for $argument in $CmdLine     $command &= $argument   next   return $command endfunc

I've confirmed that the paths are correct.  I can click on the exe and it will execute.  Any ideas?

 

Edit: WIndows 7 x64.  AutoIt Production and Beta.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>