Sign in to follow this  
Followers 0
msroehrs

error: syntax error

10 posts in this topic

Hi,

I'm a new AutoIT user and have a question for the forum on why I get the following syntax error:  'error: Statement cannot be just an expression.'

My code is below. Any help is greatly appreciated.

Thanks!

#include <IE.AU3>

Local $oIE = _IECreate ("url I'm going to")
Local $oForm = _IEFormGetObjByName ($oIE, "login for name")
Local 05.$oQuery1 = _IEFormElementGetObjByName ($oForm, "login form userid")
Local 06.$oQuery2 = _IEFormElementGetObjByName ($oForm, "login form password")
07.$uname="my user name"
08.$pwd="my password"
09._IEFormElementSetValue ($oQuery1,$uname)
10._IEFormElementSetValue ($oQuery2,$pwd)
11.$oButton=_IEGetObjById($oIE,"login form button")
12._IEAction ($oButton, "LOGIN")
13._IELoadWait($oIE,0)

Share this post


Link to post
Share on other sites



Welcome to the forum!

In the future, be sure to use the blue Code button when posting your code so that it is easier for others to read. I'm assuming that the line numbering (05-13) in the code you posted is strictly a posting issue and this doesn't exist in your actual script.

Which line are you receiving the syntax error? Also, what website are you attempting to log into?

Share this post


Link to post
Share on other sites

Welcome to the forum!

In the future, be sure to use the blue Code button when posting your code so that it is easier for others to read. I'm assuming that the line numbering (05-13) in the code you posted is strictly a posting issue and this doesn't exist in your actual script.

Which line are you receiving the syntax error? Also, what website are you attempting to log into?

Ok, thanks. Yes lines 05-13.

Share this post


Link to post
Share on other sites

There is also no such action as "LOGIN"

Is 'Click' the one to use?

Share this post


Link to post
Share on other sites

Welcome to the forum!

In the future, be sure to use the blue Code button when posting your code so that it is easier for others to read. I'm assuming that the line numbering (05-13) in the code you posted is strictly a posting issue and this doesn't exist in your actual script.

Which line are you receiving the syntax error? Also, what website are you attempting to log into?

It is an optumcoding website. Would having the URL help?

Share this post


Link to post
Share on other sites

Possibly... did you try John's suggestions?

Share this post


Link to post
Share on other sites

Yes I did. Thanks for the help everyone!

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