Jump to content

Hey i am new to autoit im getting this error can u help me


Recommended Posts

"C:\Program Files (x86)\AutoIt3\Include\wd_core.au3"(5,10) : error: can't open include file <JSON.au3>.
#include <JSON.au3>
~~~~~~~~~^
"C:\Program Files (x86)\AutoIt3\Include\wd_core.au3"(6,10) : error: can't open include file <WinHttp.au3>.
#include <WinHttp.au3>
~~~~~~~~~^

Capture.PNG

Link to post
Share on other sites
  • Developers

JSON.au3 isn't a standard include so you will have to download it yourself first and put in in the same directory as the script.
Same counts for WinHTTP.au3.  The forum topics are mentioned in the comment! 

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.
  :)

Link to post
Share on other sites

JSON.au3 -> DOWNLOAD : https://www.autoitscript.com/forum/applications/core/interface/file/attachment.php?id=61831

(latest version from : a-non-strict-json-udf-jsmn

 

WinHTTP.au3 -> DOWNLOAD : https://github.com/dragana-r/autoit-winhttp

Edited by Musashi

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to post
Share on other sites

Seems you want to work with the WebDriver UDF. Please have a look at the wiki for installation instructions and FAQ.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - 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
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Link to post
Share on other sites

What do you guys think about setting up a package where all that is necessary to run the webdriver is in one simple package?

Something like this for firefox.

There could be different packages for the different browsers, and each would have the necessary dependencies and such.

And at least one simple example script that was easy to follow.

Edited by careca
Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to post
Share on other sites
1 hour ago, careca said:

What do you guys think about setting up a package where all that is necessary to run the webdriver is in one simple package?

Sounds like a massive maintenance headache to me. I would suggest instead that we write a script that dynamically does this for the user.

1 hour ago, careca said:

And at least one simple example script that was easy to follow.

Hmmm... you don't like my current demo script? 😲😅

Link to post
Share on other sites

Example scripts can be found in the Example Scripts thread.
Link is in my signature. 

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2021-06-05 - Version 1.5.4.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2021-06-14 - Version 1.6.5.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - 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
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Link to post
Share on other sites
45 minutes ago, Danp2 said:

Hmmm... you don't like my current demo script? 😲😅

 

Nothing against your 300+ line demo script.

I can make sense of it, i just think new users may find it complex, even though it's just looping through the functions listed.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...