Search found 495 matches

by Phil Pendlebury
Mon Sep 07, 2020 12:39 pm
Forum: Technical / Scripting
Topic: Finding all files in subfolders?
Replies: 3
Views: 4654

Re: Finding all files in subfolders?

Hi Phil, GetFileList still isn't recursive. Hi buddy, Yes I realise that. That is why I said: It would be great if there was a switch on GetFileList> that allowed this. But I was wondering if there may be any new ingenious way to do this. :-) As I can't find any discussion on this since 2015...
by Phil Pendlebury
Mon Sep 07, 2020 5:13 am
Forum: Technical / Scripting
Topic: Finding all files in subfolders?
Replies: 3
Views: 4654

Finding all files in subfolders?

Greetings everyone, Was there ever any simple solution to this? I need to search a folder for specific file spec and include all subfolders in that search. Then return the path of each matching file found;. I searched the forum a lot and am currently using the DOS method but it is rather ungainly as...
by Phil Pendlebury
Sat Nov 17, 2018 8:55 am
Forum: Technical / Scripting
Topic: Select an item in ListBox
Replies: 7
Views: 4693

Re: Select an item in ListBox

Just for future ref:

Code: Select all

SetDialogProperty>Dialog1,MSListBox2,SelectedIndex,%xselectx%
Selects the item index %xselectx% in Dialog1 MSListBox2
by Phil Pendlebury
Mon Nov 05, 2018 11:11 am
Forum: Technical / Scripting
Topic: Select an item in ListBox
Replies: 7
Views: 4693

Re: Select an item in ListBox

Hahah thanks man, I had a typo in my code. (Wrong number in the dialog).
My one and only ListBox is labelled as MSListBox2, I was using MSListBox1 (yes it was late at night).

SelectedIndex is indeed what was needed.

Great stuff. Thanks again:-)
by Phil Pendlebury
Mon Nov 05, 2018 10:36 am
Forum: Technical / Scripting
Topic: Select an item in ListBox
Replies: 7
Views: 4693

Re: Select an item in ListBox

Yes that was the first thing I tried, I doesn't work.
by Phil Pendlebury
Sun Nov 04, 2018 9:21 pm
Forum: Technical / Scripting
Topic: Select an item in ListBox
Replies: 7
Views: 4693

Re: Select an item in ListBox

Thanks but I think you misread my question: I already finished work on the code, which is fine. (It is actually not quite so simple as just adding or removing a number the item has to be swapped. But anyway that is working fine.) The question (simplified) was: How to make an item selected without us...
by Phil Pendlebury
Sat Nov 03, 2018 9:44 pm
Forum: Technical / Scripting
Topic: Select an item in ListBox
Replies: 7
Views: 4693

Select an item in ListBox

Greetings, I searched the forum and cannot find the answer to this. It feels though it should be possible but I cannot find it. I have List box populated. On selection of an item in the list box you are allowed to move that item up or down in the list. All that is working fine. (It was tricky to cod...
by Phil Pendlebury
Sat Nov 03, 2018 1:31 pm
Forum: Technical / Scripting
Topic: XMLParse Item Name?
Replies: 3
Views: 2523

Re: XMLParse Item Name?

Ok solved this by using:

Code: Select all

GetDialogProperty>Dialog1,MSComboBox1,ItemIndex,macronumber

Code: Select all

XMLParse>strXML,/KeyCommandsPreset/member[@name='Preset']/list[@name='Macros']/item[%macronumber%]/list[@name='Commands']/item,cres,NNumItems
by Phil Pendlebury
Sat Nov 03, 2018 11:07 am
Forum: Technical / Scripting
Topic: XMLParse Item Name?
Replies: 3
Views: 2523

Re: XMLParse Item Name?

Thanks Marcus, this kind of works (I had tried that before) but for some reason it reports all the items from all the Macros section instead of just the one I need. I know this is tricky stuff without having the XMl file to look at. I'll plug away and see if I can come up with a solution before aski...
by Phil Pendlebury
Thu Nov 01, 2018 10:08 am
Forum: Technical / Scripting
Topic: XMLParse Item Name?
Replies: 3
Views: 2523

XMLParse Item Name?

Is there a way to refer to an item by its actual name? The parse below works but I have to have a number (mnum) assigned. XMLParse>strXML,/KeyCommandsPreset/member[@name='Preset']/list[@name='Macros']/item[%mnum%]/list[@name='Commands']/item,cres,NNumItems However, since I already know the name of t...
by Phil Pendlebury
Thu May 03, 2018 10:42 am
Forum: Technical / Scripting
Topic: Regex Replace - Title Case
Replies: 2
Views: 1917

Re: Regex Replace - Title Case

Thanks Marcus, I'll give that a go. :)
by Phil Pendlebury
Wed May 02, 2018 11:23 pm
Forum: Technical / Scripting
Topic: Regex Replace - Title Case
Replies: 2
Views: 1917

Regex Replace - Title Case

OK I have been on this all day and ended up with a mess of code instead of a simple line. And reading this forum it seems I did this years ago too (as did some others). I just want to turn: THIS EFFORT this WORD that into This Effort This Word That One of the strings will do, I do not need to do all...
by Phil Pendlebury
Fri Jul 28, 2017 8:53 am
Forum: Technical / Scripting
Topic: Running Scripts in Parallel
Replies: 3
Views: 3282

Re: Running Scripts in Parallel

Excellent insight JRL I have been using various types of logging with switches in an ini file that the customer can alter. But I love the OnEvent> with "FileExists" idea. :-)
by Phil Pendlebury
Mon Jul 24, 2017 1:03 pm
Forum: Technical / Scripting
Topic: XMLParse - Some better examples please
Replies: 4
Views: 5778

Re: XMLParse - Some better examples please

LabelToVar (I never used that command before) is so you can include the text within the script.

So to read from a file named ThisXFile.xml on Desktop:

Code: Select all

ReadFile>%DESKTOP_DIR%\ThisXFile.xml,strXML
Does it.
by Phil Pendlebury
Mon Jul 24, 2017 12:52 pm
Forum: Technical / Scripting
Topic: XMLParse - Some better examples please
Replies: 4
Views: 5778

Re: XMLParse - Some better examples please

Was trying to figure how to get data from an actual xml file rather than one included in the script.

Edited for clarity.
Sign up to our newsletter for free automation tips, tricks & discounts