Sign in to follow this  
Followers 0
Junpei

AutoItX Error parsing function call

7 posts in this topic

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?

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Another question: Did you register the AutoItX3.dll?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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
Sign in to follow this  
Followers 0