#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 12 years ago by anonymous
comment:2 Changed 12 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 12 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 12 years ago by Jos
Your script is re-shelled with Admin privileges by Autoit3 and the original is ended, that is why you see this behaviour.
Jos
comment:5 Changed 12 years ago by Jos
- Resolution set to Works For Me
- Status changed from new to closed
comment:6 Changed 12 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.
Output on failure with #RequireAdmin
+>21:27:09 Starting AutoIt3Wrapper v.2.1.2.9 Environment(Language:0409 Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64)
+>21:27:09 AU3Check ended.rc:0
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
+>21:27:09 AutoIt3.exe ended.rc:0