Search found 20 matches

by ari
Fri Jan 24, 2020 4:16 am
Forum: Technical / Scripting
Topic: Remove blank lines when there are more than one of them
Replies: 10
Views: 810

Re: Remove blank lines when there are more than one of them

One last semi-related question, I am having some serious problems with simple regexes working in RegexBuddy and with various online regex checkers, yet they fail or give different results in MS. For example, if my text is the following and I just wish to match the blocks of text starting with POSITI...
by ari
Thu Jan 23, 2020 4:59 am
Forum: Technical / Scripting
Topic: Remove blank lines when there are more than one of them
Replies: 10
Views: 810

Re: Remove blank lines when there are more than one of them

Thanks, these did the trick. I have started learning Regex and was wondering which exact version that MS uses? The syntax seems to vary across different tutorials.
by ari
Tue Jan 21, 2020 10:37 pm
Forum: Technical / Scripting
Topic: Remove blank lines when there are more than one of them
Replies: 10
Views: 810

Remove blank lines when there are more than one of them

Hello, I would like a way to remove multiple blank lines between text in a way so that only one blank line is left. The number of blank lines is irregular, might be 1 sometimes and no change is needed, might be several and I need to reduce it to 1. I have found many ways to remove all blank lines, b...
by ari
Thu Dec 22, 2016 3:49 pm
Forum: Technical / Scripting
Topic: Trouble with first dialog
Replies: 1
Views: 1390

Trouble with first dialog

I am trying to create a dialog button bar, where each button press sends some keystrokes to another program. I would like the bar to stay active until I push an exit button. This is what I have so far and I am just asking if the overall design is correct before I invest a lot more time. Thanks for a...
by ari
Wed Nov 23, 2016 5:25 pm
Forum: Technical / Scripting
Topic: Image recognition fails with new laptop/resolution
Replies: 5
Views: 3387

Re: Image recognition fails with new laptop/resolution

I have not, I have been using EXACT matching with 0 tolerance because I assumed this was fastest and my EMR is a very static program, it does not change much with updates.
by ari
Wed Nov 23, 2016 5:17 pm
Forum: Technical / Scripting
Topic: Image recognition fails with new laptop/resolution
Replies: 5
Views: 3387

Re: Image recognition fails with new laptop/resolution

14.3.07

I tried an updated hi res script on the old lower res laptop and it failed as well. There must be an issue with citrix and the way it scales the desktop? I have been using the "actual size" option with the citrix desktop viewer which I assumed was 1:1 mapping.
by ari
Wed Nov 23, 2016 4:56 pm
Forum: Technical / Scripting
Topic: Image recognition fails with new laptop/resolution
Replies: 5
Views: 3387

Image recognition fails with new laptop/resolution

Hi, I recently upgraded from a 1440x900 resolution laptop to a 2560x1440 laptop. I use MS to interact with a medical record program over citrix so I use image recognition a lot. It seems like all of my scripts using image recognition have broken. They do work when I delete the old bitmaps and redo t...
by ari
Mon Nov 07, 2016 4:28 pm
Forum: Technical / Scripting
Topic: Trouble with variable expressions
Replies: 5
Views: 3861

Re: Trouble with variable expressions

Thanks for your replies, learned a lot, trim worked like a charm.
by ari
Fri Nov 04, 2016 9:19 pm
Forum: Technical / Scripting
Topic: Trouble with variable expressions
Replies: 5
Views: 3861

Re: Trouble with variable expressions

Very very oddly, the 5th case worked

Code: Select all

If>%var_spiro%=Mild airway obstruction. Post bronchodilator test improved.
Let>spiroresults=The spirometry demonstrates mild airway obstruction, significantly reversible with a bronchodilator.
Whereas the other scenarios do not...
by ari
Fri Nov 04, 2016 9:09 pm
Forum: Technical / Scripting
Topic: Trouble with variable expressions
Replies: 5
Views: 3861

Trouble with variable expressions

I am trying to write a script that copies a string of text from a program (electronic medical record), then a certain string of text is written to a text file depending on what was copied. //Copy text Press LShift Press End Press Left Wait>0.2 Release LShift //copy spiro statement to clipboard Press...
by ari
Thu Nov 03, 2016 5:14 am
Forum: Beginners
Topic: How to clear clipboard
Replies: 2
Views: 5849

How to clear clipboard

Is there a command to empty the clipboard? I am using a text expander program that also uses the clipboard and want a way to clear the clipboard before MS uses it. Also, how much wait time is typically required for clipboard operations? It feels sluggish compared to other functions.
by ari
Tue Aug 12, 2014 7:36 pm
Forum: Beginners
Topic: Exit command
Replies: 6
Views: 3930

Re: Exit command

I was wrong on 2 fronts, timeD out, and the lower case TRUE/FALSE! Thanks, very educational and this makes my scripts a lot more useful (vs. watching closely and shift+esc when the script is done)
by ari
Mon Aug 11, 2014 9:08 pm
Forum: Beginners
Topic: Exit command
Replies: 6
Views: 3930

Exit command

Let>WSI_TIMEOUT=3 WaitScreenImage>c:\imagedir\image_1.bmp,0,EXACT If>WSI_TIMEOUT=true Exit> Endif I am assuming there is something wrong with this code, as the macro continues onward (instead of quitting) executing commands after the Endif even if the image.bmp does not appear in 3 seconds (when th...
by ari
Thu Jul 24, 2014 2:24 pm
Forum: Beginners
Topic: Invoke Quicklaunch via popupmenu?
Replies: 3
Views: 2837

Re: Invoke Quicklaunch via popupmenu?

Sure, is there a way to see the quicklaunch pop-up menu in other areas of the screen, perhaps triggered by a hotkey or some other command. Basically like the popupmenu command, except with the quicklaunch content. Like a quicklaunch plugin for the popupmenu command.
by ari
Thu Jul 24, 2014 2:21 pm
Forum: Beginners
Topic: Help finding certain image rec functionality
Replies: 5
Views: 3820

Re: Help finding certain image rec functionality

Ok thanks; how would I go about pausing a script when there was some kind of keyboard/mouse activity? then resuming when idle
Sign up to our newsletter for free automation tips, tricks & discounts