Jump to content
tbohon

Missing File

Recommended Posts

tbohon

Loaded from latest releases of both AutoIt and SciTE and attempted to test by creating a simple SQLite script.  When trying to run the script I get an 'Error Opening File' error on line 45 of AutoIt3Wrapper.au3 which consists of the following code:

 

#include <WinAPIFiles.au3>

 

Unable to find this file anywhere on my hard drive and unable to find any patch or similar error on the forum.

Help?

 

TIA ...   Tom

Edited by tbohon

Share this post


Link to post
Share on other sites
tbohon

Attached is a screen capture ...

 

Thanks Jos!

SciTEError.JPG

Share this post


Link to post
Share on other sites
Jos

That is not really what I am looking for, but rather the bottom part where normally all output is shown.
I also would have expected this error to show up in the SciTE output pane. 

Do you have any lines showing at al in the bottom window part of SciTE?

Jos

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
rudi

Hi.

That file should be located here:
 

C:\Program Files (x86)\AutoIt3\Include\WinAPIFiles.au3

 

Get the freeware tool "Evertything". It helps you to locate files on local NTFS drives (extremly fast!)

I'd like to suggest, to uninstall Autoit & SciTE, reboot your computer, and then reinstall both using "Run as Administrator"


Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
tbohon
22 hours ago, Jos said:

That is not really what I am looking for, but rather the bottom part where normally all output is shown.
I also would have expected this error to show up in the SciTE output pane. 

Do you have any lines showing at al in the bottom window part of SciTE?

Jos

Sorry, didn't have the error pane turned on (it is now).

 

Here is what the error pane shows when that error appears:

 

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\au3work2\mysqlitetest.au3" /UserParams  

Share this post


Link to post
Share on other sites
tbohon
5 hours ago, rudi said:

Hi.

That file should be located here:
 

C:\Program Files (x86)\AutoIt3\Include\WinAPIFiles.au3

 

Get the freeware tool "Evertything". It helps you to locate files on local NTFS drives (extremly fast!)

I'd like to suggest, to uninstall Autoit & SciTE, reboot your computer, and then reinstall both using "Run as Administrator"


Regards, Rudi.

Thanks Rudi.  Double checked that location, not there.  I think I'll follow your suggestion (I am already an administrator on this machine) and see what happens.  Stay tuned!

Share this post


Link to post
Share on other sites
rudi

Hi.

 

Use Sysinternals' "procmon.exe" with filtering "path" <includes> "WinAPIFiles.au3", to see what's going wrong during the installation process.

 

Possibly an over active AV-Scanner?

 

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites
Jos
5 hours ago, tbohon said:

Here is what the error pane shows when that error appears:

 

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\au3work2\mysqlitetest.au3" /UserParams  

I need ALL information from that output pane to see what is happening.

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
tbohon
On 5/20/2016 at 3:14 PM, Jos said:

I need ALL information from that output pane to see what is happening.

Jos

Jos - that is all that shows in the output pane.  Following Rudi's suggestion I uninstalled AutoIt and the (full version of) SciTE, rebooted and installed just the AutoIT package from the download page.  Do NOT get that error any longer ... maybe it's a conflict with the full SciTE version and the AutoIT basic version?  Or maybe I simply screwed something up in the process.  Nevertheless I can live with the basic SciTE version which is working so I don't think you need to waste any more time on it for me anyway.  I'll press forward and start having fun programming again.

 

Thanks so much for helping me out!

 

Tom

Share this post


Link to post
Share on other sites
tbohon
On 5/20/2016 at 3:51 AM, rudi said:

Hi.

I'd like to suggest, to uninstall Autoit & SciTE, reboot your computer, and then reinstall both using "Run as Administrator"


Regards, Rudi.

Followed your idea above Rudi and that error goes away.  I'm guessing I screwed something up in overwriting the SciTE included in the AutoIT package with the full version of SciTE.  After uninstalling, rebooting and reinstalling just the AutoIT distribution that error disappears ... so for me right now life is good! :)

 

Thanks again for the assist.

 

Tom

Share this post


Link to post
Share on other sites
Jos
4 minutes ago, tbohon said:

Jos - that is all that shows in the output pane.

Strange...  AutoIt3Wrapper should should all kinds of information when started.
Good to hear things cleared up with re-installation, but it doesn't make sense to me yet. :)

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

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

  • Similar Content

    • ammaul
      By ammaul
      Hi folks, I'm having problems with a screenshot capture script.
      Let me explain.
      Everyday I (and my colleagues at work) need to take some screenshots from a web-page. These screenshots are used to compile a report. Normally, I (and others) used to log in into the website and took screenshots of desired graphics and tables. This is tediuos and time consuming. To easy this task I made a script using autoit that basically logs into the website (user and password) and using some clicks, stroke send, coordinates, it is able to generate the graphics and save them to some folders into our network (this script saves arouund 50 pics. It works like a sharm.
      In order to make things easier, I tried to schedule this script (compiled to a Screnpics.exe file) using task scheduler from windows. We already use this (task scheduler) to run some vbs scripts, some vba excel scripts and so on. The computer used for this tasks is a windows 7 desktop computer. Due to security policies, the computer locks after some time. All this tasks run in the locked computer.
      My script screenpics.exe runs also from this locked computer. When the computer is unlocked, it does everything as expected. But, when it is locked, all the "pics" are BLACK. As I understand, it runs ok, but, as the "windows" are innactive, it prints what it "sees": a black rectangular.
      Some details: The web-page with hold the information I need, it only works in Firefox and, because of this it couldn`t be managed by vba or some "getobject" like commands. In fact, it has some flash things that make it impossible to control programatically. So my script is based on mouse move to coordinates, mouse click, screen capture and so one.
       
      So, I read many posts trying to figure out a way to overcome this, but... nothing came to mind. My first idea was try to unlock windows. Theses lead me to some posts with no solution. This is worse because I'm not a computer admin, so procedures that need to replace/change the register are not an option.
       
      If someone has any idea, I'll be gratefull.
    • therks
      By therks
      Has anybody else noticed that Windows 7 reacts ignorantly when you use the Windows key + arrow key shortcuts on a GUI with GUIEventMode set to 1? I discovered this recently when I was working on an app where I wanted complete control over the maximize/minimize buttons.
      Just give it a spin:
      #include <GUIConstants.au3> Opt('GUIEventOptions', 1) $hGUI = GUICreate('', 300, 200, Default, Default, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX)) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_MAXIMIZE ToolTip('Maximized') Case $GUI_EVENT_MINIMIZE ToolTip('Minimized') Case $GUI_EVENT_RESTORE ToolTip('Restored') Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Run that, then hit Win+Up or Win+Down. None of those events get triggered, and it still maximizes/minimizes. Although I can't get it to restore down from a maximize unless the window is also resizable ($WS_THICKFRAME in the style).
      Is there a way to stop Windows from doing what it wants or is the only option to check with WinGetState() and then change it back?
       
      Windows 10 seems to respect my settings, and I don't have any other versions to test on.
    • msd1994
      By msd1994
      I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.)
      In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well.
      Does anybody have some idea of a way I could get this script working again?
       
      edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred.
       
      Thanks!
    • steveeye
      By steveeye
      hey, can anybody enlighten on lesser known Windows hacks or uses ?
    • afallenhope
      By afallenhope
      Hello all! 
      I am having a bit of trouble and was wondering if anyone may have a workaround for my issue. I made a script that would automatically install a piece of software each night on a Windows 7 Box. Now I have been instructed to do the same with a Windows 10 box since the application is now being tested on Windows 10. 
      The way I did the win7 installation was that I made a script and then made an executable that I call with a batch file along with the Installer. So the process is 
      AutoitMainFile calls batch file, batch file opens Installer, and the automatedinstaller.exe  The automatedinstlaller waits 10-20 seconds to make sure the Installer has been fully loaded.
      When I try to do the same both get loaded but the automatedinstallation.exe does not send commands to the installer. The code does work and nothing from the program we are wanting to install has changed as our Windows 7 runs every night no problem. 
       
      Do I need to make a new automatedinstall script for windows 10? 
      Any advice is appreciated 
      Thanks,
      Richard
×