Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#2349 closed Bug (Works For Me)

Windows 8 #RequireAdmin Broken in Scite

Reported by: BinaryBrother@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

If you open Scite normally, by double clicking on the icon, on a stock Windows 8 install and try to build any script with the #RequireAdmin tag. It will simply cease to function. Here is a replicating video.

http://screencast.com/t/w3UjQB4ZxFYj

#include <Crypt.au3>
#RequireAdmin
ConsoleWrite("Are we even initializing??" & @CRLF)
_Crypt_Startup()
If FileExists("C:\Windows\Explorer.exe") Then ConsoleWrite("FFMPEG does exist." & @CRLF)
$FFMPEG_MD5 = _Crypt_HashFile("C:\Windows\Explorer.exe", $CALG_MD5)
If @error Then

consolewrite("Error detected..." & @CRLF)

EndIf

_Crypt_Shutdown()
ConsoleWrite($FFMPEG_MD5 & @CRLF)
ConsoleWrite("Why do you hate me?" & @CRLF)

Attachments (0)

Change History (6)

comment:1 Changed 11 years ago by anonymous

Output on failure with #RequireAdmin

"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\BinaryBrother\Desktop\Wifi Au8dible.au3" /UserParams

+>21:27:09 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64)

Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3

+>21:27:09 AU3Check ended.rc:0

Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\BinaryBrother\Desktop\Wifi Au8dible.au3"

--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
+>21:27:09 AutoIt3.exe ended.rc:0

Exit code: 0 Time: 0.641

comment:2 Changed 11 years ago by BinaryBrother@…

A "workaround" is opening Scite with Administrative priveledges each time or manually setting it to always open with admin privs, but Scite should either ask for elevation or start elevated. IMO.

comment:3 Changed 11 years ago by Valik

You don't understand how #RequireAdmin works so you request that a text editor require elevation? Try your script again by replacing ConsoleWrite() with MsgBox().

comment:4 Changed 11 years ago by Jos

Your script is re-shelled with Admin privileges and the original is ended, that is why you see this behaviour.

Jos

Version 0, edited 11 years ago by Jos (next)

comment:5 Changed 11 years ago by Jos

  • Resolution set to Works For Me
  • Status changed from new to closed

comment:6 Changed 11 years ago by anonymous

It's good to see you, Valik. I just expected the IDE to maintain a handle to the script that it was debugging, like others. So I assumed it was a permission issue. It's clearly not and I appreciate the responses.

Thanks for spelling it out, Jos. .

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.