Jump to content

Recommended Posts

Posted

Hello,

I like to be able to drag and drop files onto SciTE.

This requires I do not run SciTE as administrator.

If I do not run SciTE as administrator, when I try to run Tidy from within SciTE

I get this error message:

"The requested operation requires elevation".

So my question is, how can I achieve both drag and drop ability, and be able to run Tidy?

Thanks for any ideas.

  • Developers
Posted (edited)
4 minutes ago, frew said:

I get this error message:

"The requested operation requires elevation".

Why do you get that error?
That should normally not be the case.

Jos

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
2 hours ago, Jos said:

Why do you get that error?
That should normally not be the case.

Jos

Windows 10 Creators

Script location: "C:\tmp\SciTE_test_1.au3"

This script has only one line:

MsgBox(262144, "Hello", "Hi")

btw, same results with or without #RequireAdmin at top of script

 

If I run SciTE as administrator, Tidy works, but drag and drop does not work.

If I run SciTE  not as administrator, Tidy does not work, but drag and drop does work.

 

Just wondering is this is a known issue, or if I'm doing something wrong.

Thanks for any other ideas.

  • Developers
Posted (edited)

How did you install the full version of SciTE4AutoIt3 as Tidy should not give that prompt?
Have you changed the properties of Tidy at all as it doesn't have the "require admin" switched on by default?

Jos 

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 (edited)

So when do you get the prompt exactly?  in other words: what do you do to get the prompt?
Anything shown in the SciTE outputpane when you do this? (please show the details)

Jos 

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
8 minutes ago, frew said:

Checked it and looks like Tidy does not have run as administrator enabled.

Just to double check: You did run tidy.exe manually and it did not give you the prompt?

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

 

Both SciTE and Tidy are set to not run as administrator at their properties> compatibility.

I click on SciTE, which is located here:

"C:\Program Files\AutoIt3\SciTE\SciTE.exe"

Tidy is located here:

"C:\Program Files\AutoIt3\SciTE\Tidy\Tidy.exe"

I open Scite by right click> edit script on this .au3

"C:\tmp\SciTE_test_1.au3"

This script contains only one line:

MsgBox(262144, "Hello", "Hi")

Once that script opens into SciTE I immediately do Ctrl+R to run Tidy.

At the bottom of SciTE in the Output panel I see:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Tidy /in "C:\tmp\SciTE_test_1.au3"
>The requested operation requires elevation.


Thanks for any other ideas.

  • Developers
Posted (edited)

Have you also checked   C:\Program Files\AutoIt3\AutoIt3.exe whether that has "Run as Administrator" checked  as it looks like you get the warning on that, not on running tidy.

Jos 

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

Just checked, and yes C:\Program Files\AutoIt3\AutoIt3.exe does have "Run as Administrator" checked.

Do you recommend that be"Run as Administrator" checked?

Posted

Okay I unchecked C:\Program Files\AutoIt3\AutoIt3.exe "Run as Administrator"

ran Tidy is SciTE as above, and now get this:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Tidy /in "C:\tmp\SciTE_test_1.au3"
+>15:49:30 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Users\main\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\main\AppData\Local\AutoIt v3\SciTE
>Running Tidy (17.224.935.0)  from:C:\Program Files\AutoIt3\SciTE\tidy
!> Stopping Tidy process because the input File cannot be updated. Check security/readonly attributes for file:C:\tmp\SciTE_test_1.au3
!>15:49:30 Tidy ended.rc:99
+>15:49:30 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 0.6499

 

and the .au3 shows it's not read only

 

  • Developers
Posted

There still seems to be a rights issue for updating the file   "C:\tmp\SciTE_test_1.au3" with this userid at regular security level.
Did you check this file's security settings?

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

Now we get into territory I'm not familiar with, but interesting you mention that,

so I tried putting the same .au3 onto my desktop, I heard that helps sometimes in these cases,

and interestingly now no error message at bottom of SciTE when I run Tidy as above.

So what does all this mean do yo think?

Here's the output:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Tidy /in "C:\Users\main\Desktop\SciTE_test_1.au3"
+>16:01:29 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Users\main\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\main\AppData\Local\AutoIt v3\SciTE
>Running Tidy (17.224.935.0)  from:C:\Program Files\AutoIt3\SciTE\tidy
+>16:01:29 Tidy ended.rc:0
+>16:01:29 AutoIt3Wrapper Finished.

  • Developers
Posted

To me this means that either the directory  C:\tmp  or the file itself has the security rights set in a way you  are allowed only to read and can't Write/Delete files.
Just right-click on the file and Select Properties/Security and check the details for your userid in the shown list. It might be you need to do this on the directory to reset it for the whole directory.

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

Interestingly it looks like write permissions are allowed on both the file and the directory at

"C:\tmp\SciTE_test_1.au3"

But still as you say, somewhere it looks like something is not letting Tidy write to that file.

Thank you very much for you help in looking into this.

Posted

Okay, with all your help looking into this, I think I found the magic combination to be able to

both drag and drop even this "C:\tmp\SciTE_test_1.au3"

and have Tidy work fine with that file in SciTE

"C:\Program Files\AutoIt3\AutoIt3.exe"  NO run as adiministrator

"C:\Program Files\AutoIt3\SciTE\SciTE.exe"  NO run as adiministrator

"C:\Program Files\AutoIt3\SciTE\Tidy\Tidy.exe"  YES run as adiministrator

That seems to do the trick, so far so good.

Thanks again for your help with this.

 

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
×
×
  • Create New...