Jump to content
Sign in to follow this  
coolboy2295

Cann't open include file

Recommended Posts

coolboy2295

I have download and install new autoit and scite4autoit3

But it got error with au3check.

It 's cann't open include file I have already put in script dir

That problem not happen with default include file

Help me

Share this post


Link to post
Share on other sites
Melba23

coolboy2295,

Help me

We need a bit more information to do that. :)

- What is this include file you have put in your script folder?

- How does it differ from the "default" include file?

- How have you added the new include file to your script?

- What is the exact message you are getting from Au3Check? ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
coolboy2295

This you can see the report

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "D:AutoITnonamenoname.au3"
+>16:02:43 Starting AutoIt3Wrapper v.2.1.0.8    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/  CPU:X64 OS:X86)
>Running AU3Check (1.54.22.0)  from:C:Program FilesAutoIt3
D:AutoITnonamenoname.au3(12,10) : ERROR: can't open include file <WinHttp.au3>.
#include <WinHttp.au3>
~~~~~~~~~^
D:AutoITnonamenoname.au3(15,10) : ERROR: can't open include file <GUIExtender.au3>.
#include <GUIExtender.au3>
~~~~~~~~~^
D:AutoITnonamenoname.au3(29,24) : ERROR: _GUIExtender_Init(): undefined function.
_GUIExtender_Init($hgui)
~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(39,34) : ERROR: _GUIExtender_Section_Start(): undefined function.
_GUIExtender_Section_Start(45, 15)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(40,60) : ERROR: _GUIExtender_Section_Action(): undefined function.
_GUIExtender_Section_Action(2, "", "", 50, 45, 15, 15, 0, 1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(41,26) : ERROR: _GUIExtender_Section_End(): undefined function.
_GUIExtender_Section_End()
~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(43,69) : ERROR: _GUIExtender_Obj_Data(): undefined function.
_GUIExtender_Obj_Data(GUICtrlCreateObj($oIE, 10, 60, 350, 200), $oIE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(118,57) : ERROR: _WinHttpCrackUrl(): undefined function.
Local $crack = _WinHttpCrackUrl("http://www.giavang.net")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(197,31) : ERROR: _GUIExtender_Section_Extend(): undefined function.
_GUIExtender_Section_Extend(0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(278,24) : ERROR: _winhttpopen(): undefined function.
$hopen = _winhttpopen()
~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(279,90) : ERROR: _winhttpconnect(): undefined function.
If Not @error And $port = $mainport Then $hconnect = _winhttpconnect($hopen, $url, $port)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(281,76) : ERROR: _winhttpopenrequest(): undefined function.
If Not @error Then $hrequest = _winhttpopenrequest($hconnect, "GET", $root)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(282,50) : ERROR: _winhttpsendrequest(): undefined function.
If Not @error Then _winhttpsendrequest($hrequest)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(283,54) : ERROR: _WinHttpReceiveResponse(): undefined function.
If Not @error Then _WinHttpReceiveResponse($hrequest)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(284,41) : ERROR: _winhttpquerydataavailable(): undefined function.
If _winhttpquerydataavailable($hrequest)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(287,43) : ERROR: _winhttpreaddata(): undefined function.
$sChunk = _winhttpreaddata($hrequest, 1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(304,31) : ERROR: _winhttpclosehandle(): undefined function.
_winhttpclosehandle($hrequest)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(356,51) : ERROR: _WinHttpBinaryConcat(): undefined function.
$sData = _WinHttpBinaryConcat($sData, $sChunk)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3(397,25) : ERROR: _GUIExtender_Restore(): undefined function.
_GUIExtender_Restore()
~~~~~~~~~~~~~~~~~~~~~^
D:AutoITnonamenoname.au3 - 19 error(s), 0 warning(s)
!>16:02:44 AU3Check ended.rc:2
>Exit code: 0    Time: 2.426

Do you need any thing else?

Share this post


Link to post
Share on other sites
Melba23

coolboy2295,

I see you are adding the include file with:

#include <GUIExtender.au3>

Where exactly is this include file? In the script folder? If so, then try:

#include "GUIExtender.au3"

If it is elsewhere then you need to use the full path. ;)

Perhaps the Adding UDFs to AutoIt and SciTE tutorial in the Wiki might be of interest. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
water

IIRC: If you stored your UDFs in a "User Include Dir" you need to re-define after you installed SciTE. In SciTE press Ctrl+1 and SciTEConfig will be opened.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
coolboy2295

Well it is in the script dir. But i use #include "D:AutoITnonameWinHttp.au3.au3" it is work And not work with:

#include <WinHttp.au3>

#include "WinHttp.au3"

#include <WinHttp.au3> used to work but i have reinstall window and it's not work. Is there any error.

Anyway my problem is solves

Thanks

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  

  • Similar Content

    • TheDcoder
      By TheDcoder
      Hello, just stumbled across this behaviour while I was working on my project.
      I am getting a "<function> called with wrong number of args" on a GUICtrlSetOnEvent line, the <function> as far as I can see accepts only 1 optional argument so it would just work fine with a GUICtrlSetOnEvent callback. The error surfaced when I add code which called the <function> with a single argument... it was working without any errors before that.
      Here is the actual code (you can download the repository as zip and run it out of the box to get the error), the <function> is GUI_BridgeHandler and this is my SciTE Output:
      >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "E:\Projects\AutoIt\ProxAllium\ProxAllium.au3" /UserParams +>18:53:37 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0 Keyboard:00000409 OS:WIN_81/ CPU:X64 OS:X64 Environment(Language:0809) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\TheDcoder\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\TheDcoder\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.3) from:C:\Program Files (x86)\AutoIt3 input:E:\Projects\AutoIt\ProxAllium\ProxAllium.au3 "E:\Projects\AutoIt\ProxAllium\ProxAllium.au3"(127,43) : error: GUI_BridgeHandler() called with wrong number of args. GUICtrlSetOnEvent(-1, "GUI_BridgeHandler") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "E:\Projects\AutoIt\ProxAllium\ProxAllium.au3"(103,42) : REF: definition of GUI_BridgeHandler(). GUI_BridgeHandler($g_idTrayOptionBridges) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ E:\Projects\AutoIt\ProxAllium\ProxAllium.au3 - 1 error(s), 0 warning(s) !>18:53:37 AU3Check ended. Press F4 to jump to next error.rc:2 +>18:53:38 AutoIt3Wrapper Finished. >Exit code: 2 Time: 1.273 Needless to say it works fine when I run it directly without Au3Check
      Thanks for the responses in advance!
      P.S Sorry for the thread's title, couldn't think of anything else.
    • Altor
      By Altor
      Hi all:
      Sorry for such an innocent question .....
      It is possible to delete all Au3Check error messages with a hot key when they appear with F5 and you can continue editing the code without seeing the red lines. For now my only solution is to reload the script but it is a bit annoying.
      Thank's to all
      Altor
       
    • TheDcoder
      By TheDcoder
      Hello everyone, I discovered a bug yesterday and I posted it at the bug tracker:
      I also made a simple script which can be used to reproduce the bug:
      CreateVariable() ConsoleWrite($sGlobalVariable & @CRLF) Func CreateVariable() Global $sGlobalVariable = "Foobar" EndFunc The bug was closed by @BrewManNH:
      While I partially agree with the above statement, My code was not practical enough... so @mLipok advised me to create a thread on the forums with practical code (Thanks!). That is the point of this thread, I am going to provide the code where I experience this bug/problem .
      I discovered this bug when I was working on one of my projects called "ProxAllium". When the main script finishes execution, Au3Check throws a nasty warning about "variable possibly used before declaration":

      As you can see, the variable is indeed being used after calling the function in which the variable is declared... The warning won't appear if I declare the function ABOVE the variable. As @BrewManNH said, Au3Check reads line by line... I think this should be changed, Au3Check should not throw warnings if the interpreter is able to run the code, at least most of the time anyway!
      So what do you guys think? Is this a valid bug?... and I request those who participate in the discussion not to discuss the code being "poor", that is another thing/thread in itself
      P.S I had already written this once but the forum editor decided to mess up and when I undid (Ctrl + Z) something... This is a poorly written version of that article, I was very frustrated while writing this!
    • Trolleule
      By Trolleule
      Hi,
      i was playing around au3check and was asking myself if its posible to ignore these lots of "$i already declared" warinings, but still checking if global variables are declared twice.
      Its normal to have a few functions with Local $i declarations, so its not useful to show these warnings
      Btw: -w3 is a parameter
      Iam using
      #AutoIt3Wrapper_Au3Check_Parameters=-q -w 1 -w 2 -w 3 -w 4 -w 6 -w 7
    • taylansan
      By taylansan
      Hello dears,
      How can I hide the wrapper or check on the debug window?
      >"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\Taylan\Projects\AU3\Browser\TimesMe\TimesMe.au3" /UserParams +>11:39:12 Starting AutoIt3Wrapper v.16.306.1237.0 SciTE v.3.6.2.0 Keyboard:00000409 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86 Environment(Language:0409) CodePage:0 utf8.auto.check:4 # detect ascii high characters and if none found set default encoding to UTF8 and do not add BOM +> SciTEDir => C:\Program Files\AutoIt3\SciTE UserDir => C:\Users\t00722811\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\t00722811\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.2) from:C:\Program Files\AutoIt3 input:D:\Taylan\Projects\AU3\Browser\TimesMe\TimesMe.au3 +>11:39:12 AU3Check ended.rc:0 >Running:(3.3.14.2):C:\Program Files\AutoIt3\autoit3.exe "D:\Taylan\Projects\AU3\Browser\TimesMe\TimesMe.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop ... blablabla +>11:39:13 AutoIt3.exe ended.rc:0 +>11:39:13 AutoIt3Wrapper Finished. >Exit code: 0 Time: 1.822 I have checked the view or options menu, but couldn't find much about this.
      Is there any way to hide these outputs?

×