Search found 288 matches
- Tue Sep 06, 2016 7:52 am
- Forum: Technical / Scripting
- Topic: HTMLViewer Scrolling
- Replies: 4
- Views: 3076
Re: HTMLViewer Scrolling
It is one line without line breaks, is there a way not to wrap the text?
- Mon Sep 05, 2016 4:28 pm
- Forum: Technical / Scripting
- Topic: HTMLViewer Scrolling
- Replies: 4
- Views: 3076
HTMLViewer Scrolling
Anybody that knows how I can get the horizontal scrolling to work in the HTMLViewer? I have other scripts where it works fine but somehow I am missing something here (if I extend the line then the vertical scroll appears as expected). Dialog>Dialog1 object Dialog1: TForm AlignWithMargins = True Left...
- Thu Sep 01, 2016 7:04 am
- Forum: General Discussion
- Topic: Regex question
- Replies: 5
- Views: 5613
Re: Regex question
Hi, The pattern shows what you are looking for so in both cases you are actually looking for the whole string pattern=This loan is locked by (\w+) pattern=(?:this loan is locked by\s)(\w+) (?:this loan is locked by\s) still tries to match "this loan is locked by" followed by \s To solve it, one appr...
- Fri Aug 26, 2016 11:44 am
- Forum: Technical / Scripting
- Topic: vb ip
- Replies: 4
- Views: 2880
Re: vb ip
Alt.
Code: Select all
HTTPRequest>http://api.ipify.org,,GET,,strHTML
MDL>strHTML
- Fri Aug 19, 2016 5:07 pm
- Forum: Enhancement Suggestions
- Topic: ArrayDim
- Replies: 1
- Views: 3171
ArrayDim
Some MS functions generate zero-based arrays (eg FindImagePos>) and some generate one-based ones (eg RegEx>). ArrayDim> can only (??) be used to create one-based arrays so suggestion is to have option/switch/... to also be able to generate zero-based ones.
- Thu Aug 18, 2016 11:25 am
- Forum: Scripts and Tips
- Topic: AutoSet APP_TITLE
- Replies: 5
- Views: 17521
Re: AutoSet APP_TITLE
Just discovered this, very useful and makes it much more clear when viewing the System Tray for MS files run as exe - as the name will pop-up on hover. Alternative solution using RegEx>
Code: Select all
RegEx>[^\\]+(?=\.exe),command_line,0,m,nm,0
Let>APP_TITLE=m_1
- Thu Aug 18, 2016 9:48 am
- Forum: General Discussion
- Topic: New Macro Template
- Replies: 1
- Views: 3723
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: 3981
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: 2239
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: 4212
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: 3808
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: 3791
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: 3791
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: 3074
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: 3791
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...