automation

vb.net highlight text in word

百般思念 提交于 2019-12-13 05:17:27
问题 I am using VB.NET in VS 2012 Express to automate Word 2010. I am trying to find a string and then highlight it in Turquoise. My code works to find and highlight it, but it does it in the default yellow color. How can I change that to the desired color? I apologize if this is a silly question, I am teaching myself VB by writing this. For x As Integer = 0 To (dateConnected.Count() - 1) With oRng.Find .MatchCase = False .ClearFormatting() .Text = dateConnected(x) With .Replacement

Call a SAP transaction, execute with given parameters and download a report with C# or VB.net

99封情书 提交于 2019-12-13 05:14:52
问题 I'm not familiar with ABAP at all and I'm trying to automate a SAP report for my job (downloaded from the result of an executed transaction in SAP R/3). At the moment I have to open SAP (manually of course), login, call the transaction, add some parameters to it, execute it and download the first report. After that I have to work it around (thing that I already automate, so it's not a problem) but then I have to get some other parameters from it and call another transaction to execute with

Outlook 2011: Adding some messages to “Waiting for reply” folder

牧云@^-^@ 提交于 2019-12-13 05:01:32
问题 My use case is that I want to track for responses on some messages I write. My methodology now is to wait for the message to be sent the move it from the sent folder to the "Waiting for reply" folder which I go over periodically. I'm looking for a way to automate this. Best would be if I press a key which makes Outlook both send the message and put it in the Waiting folder. E.g., by using an applescript. Alternatively, I thought that pressing a key will add me as BCC, and also add a " WF "

Generate Power Point Documents Wrapper DLL

天大地大妈咪最大 提交于 2019-12-13 04:38:13
问题 We are generating various Power Point documents on a regular basis using the built in automation in Office. This is problematic since natively power point and other office automation will not run in the background on a server without some hacks. Even with the hacks in place there are still some limitations and regular issues. Because the OpenXML is so radically different from the Application automation and due to how involved the steps are, I was hoping to find a third party or shared dll

Automation Microsoft SQL Server 2008 R2 using Python(pywinauto)

我怕爱的太早我们不能终老 提交于 2019-12-13 04:32:21
问题 I am creating Microsoft SQL Server Management Studio Automation tool using python . The problem is I can't select the Child_tree (Northwind) database It's selecting the Parent_tree (Databases). I need to do much more, clicking the child_tree(Northwind) right click option (Ex. Tasks-> backup). Help me to do the best automation code. Thanks in Advance. import pywinauto import socket import binascii host = socket.gethostname() #Getting system host name n2 = int(

How to get the number of items in a pop-up menu without opening it using applescript?

回眸只為那壹抹淺笑 提交于 2019-12-13 04:26:56
问题 I want to write a script which saves the images in few formats. the thing is the formats are shown based on some condition. I means some times there will be 5 formats and sometimes 8. I want to completely automate the working of these saving things. So i decided to write an applescript. Got UI browser and using that I can access each and every pop-up menus. I'm using loops to perform save operation. The thing is I am not getting where to end. So i came up with a thought that if i can get the

Automation Testing Framework

一笑奈何 提交于 2019-12-13 04:12:59
问题 I am searching for UI Automation testing framework. What we need is : The framework should provide record/playback option. It should be compatible with various browser and platforms. It should support all the the events click, Drag&Drop, mousehover etc nad some famous javascript libraries like D3js, Three.js(3D object events) etc. and more important thing I want is Suppose we have released 1st version of the application, in that application we have a login page with two fields e.g. Username

How can I screen a full vertical size with exactly horizontal size?

人盡茶涼 提交于 2019-12-13 03:59:36
问题 I use a Selenium with the Ashot framework to make screenshots of the entire page ChromeOptions options = new ChromeOptions(); options.addArguments("start-maximized"); options.addArguments("disable-infobars"); options.addArguments("--disable-extensions"); WebDriver driver = new ChromeDriver(options); Screenshot screenshot = new AShot().shootingStrategy(ShootingStrategies.viewportPasting(100)).takeScreenshot(driver); This shooting strategy works fine, I can get the full-sized screenshot. I

Way to convert from .xls to .xlsm via a batch file or vba?

孤街浪徒 提交于 2019-12-13 03:51:40
问题 How to I automate the conversion of .xls workbooks to .xlsm? 回答1: You can try this code: Sub TrandformAllXLSFilesToXLSM() Dim myPath As String myPath = "C:\Excel\" WorkFile = Dir(myPath & "*.xls") Do While WorkFile <> "" If Right(WorkFile, 4) <> "xlsm" Then Workbooks.Open FileName:=myPath & WorkFile ActiveWorkbook.SaveAs FileName:= _ myPath & WorkFile & "m", FileFormat:= _ xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False ActiveWorkbook.Close End If WorkFile = Dir() Loop End Sub See this

Python Selenium opens a new window on click instead of tab

被刻印的时光 ゝ 提交于 2019-12-13 03:42:59
问题 I am trying to download some files with python selenium after authentication, but when selenium clicks the file link it opens a new window and therefore it is asking for authentication again. Can I force selenium to download file without opening new window or in new tab using same auth? elementList = driver.find_elements_by_class_name("file-link") for el in elementList: el.click() Update 1: elementList = driver.find_elements_by_class_name("file-link") for el in elementList: driver.execute