Search found 327 matches

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

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

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

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

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

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

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

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

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

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\%...
by hagchr
Sun Jun 12, 2016 6:14 pm
Forum: Beginners
Topic: Run Msword macros with Macro Scheduler
Replies: 12
Views: 12064

Re: Run Msword macros with Macro Scheduler

Happy to help. It seems you don't have the same selection options when in outline view mode. I changed the code slightly so text will be selected if you press CTRL+e. To exit the script just press Escape. You can play/adjust so it suits you. OnEvent>KEY_DOWN,e,2,SRTExtend OnEvent>KEY_DOWN,VK27,0,SRT...
by hagchr
Sun Jun 12, 2016 5:21 pm
Forum: Beginners
Topic: Run Msword macros with Macro Scheduler
Replies: 12
Views: 12064

Re: Run Msword macros with Macro Scheduler

Have to think if a better way, but one way could be: SetFocus>Document1* Wait>0.2 Press>CTRL Press>ALT SendText>p Release>ALT Release>CTRL Wait>0.1 Press>CTRL Press>Shift Press>Down Release>Shift Release>CTRL Wait>0.1 Press>CTRL Press>ALT SendText>o Release>ALT Release>CTRL
by hagchr
Sun Jun 12, 2016 4:58 pm
Forum: Beginners
Topic: Run Msword macros with Macro Scheduler
Replies: 12
Views: 12064

Re: Run Msword macros with Macro Scheduler

Then something like this should do it:
SetFocus>Document3 - Microsoft Word
Wait>0.2

Press>CTRL
Press>Shift
Press>Down
Release>Shift
Release>CTRL
by hagchr
Sun Jun 12, 2016 4:44 pm
Forum: Beginners
Topic: Run Msword macros with Macro Scheduler
Replies: 12
Views: 12064

Re: Run Msword macros with Macro Scheduler

Hi, do you want to select the whole paragraph or just from your current selection until the end of the paragraph?
by hagchr
Sun Jun 12, 2016 3:56 pm
Forum: Enhancement Suggestions
Topic: Duration of mp3/mp4
Replies: 5
Views: 10393

Re: Duration of mp3/mp4

Just to add in case anyone is new to this. The file you get contains a lot of metadata, in this case only Duration was extracted. For a video you would get something like this (depending on format/make): ExifTool Version Number : 10.19 File Name : P1010131.MP4 Directory : D:/London Dec 2014/DCIM/101...
by hagchr
Sun Jun 12, 2016 3:03 pm
Forum: Enhancement Suggestions
Topic: Duration of mp3/mp4
Replies: 5
Views: 10393

Re: Duration of mp3/mp4

You can eg download/install the free tool ExifTool and then the following would give the duration: http://owl.phy.queensu.ca/~phil/exiftool/index.html#running //Your audio/video file Let>file="C:\Users\...\xxxxxx.m4a" //Temporary file to store result Let>file2=%TEMP_DIR%tmpexif.txt Let>RP_WAIT=1 Run...
Sign up to our newsletter for free automation tips, tricks & discounts