Search found 288 matches

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: 2681

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: 7089

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: 7089

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: 7089

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: 7089

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: 7089

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: 3643

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: 3643

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: 3643

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: 4186

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: 2453

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...
by hagchr
Mon Jun 13, 2016 7:18 pm
Forum: Beginners
Topic: Run Msword macros with Macro Scheduler
Replies: 12
Views: 8200

Re: Run Msword macros with Macro Scheduler

Hi, next try (sorry some soccer distractions in between). I used the command you mentioned - it belongs to the VB world so there needs to be a VBS section. I changed the trigger to CTRL+Shift+e for action and Esc for Exit. Try it and see if it works better or there are still issues. VBSTART Dim wdAp...
by hagchr
Mon Jun 13, 2016 1:38 pm
Forum: Beginners
Topic: Run Msword macros with Macro Scheduler
Replies: 12
Views: 8200

Re: Run Msword macros with Macro Scheduler

Hi, strange for me it seems to work but maybe depends on the text. I just had H3 paragraphs after each other when I tested. You have other text between the H3s? Which version of Word are you using? I need to think a little about it. I also note that CTRL+e was not so good choice as that is used in W...
by hagchr
Mon Jun 13, 2016 8:55 am
Forum: Technical / Scripting
Topic: passing variable to run cmd command
Replies: 3
Views: 2585

Re: passing variable to run cmd command

Another way would have been to define Let>perc=% and then use %perc% instead of % in the formula.
by hagchr
Mon Jun 13, 2016 3:30 am
Forum: Technical / Scripting
Topic: passing variable to run cmd command
Replies: 3
Views: 2585

Re: passing variable to run cmd command

Hi, splitting the line seems to work: Let>vid=TestFilm //Not working Let>res=Run>cmd /k youtube-dl --restrict-filenames -o "P:\youtube\downloads-vid\%(title)s-%(id)s.%(ext)s" "https://youtu.be/%vid%" MDL>res //Working Let>tmpa=Run>cmd /k youtube-dl --restrict-filenames -o "P:\youtube\downloads-vid\%...
Sign up to our newsletter for free automation tips, tricks & discounts