Skyfree Posted January 14, 2014 Posted January 14, 2014 (edited) AutoIt v3.3.10.2 AutoIt3Wrapper v2.1.4.0 SciTE v3.3.7.0 In windows 8.1: #Region #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #EndRegion MsgBox(0,'',@OSVersion) run, #RequireAdmin MsgBox(0,'',@OSVersion) run, Why ?? Edited January 14, 2014 by Skyfree
JohnOne Posted January 14, 2014 Posted January 14, 2014 Interesting. what you get without admin? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Skyfree Posted January 14, 2014 Author Posted January 14, 2014 Interesting. what you get without admin? WIN_81
trancexx Posted January 14, 2014 Posted January 14, 2014 When you compile your script it gets manifest which determines different aspects of your executable, among which what @OSVersion returns. Considering you use Wrapper tool, it will also create manifest, delete the default one and add its own based on your directive. I'm not sure why default manifest gets removed then, because it shouldn't. Try newer wrapper, it's written and maintained by Jos. If you get the same thing with the newest tool then maybe he's not aware of what his tool is doing, so report that to him. ♡♡♡ . eMyvnE
Developers Jos Posted January 14, 2014 Developers Posted January 14, 2014 (edited) I will have a look to see what needs changing in the default manifest AutoIt3Wrapper updates the program with and provide an update. ps, in the mean time you can now use the new #pragma directive that is now build-in into aut2exe in stead of the #AutoIt3Wrapper directive: #pragma compile(ExecLevel, requireAdministrator) ;none, asInvoker, highestAvailable, requireAdministrator Jos Edited January 14, 2014 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 Jos Posted January 14, 2014 Developers Posted January 14, 2014 Uploaded a new Beta version 2.1.4.3 of AutoIt3Wrapper that now support the below options and defaults to win81 for compatibility when none is provide: #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator ;none, asInvoker, highestAvailable, requireAdministrator #Autoit3Wrapper_Res_Compatibility=win81 ;vista, win7, win8, win81 Let me know if that works or still needs changes, 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.
Moderators JLogan3o13 Posted January 14, 2014 Moderators Posted January 14, 2014 I tested successfully on 8.1, for what it is worth. Hopefully this resolves the OP's problem. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
guinness Posted January 14, 2014 Posted January 14, 2014 Seems fixed as I get WIN_81. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
Skyfree Posted January 15, 2014 Author Posted January 15, 2014 Uploaded a new Beta version 2.1.4.3 of AutoIt3Wrapper that now support the below options and defaults to win81 for compatibility when none is provide: #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator ;none, asInvoker, highestAvailable, requireAdministrator #Autoit3Wrapper_Res_Compatibility=win81 ;vista, win7, win8, win81 Let me know if that works or still needs changes, Jos Thanks ! AutoIt v3.3.10.2 AutoIt3Wrapper v2.1.4.3 SciTE v3.3.7.0 Use code: #Region #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #Autoit3Wrapper_Res_Compatibility=win81 #EndRegion MsgBox(0,'',@OSVersion) Or: #Region #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #EndRegion MsgBox(0,'',@OSVersion) Compiled and run :
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now