Jump to content

Browser opens up when a value # is read from excel


Gokul
 Share

Recommended Posts

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
Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.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 (NEW 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

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

So there is actually a "#" in the string you are sending, and when it is sent, a new default browser is spawned?

If that is true then try changing 

Send($address1)

to

Send($address1, 1)

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
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
 Share

  • Recently Browsing   0 members

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