Jump to content
Sign in to follow this  
fopetesl

Line 1500: Error: The requested action with this object has failed

Recommended Posts

fopetesl

Complete and utter newb here :)

I have considerable experience writing 'C' and Assembler but my first steps into AutoIT and it looks good.

However I have an immediate problem :(

I am using a basic .au3, (not BASIC), program which monitors input from a serial USB port donated by a kind fellow for me to improve.

I have installed AutoIT3 and ScITe 3.3.

Load the program and Compile or Bulid it then try to run the exe I get:

AutoIT_Error.jpg

Last line number in file is 235 !

RTFM (briefly) but don't see any clues.


The most powerful number in the Universe.  Zero.

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum!

Most of the time this error message is caused by a COM error.

I suggest to use a COM error handler to get detailed error information.

Function ObjEvent in the help file describes how to do.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
orbs

welcome to the AutoIt forum,

run your code directly from SciTe (without compiling), you will see much more details and specific location of the error.

do not be alarmed by the line number, you will easily see where it comes from.

Share this post


Link to post
Share on other sites
fopetesl

welcome to the AutoIt forum,

run your code directly from SciTe (without compiling), you will see much more details and specific location of the error.

do not be alarmed by the line number, you will easily see where it comes from.

Thanks guys.

Nice trick. Didn't know we can run the script directly from ScITe :)

Came up with this

F:\Program Files\AutoIt3\Chrony\testbox.au3 (18) : ==> The requested action with this object has failed.:

$MsComm.PortOpen = 1

$MsComm.PortOpen = 1^ ERROR

So from the code above

$MsComm = ObjCreate("MSCOMMLib.MsComm.1")

$MsComm.CommPort = 4

$MsComm.Settings = "4800,N,8,1"

$MsComm.Handshaking = 1

$MsComm.InBufferSize = 1024

$MsComm.InputLen = 1

;Connect

It's clear I don't have the respective COM4 on this machine.

Thanks for the tips.  Now I can forge ahead :thumbsup:


The most powerful number in the Universe.  Zero.

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  

×