Jump to content

Recommended Posts

Posted (edited)

Hi,

I cant find my mistake in simple task. I Just want to click a button and enter some text in textbox.

Could you check this out?

#include <Constants.au3>
WinWaitActive("[CLASS:NOTES]") ; this works
Send("^m") ; this works
ControlSetText("NOTES", "", "[CLASS:IRIS.tedit; INSTANCE:1])", "Some email adress.....") ;this should write an email adress
ControlClick("NOTES", "", "[ID:1610760201]") ;this should press the button send

https://onedrive.live.com/embed?cid=2CE060CF4F2B012E&resid=2CE060CF4F2B012E%2182849&authkey=AGUPPRF3g_Qmaew

Edited by Hanesis
Posted

I see you are using some website.

Try to use _IE... functions .

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 2/2/2016 at 10:00 AM, mLipok said:

I see you are using some website.

Try to use _IE... functions .

 

Expand  

I dont understand. I dont want to click on any button on website.

I just want to learn how to click on any button in any programe (in my case email client). Still I should to look for solution with _IE functions?

Posted (edited)
  On 2/2/2016 at 9:28 AM, Hanesis said:

<iframe src="https://onedrive.live.com/embed?cid=2CE060CF4F2B012E&resid=2CE060CF4F2B012E%2182849&authkey=AGUPPRF3g_Qmaew" width="320" height="215" frameborder="0" scrolling="no"></iframe>

Expand  

From where this come from ?

 

Edited by mLipok
typo

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 2/2/2016 at 11:00 AM, mLipok said:

From where this come from ?

 

Expand  

Can you see the picture? I wanted to show you that I want to enter email adress to no.1 and then press button no.2. It is email client Lotus.

Posted (edited)

ah... I see.

You should post only link

https://onedrive.live.com/embed?cid=2CE060CF4F2B012E&resid=2CE060CF4F2B012E%2182849&authkey=AGUPPRF3g_Qmaew

without the HTML tags.

EDIT:
I have no experience with automating IBM Lotus notes interface.
You should wait for other member helps.

EDIT2:

you can also look here:

 

 

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

in this following line you have redundant closing paranthesis:

ControlSetText("NOTES", "", "[CLASS:IRIS.tedit; INSTANCE:1])", "Some email adress.....")

 

Try like that:

#include <Constants.au3>
Local $hWnd_Notes = WinWaitActive("[CLASS:NOTES]") ; this works
Send("^m") ; this works
ControlSetText($hWnd_Notes, "", "[CLASS:IRIS.tedit; INSTANCE:1]", "Some email adress.....") ;this should write an email adress
ControlClick($hWnd_Notes, "", "[CLASS:IRIS.bmpbutton; INSTANCE:4]") ;this should press the button send

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 3 weeks later...

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
×
×
  • Create New...