automation

ImageJ jar file plugin shortcut creation

心不动则不痛 提交于 2019-12-25 04:44:31
问题 I have been working on a developmental biology project marking various nuclear markers along with a DAPI stain to determine percentage of marker expression. I have found that the ImageJ plugin ITCN (http://rsbweb.nih.gov/ij/plugins/itcn.html) works great for each marker when also using the CLAHE program. My problem is that I have around 6000 images to analyze and I would love to be able to automate the process. I have recorded a macro such as the following (which can itself be looped to

Autoit and notepad

≯℡__Kan透↙ 提交于 2019-12-25 04:26:10
问题 I have an application, wherein I get a "Save As" dialog-box. At times, if a file exists with the same name, then another dialog box comes in, with the same name "Save As". The following is the code, which I wrote but it doesn't work as expected. Global $sTitle = "Save As" WinWait($sTitle) WinWaitActive($sTitle) ControlClick($sTitle, "Save", "[CLASS:Button; TEXT:&Save; INSTANCE:2]") ControlSetText($sTitle, "", "CLASS:Button; INSTANCE:2]", $file_name) SendKeepActive($sTitle) Send("{ENTER}")

Azure Automation Runbook ADAL SQL support

痞子三分冷 提交于 2019-12-25 04:22:19
问题 I am attempting to use an Azure Automation Runbook to run a query against an Azure SQL database using Azure AD credentials: $cred = Get-AutomationPSCredential -Name 'SqlAdminUser' $Username = $cred.UserName $Password = $cred.GetNetworkCredential().Password $Server = 'server.database.windows.net' $Port = 1433 $cxnString = "Server=tcp:$Server,$Port;Database=$Database;Authentication=Active Directory Password;UID=$UserName;PWD=$Password;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;

plink won't find pageant when ran over jenkins

a 夏天 提交于 2019-12-25 04:11:57
问题 I'm trying to setup automatic backups using a Jenkins build in Windows. The config is: Windows 7 Jenkins 1.594 putty tools beta 0.63 I'm running Jenkins as a service under a unprivileged 'jenkins' user. I have created a public/private key pair and uploaded it to the SSH server and I have validated that I'm able to login without informing the user password while running pageant with the private key loaded while logged in with the jenkins user. The Jenkins build invokes a batch script which

Setting correct printer in MS Word through automation

与世无争的帅哥 提交于 2019-12-25 03:43:33
问题 I have the following automation code: lPrintSetup := fWordObject.Application.Dialogs.Item(wdDialogFilePrintSetup); lPrintSetup.Printer := 'MyPrinter'; lPrintSetup.DoNotSetAsSysDefault := True; lPrintSetup.Execute; lPrintSetup := Null; The Printer property is giving me some problems, sometimes Execute crashes with an EOleException (0x800A1460 (error code 5216): There is a printer error) because of a wrong printername. I have printer information of all printers in a _PRINTER_INFO_2 record which

Insert values in class without explicit writing them

一个人想着一个人 提交于 2019-12-25 03:22:12
问题 I have some huge classes and don't want to write them all out for testing, because it's a huge effort and I could forget some values what makes the test invalid. Messages = new List<Request.Notif.NotifRuleMessages> { new Request.Notif.NotifRuleMessages { Code = 1234, Message = new List<Request.Notif.NotifRuleMessagesMessage> { new Request.Notif.NotifMessagesMessage { Status = new Request.Notif.NotifMessagesMessageStatus { Code = 1, Bool = true, Test1 = "Test", Test2 = "Test" }, Rules = new

Can't open a link as a background tab - Java, Selenium, IE

ぃ、小莉子 提交于 2019-12-25 03:13:37
问题 So of course in internet explorer (9) I cannot get a link to open in a background tab. I've tried a few things : Robot r = new Robot(); r.keyPress(KeyEvent.VK_CONTROL); driver.findElement(By.name(THE_LINK)).click(); r.keyRelease(KeyEvent.VK_CONTROL); I've also tried String link = Keys.chord(Keys.CONTROL, Keys.RETURN); driver.findElement(By.name(THE_LINK)).sendKeys(link); It actually opens it in a new window. When I'm working manually and ctrl+click it works as expected and opens in a

Locating nearest Button Selenium Python

依然范特西╮ 提交于 2019-12-25 02:46:23
问题 I am trying to click the "Delete Comment" button after finding the comment that contains a specific hashtag, husky, which is a hyperlink. Since there are multiple "Delete Comment" buttons, I think the best way is to just find the comment that has the hashtag, and then click the nearest button, but I could be wrong there. In the picture, I want to click the button highlighted below the hashtag, not below: So far, I have self.browser.find_element_by_xpath('//a[@href="/explore/tags/husky/"]')

Pull data from Access database to Word document

雨燕双飞 提交于 2019-12-25 01:55:21
问题 I am attempting to transfer data from an Access database into a Word document. I have performed a similar procedure using Excel and I need to code it using Access instead of Excel. The Excel code (for an analogy is this) Dim myworkbook As Excel.Workbook Set myworkbook = GetObject("C:\Users\jn\Desktop\trial.xlsm") then Dim excelstr As String Excelstr = Application.Range("A1:A100").Find("aword").Offset(0,1).Value I can't figure out how to do this with Access where I pull in data by finding a

How do I open a new visual studio instance using EnvDTE?

南笙酒味 提交于 2019-12-25 01:52:58
问题 I'm using the EnvDTE COM objects to automate Visual Studio. I'm still looking through the documentation, however, I figured I'd drop the question here to see if someone already knows how to do this. So, the problem is that when I get the DTE object and look at what Solution is open, I need to open another instance of Visual Studio if the solution is not the one I'm expecting. I don't necessarily want to load another solution over an existing instance of VS. 回答1: So, I figured this out on my