Sign in to follow this  
Followers 0
NeverDUN

Unable To Add Resources ..

6 posts in this topic

As the title says.. Every time i try to compile ANY script after installing/updating scite4Autoit3..

Error

Unable to add resources: 

C:UsersuserAppDataLocalAutoIt v3Aut2Exe

 

Correct me if i'm wrong but do i have to exclude that path somehow?

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=----.ico
#AutoIt3Wrapper_Run_Tidy=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstantsEx.au3>

HotKeySet("{ESC}", "Terminate")

Program()

Func Program()
    Local $widthCell

    ; Create a GUI with various controls.
    Local $hGUI = GUICreate("Open v1.06", 300, 200)


    $widthCell = 200
    GUICtrlCreateLabel("Instructions:", 0, -1)
    GUICtrlCreateLabel("1: ----- , ", 10, 30, $widthCell)
    GUICtrlCreateLabel("2: -----", 10, 60)
    GUICtrlCreateLabel("3: -----", 10, 90)
    GUICtrlCreateLabel("4: -----", 10, 120)

    ; Create a button control.
    Local $iNotepad = GUICtrlCreateButton("Run Notepad", 10, 170, 85, 25)
    Local $iOpen = GUICtrlCreateButton("Open", 110, 170, 85, 25)
    Local $iClose = GUICtrlCreateButton("Close", 210, 170, 85, 25)

    ; Display the GUI.
    GUISetState(@SW_SHOW, $hGUI)

    Local $iPID = 0

    ; Loop until the user exits.
    While 1

        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE, $iClose
                ExitLoop

            Case $iNotepad
                ; Run Notepad.
                $iPID = Run("notepad.exe", "")

            Case $iOpen
                ; Open maximized.
                $iPID = Run("file.exe", "", @SW_SHOWMAXIMIZED)

        EndSwitch
    WEnd

    ; Delete the previous GUI and all controls.
    GUIDelete($hGUI)

    ; Close the Notepad process using the PID returned by Run.
    If $iPID Then ProcessClose($iPID)
EndFunc   ;==>Program

Func Terminate()
    Exit 0
EndFunc   ;==>Terminate

Share this post


Link to post
Share on other sites



What OS, AutoIt version, SciTE version and bitness are you using, and is the whole of your code? Your posted script works just fine for me when compiling.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Set your AV to exclude the shown directory as that is used by Aut2Exe (and AutoIt3Wrapper) as tempfile for processing.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Set your AV to exclude the shown directory as that is used by Aut2Exe (and AutoIt3Wrapper) as tempfile for processing.

Jos

 

AV = AntiVirus ?

If so i actually dont have one on here.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

AV = AntiVirus ?

If so i actually dont have one on here.

Correct, AV stands for Anti Virus, and there is likely some program locking the file when aut2exe tries to update it. Maybe some automatic backup program?

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Correct, AV stands for Anti Virus, and there is likely some program locking the file when aut2exe tries to update it. Maybe some automatic backup program?

You my good sir, are a smart man.

Gracias. Problem Solved.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0