Gokul Posted February 11, 2014 Share Posted February 11, 2014 (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 February 11, 2014 by Gokul Link to comment Share on other sites More sharing options...
JohnOne Posted February 11, 2014 Share Posted February 11, 2014 give reproducer code. 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 More sharing options...
Gokul Posted February 11, 2014 Author Share Posted February 11, 2014 (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 February 11, 2014 by Gokul Link to comment Share on other sites More sharing options...
JohnOne Posted February 11, 2014 Share Posted February 11, 2014 Suit yourself. 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 More sharing options...
water Posted February 11, 2014 Share Posted February 11, 2014 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Gokul Posted February 11, 2014 Author Share Posted February 11, 2014 It is impossible to help you without seeing your code or a stripped down reproducer script that shows the problem for everyone. expandcollapse popup#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 More sharing options...
water Posted February 11, 2014 Share Posted February 11, 2014 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 - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Gokul Posted February 11, 2014 Author Share Posted February 11, 2014 Am I wrong or do you already have a thread for the same issue?>Sometimes data from excel are not populated on the application Its not the same issue. There i had a problem in values getting populated in the fields of my application. Now, i have an issue of a window popping up automatically in between the script execution. Link to comment Share on other sites More sharing options...
JohnOne Posted February 11, 2014 Share Posted February 11, 2014 What page does the browser navigate to? 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 More sharing options...
Gokul Posted February 11, 2014 Author Share Posted February 11, 2014 What page does the browser navigate to? Chrome browser with Google search page. Link to comment Share on other sites More sharing options...
JohnOne Posted February 11, 2014 Share Posted February 11, 2014 Does it occur after this line? MsgBox("Ok","Confirmation","Click Ok to begin...") 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 More sharing options...
Gokul Posted February 11, 2014 Author Share Posted February 11, 2014 (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 February 11, 2014 by Gokul Link to comment Share on other sites More sharing options...
JohnOne Posted February 11, 2014 Share Posted February 11, 2014 (edited) So what is this... Send($address1) Were does $address1 come from and what is it's content? Edited February 11, 2014 by JohnOne 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 More sharing options...
Gokul Posted February 11, 2014 Author Share Posted February 11, 2014 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' Link to comment Share on other sites More sharing options...
JohnOne Posted February 11, 2014 Share Posted February 11, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now