Search found 327 matches
- Thu Aug 18, 2016 9:48 am
- Forum: General Discussion
- Topic: New Macro Template
- Replies: 1
- Views: 5080
Re: New Macro Template
If you just want to avoid the text then there is a setting "Insert directive comments in new macros" that you can turn off. (It is found under Tools->Options). If you want your custom text then one alternative is to just create your own template and copy to the templates folder. Then you just select...
- Mon Aug 15, 2016 7:25 am
- Forum: Enhancement Suggestions
- Topic: Set Custom Code Folding Regions
- Replies: 2
- Views: 5762
Re: Set Custom Code Folding Regions
You can use
//This block/region handles xyz
CODEBLOCK
...
ENDCODEBLOCK
//This block/region handles xyz
CODEBLOCK
...
ENDCODEBLOCK
- Sat Aug 13, 2016 10:49 am
- Forum: Technical / Scripting
- Topic: XMLParse - extracting values within tags
- Replies: 2
- Views: 3378
Re: XMLParse - extracting values within tags
Hi, almost there, there is one tag missing so you just need to change to:
Code: Select all
Let>tmp0=Envelope/Body/RequestResponseResponse/CustomerReference/text()
- Wed Aug 10, 2016 11:21 am
- Forum: Beginners
- Topic: Separate Command on New Line
- Replies: 2
- Views: 5549
Re: Separate Command on New Line
Hi, one way is to use RegEx> to get each line separately: LabelToVar>TestString,strText RegEx>(?m-s)^.+,strText,0,m,nm,0 /* TestString: Here is some text spread over 3 lines This is the last line. */ If you are new to RegEx> then what it means is (?m-s) defines that ^ should match at the beginning o...
- Sat Jul 16, 2016 5:45 am
- Forum: Beginners
- Topic: Can't select value in a form
- Replies: 1
- Views: 4865
Re: Can't select value in a form
Hi, Not sure if you got any feedback on this or not. It seems the problem relates to security. If I take your html and put it on the web (http) then the script works fine but when it is run from a file (c:\... - file protocol) then there is an issue. Somehow the file needs to be trusted... One way i...
- Sat Jul 16, 2016 3:26 am
- Forum: Technical / Scripting
- Topic: Replace special Characters in a string
- Replies: 4
- Views: 5691
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.
- Fri Jul 15, 2016 6:21 pm
- Forum: Technical / Scripting
- Topic: Replace special Characters in a string
- Replies: 4
- Views: 5691
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...
- Fri Jul 15, 2016 4:37 pm
- Forum: General Discussion
- Topic: Running MS in a Virtual Environment
- Replies: 2
- Views: 4791
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...
- Fri Jul 15, 2016 3:55 pm
- Forum: Technical / Scripting
- Topic: Replace special Characters in a string
- Replies: 4
- Views: 5691
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...
- Sat Jul 09, 2016 4:27 pm
- Forum: Technical / Scripting
- Topic: How to display input prompts in a list setting
- Replies: 2
- Views: 3687
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...
- Wed Jul 06, 2016 5:45 am
- Forum: Beginners
- Topic: How to trigger like text expander? (No shortcut)
- Replies: 8
- Views: 10646
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 (....
- Tue Jul 05, 2016 7:58 pm
- Forum: Beginners
- Topic: How to trigger like text expander? (No shortcut)
- Replies: 8
- Views: 10646
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?
- Mon Jul 04, 2016 9:29 pm
- Forum: Beginners
- Topic: How to trigger like text expander? (No shortcut)
- Replies: 8
- Views: 10646
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...
- Mon Jul 04, 2016 8:58 pm
- Forum: Beginners
- Topic: How to trigger like text expander? (No shortcut)
- Replies: 8
- Views: 10646
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...
- Mon Jul 04, 2016 10:15 am
- Forum: Beginners
- Topic: How to trigger like text expander? (No shortcut)
- Replies: 8
- Views: 10646
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...