Jump to content

AutoItX Error parsing function call


Recommended Posts

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
text = oAutoIt.ClipGet()
WScript.Echo "Clipboard contains:" & text

i tried to run this code, but got the error message (Error: Error parsing function call) below.Can someone help?

Link to comment
Share on other sites

Works fine here. Have you installed AutoIt3 with the installer?

Jos

Hi Jos, i downloaded

AutoIt Full Installation. Includes x86 and x64 components, and:

  • AutoIt program files, documentation and examples.
  • Aut2Exe – Script to executable converter. Convert your scripts into standalone .exe files!
  • AutoItX – DLL/COM control. Add AutoIt features to your favorite programming and scripting languages!
  • Editor – A cut down version of the SciTE script editor package to get started. Download the package below for the full version!
Link to comment
Share on other sites

Hi Jos, i downloaded

AutoIt Full Installation. Includes x86 and x64 components, and:

  • AutoIt program files, documentation and examples.
  • Aut2Exe – Script to executable converter. Convert your scripts into standalone .exe files!
  • AutoItX – DLL/COM control. Add AutoIt features to your favorite programming and scripting languages!
  • Editor – A cut down version of the SciTE script editor package to get started. Download the package below for the full version!

Hi Jos,

I just changed the extension from .au3 to .vbs

does it mean i need to save it as .vbs?

Edited by Junpei
Link to comment
Share on other sites

Sure, because the code you posted is VB calling AutoIt.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.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
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Another question: Did you register the AutoItX3.dll?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.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
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Developers

does it mean i need to save it as .vbs?

yes, and there is no need to register when you used the installer.

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 comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...