automation

Why robot gives me error whenever i use “addon ocrabbyy” commands?

大憨熊 提交于 2021-02-11 16:47:50
问题 I have tried to use different commands of "addon ocrabbyy" in different robots but it always gives me the same error and I even don't know its meaning. Can someone explain what's going wrong? 回答1: Take a look at my question here which addresses this issue: Here You need to own a license for the software to be able to use the addon. 来源: https://stackoverflow.com/questions/59916715/why-robot-gives-me-error-whenever-i-use-addon-ocrabbyy-commands

Using python to automate external program

早过忘川 提交于 2021-02-11 15:24:57
问题 Whats the best Python library to automate an external program We have accounting software where we need to upload many files into for a particular reason. To do this we search for the relevant menu item right click it and then import. This is time consuming. It would be useful to be able to automate this. Ive looked at pyautogui but it needs the screen to be active and the user cant do anything else on their machine while it is running. Of course ideally I would like to use the accounting

pandas: melt 100+ variables into 100+ new dataframes

久未见 提交于 2021-02-11 15:19:09
问题 Pretty new to stackoverflow, please bear with me if the format looks odd.. I have a big set of data with 100+ columns of data structured like: countrya countryb year variable1 variable2 ...... varaible100 I want to have the 100 variables separated into 100 new dataframes and save them into csvs. Below is the code I have for creating 1 new csv. dfm1=pd.melt(df, id_vars=['countrya','countryb','year'], value_vars=['variable1'], value_name='variable1') dfm1.drop('variable',axis=1) dfm1.to_csv(

pandas: melt 100+ variables into 100+ new dataframes

眉间皱痕 提交于 2021-02-11 15:16:14
问题 Pretty new to stackoverflow, please bear with me if the format looks odd.. I have a big set of data with 100+ columns of data structured like: countrya countryb year variable1 variable2 ...... varaible100 I want to have the 100 variables separated into 100 new dataframes and save them into csvs. Below is the code I have for creating 1 new csv. dfm1=pd.melt(df, id_vars=['countrya','countryb','year'], value_vars=['variable1'], value_name='variable1') dfm1.drop('variable',axis=1) dfm1.to_csv(

Reply email powershell

梦想与她 提交于 2021-02-11 13:22:25
问题 Hi again StackOverflow's comunity, I will ask about method ".reply()". This is the code I am trying: function Unread ($correo) { if(($correo -eq $null) -or ($correo.Unread.ToString() -like "False")){ $Noleido = $false }else{ $Noleido = $true return $Noleido } } $body = "Bla bla bla" $firma = "I am here" #$cuerpo = "A test ps" $subject = "Re: automated reply" $Outlook = New-Object -comObject Outlook.Application $OutlookFolders = $Outlook.Session.Folders.Item($buzon1).Folders #Map la bandeja de

Reply email powershell

旧城冷巷雨未停 提交于 2021-02-11 13:21:21
问题 Hi again StackOverflow's comunity, I will ask about method ".reply()". This is the code I am trying: function Unread ($correo) { if(($correo -eq $null) -or ($correo.Unread.ToString() -like "False")){ $Noleido = $false }else{ $Noleido = $true return $Noleido } } $body = "Bla bla bla" $firma = "I am here" #$cuerpo = "A test ps" $subject = "Re: automated reply" $Outlook = New-Object -comObject Outlook.Application $OutlookFolders = $Outlook.Session.Folders.Item($buzon1).Folders #Map la bandeja de

VBA Excel open Word Object

五迷三道 提交于 2021-02-11 12:28:50
问题 So I have a VBA and I would like to open and modify a Word file that is embedded in the Excel instead of opening it from a folder path. I am using this VBA and it is not working properly (basically I need the VBA to open the Word document, add the table from the Excel from ranges A24:C & lastRow, copy-paste everything to an Outlook email and finally close the Word document). I receive error 13, if that helps. Please assist!!!! Thanks a lot Sub SendMail() Dim ol As Outlook.Application Dim olm

Opening tabs using selenium based on user input

吃可爱长大的小学妹 提交于 2021-02-11 12:20:45
问题 I'm trying to make a script where the program takes input of multiple URLs and then opens tabs for each of them, this is what I came up with s=raw_input() l=s.split() t=len(l) for elements in l: elements = ["https://" + elements + "" for elements in l] driver = webdriver.Chrome(r"C:/Users/mynam/Desktop/WB/chromedriver.exe") driver.get("https://www.google.com") for e in elements: driver.implicitly_wait(3) driver.execute_script("window.open(e,'new window')") print "Opened in new tab" I get an

Opening tabs using selenium based on user input

百般思念 提交于 2021-02-11 12:18:38
问题 I'm trying to make a script where the program takes input of multiple URLs and then opens tabs for each of them, this is what I came up with s=raw_input() l=s.split() t=len(l) for elements in l: elements = ["https://" + elements + "" for elements in l] driver = webdriver.Chrome(r"C:/Users/mynam/Desktop/WB/chromedriver.exe") driver.get("https://www.google.com") for e in elements: driver.implicitly_wait(3) driver.execute_script("window.open(e,'new window')") print "Opened in new tab" I get an

Creating a stored procedure which ingests data after reading a JSON string

♀尐吖头ヾ 提交于 2021-02-11 12:15:25
问题 I would like to create a stored procedure, in SQL Server, that can accept JSON data and upload it into a specified table into its relevant columns. For instance, take this JSON string: [{"ID":5,"LastName":"Donalds","FirstName":"Dave","Age":23,"City":"London"}] This above string can be produced with the following query: SELECT 5 as 'ID', 'Donalds' as 'LastName', 'Dave' as 'FirstName', 23 as 'Age', 'London' as 'City' FOR JSON PATH I've managed to write a script which can upload into my table