Search found 277 matches

by hagchr
Sat Jul 16, 2016 3:26 am
Forum: Technical / Scripting
Topic: Replace special Characters in a string
Replies: 4
Views: 3505

Re: Replace special Characters in a string

That should work fine. If it gets messy to maintain then you also have the option to put it into a separate file (eg simple text or excel file) and load it from there using ReadFile> or the XL functions.
by hagchr
Fri Jul 15, 2016 6:21 pm
Forum: Technical / Scripting
Topic: Replace special Characters in a string
Replies: 4
Views: 3505

Re: Replace special Characters in a string

Hi, another version in case you and RegEx are not best of friends... Let>strText1=C/ VASCO NUÑEZ DE BALBOA Nº63 NAVE 5 P.I. DEL HENARES Let>strText2=C/ VASCO NUÑEZ DE BALBOA Nº63 NAVE 5 P.I. DEL HENARES Gosub>Replace,"strText1" Gosub>Replace,"strText2" MDL>strText1 MDL>strText2 SRT>Replace //Get the...
by hagchr
Fri Jul 15, 2016 4:37 pm
Forum: General Discussion
Topic: Running MS in a Virtual Environment
Replies: 2
Views: 2794

Re: Running MS in a Virtual Environment

Hi, I have two copies of Win 10 and am using Hyper-V Manager (included free with at least Win 10) with one of them. Somewhat slow at times but does its job in the "background". I posted this some time back: https://www.mjtnet.com/forum/viewtopic.php?f=9&t=8893#p38984 If anyone has more experience, t...
by hagchr
Fri Jul 15, 2016 3:55 pm
Forum: Technical / Scripting
Topic: Replace special Characters in a string
Replies: 4
Views: 3505

Re: Replace special Characters in a string

Hi, many ways to solve it. One possibility below. I put it into an SRT>Replace that can be called. The name of the string/text to be checked is passed to the SRT enclosed in "" (to avoid variable resolution problems). The replacement words could be read from a file etc, here just listed at the end i...
by hagchr
Sat Jul 09, 2016 4:27 pm
Forum: Technical / Scripting
Topic: How to display input prompts in a list setting
Replies: 2
Views: 2540

Re: How to display input prompts in a list setting

Hi, you can eg use %CRLF% to get/create a new line, see example (I also added a (very) simple dialog example). //Normal input Let>mess=1. Dogs%CRLF%2. Cats%CRLF%3. Horses%CRLF%4. Cows Let>INPUT_BROWSE=0 Input>strRes,mess, //With dialogs you can create your own things... Dialog>Dialog1 object Dialog1...
by hagchr
Wed Jul 06, 2016 5:45 am
Forum: Beginners
Topic: How to trigger like text expander? (No shortcut)
Replies: 8
Views: 6608

Re: How to trigger like text expander? (No shortcut)

Hi, strange, I am using Win10 64bit and it works just fine on my machine... It was just a quick solution so one could obviously adjust it to whatever requirements needed. If you have the pro version of MS you can also compile the script to an .exe and start by icon, menu, dialog, or automatically (....
by hagchr
Tue Jul 05, 2016 7:58 pm
Forum: Beginners
Topic: How to trigger like text expander? (No shortcut)
Replies: 8
Views: 6608

Re: How to trigger like text expander? (No shortcut)

Hi, I am travelling today and tomorrow so do not have the pc here. On my machine I typed shift+ - (shift + hyphen) to get _. Did you do that or type _ directly? maybe need to change the code for the trigger?
by hagchr
Mon Jul 04, 2016 9:29 pm
Forum: Beginners
Topic: How to trigger like text expander? (No shortcut)
Replies: 8
Views: 6608

Re: How to trigger like text expander? (No shortcut)

In the previous script I used SendText> to return the expanded text. When I read your other post about SendText> problems it struck me that another way could be to use the clipboard instead (ie put the result into the clipboard and then paste the result back). This is the same script as before excep...
by hagchr
Mon Jul 04, 2016 8:58 pm
Forum: Beginners
Topic: How to trigger like text expander? (No shortcut)
Replies: 8
Views: 6608

Re: How to trigger like text expander? (No shortcut)

Hi, Here an attempt for a solution to your question. I put in trigger words in a label at the end of the script, however, could easily be read from a file instead. The label now has garbage words from _am1 up to _am20. I tried to load 1000 words from a file and that seemed to work fine (however, rem...
by hagchr
Mon Jul 04, 2016 10:15 am
Forum: Beginners
Topic: How to trigger like text expander? (No shortcut)
Replies: 8
Views: 6608

Re: How to trigger like text expander? (No shortcut)

Hi, If you need it for the common Microsoft apps (excel, word, powerpoint outlook etc) then you can easily set up an auto-correct that will do what you want (eg Word -> options -> Proofing -> Autocorrect Options and add it there, eg _ami=A...). You set it up in one and it can be picked up by the oth...
by hagchr
Mon Jun 20, 2016 8:59 pm
Forum: Technical / Scripting
Topic: Selecting an image when there are multiple copies of it
Replies: 6
Views: 3195

Re: Selecting an image when there are multiple copies of it

Hi, not sure what you will do on each web page, but in case you just want to extract data you may also be able to use HTTPRequest>. This will give you the list of links. You could use the same structure to loop and get the HTML from each page and then extract whatever info you are looking for. //Get...
by hagchr
Mon Jun 20, 2016 5:57 pm
Forum: Technical / Scripting
Topic: Selecting an image when there are multiple copies of it
Replies: 6
Views: 3195

Re: Selecting an image when there are multiple copies of it

Hi, one way to get the links and click on them, using the source code of the page and extracting the links, without using image recognition. One can probably use some of the other MS web commands to get it in an easier way, but hopefully it illustrates one way. It would obviously depend on the web p...
by hagchr
Mon Jun 20, 2016 4:10 pm
Forum: Technical / Scripting
Topic: Selecting an image when there are multiple copies of it
Replies: 6
Views: 3195

Re: Selecting an image when there are multiple copies of it

With FindImagePos> you will get an array of all the matches found and their coordinates, which can then be looped through and clicked. To get a more robust solution you can probably use the Web commands available in MS. Is it a public website you can share?
by hagchr
Fri Jun 17, 2016 9:18 am
Forum: Beginners
Topic: Screenshot on condition
Replies: 2
Views: 3990

Re: Screenshot on condition

Hi, You can add a date/time stamp to the name of the file to keep them separate. For the size, if you know the size of your target bmp then for FindImagePos> then there is a parameter to get the top left position and then you just add something to it, see example below. If you need it to be dynamic ...
by hagchr
Wed Jun 15, 2016 7:49 am
Forum: Technical / Scripting
Topic: UIAutomation Name vs. UIAutomation Value
Replies: 2
Views: 2271

Re: UIAutomation Name vs. UIAutomation Value

Hi, I not very familiar with the technical aspects so hopefully someone else can reply. With MS14.2.9 and Win10 it seems to work just fine, one just have to change to UIClick>{"Calculator"},{"Eight"}. Are you using older versions? The UIAccessibleList> would result in the following, where everything...
Sign up to our newsletter for free automation tips, tricks & discounts