Jump to content

Recommended Posts

Posted (edited)

Hi,

I came across a situation, whenever # value is read from excel, browser window opens up automatically. Is there an issue like this.

Edited by Gokul
Posted (edited)

give reproducer code.

The code is just with some controlclicks in it, to fetch data from excel and enter it into the text boxes in application. I just wanted to know, if there is any chance of automatically poping up windows. Controlclicks to all fields are only present in my code. And this does not happen always when # value is read. Only in some cases it happens.

Edited by Gokul
Posted

It is impossible to help you without seeing your code or a stripped down reproducer script that shows the problem for everyone.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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

 

Posted

It is impossible to help you without seeing your code or a stripped down reproducer script that shows the problem for everyone.

#include <excel.au3>
#include <array.au3>

$file ='EXCEL PATH'

$oExcel = _ExcelBookOpen($file, 0)

_ExcelSheetActivate($oExcel, "Data")

$aArray = _ExcelReadSheetToArray($oExcel, 1)

_ArrayDisplay($aArray, "Array using Default Parameters")

Run('application path')

_WinWaitActivate(" Login","")

ControlClick(" Login to application", "", "NAME:Username")

Send("user1")

Send("{TAB}")

Sned("pass1")

ControlClick(" Login to application", "", "[NAME:Submit]")

$idno = $aArray[$i][1]
$name1 = $aArray[$i][2]
$name2 = $aArray[$i][3]
$name3 = $aArray[$i][4]
$email1 = $aArray[$i][5]
$email2 = $aArray[$i][6]

_WinWaitActivate("Emp details","")
MsgBox("Ok","Confirmation","Click Ok to begin...")

ControlClick("Emp details", "", "[NAME:firstname]")
Send($name1)
ControlClick("Emp details", "", "[NAME:middlename]")
Send($name2)
ControlClick("Emp details", "", "[NAME:lastname]")
Send($name3)
ControlClick("Emp details", "", "[NAME:primaryemail]")
Send($email1)
ControlClick("Emp details", "", "[NAME:addressline1]")
Send($address1)
ControlClick("Emp details", "", "[NAME:phone]")
Send($phone1)

MsgBox("Ok","Confirmation","Alert")
_ExcelBookClose($oExcel, 0, 0)
$oExcel = '';
Next

I have the address field in excel with # values. When the address field in the application is reached while datas are filled from excel, browser pops up.

Posted

Am I wrong or do you already have a thread for the same issue?

>Sometimes data from excel are not populated on the application

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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

 

Posted (edited)

Does it occur after this line?

MsgBox("Ok","Confirmation","Click Ok to begin...")

When it reaches the address field. The difference in data of this field from other fields is that it will have # in it.

Edited by Gokul
Posted

So what is this...

Send($address1)

Were does $address1 come from and what is it's content?

The values to fields are fetched from excel and it contains values like 'address # address line 1, address line 2'

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
  • Recently Browsing   0 members

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