Search found 327 matches
- Sun Mar 26, 2017 9:16 am
- Forum: Technical / Scripting
- Topic: RegEx 2 variables in same line
- Replies: 12
- Views: 9048
Re: RegEx 2 variables in same line
Hi again, originally you asked for RexEx, so I replied in RegEx. However, you could also solve the whole thing with a simple loop. If the data set is small then there is no performance difference and probably easier to follow for anyone not into RegEx. LabelToVar>Test,string Separate>string,CRLF,arr...
- Sun Mar 26, 2017 8:09 am
- Forum: Technical / Scripting
- Topic: RegEx 2 variables in same line
- Replies: 12
- Views: 9048
Re: RegEx 2 variables in same line
Hi, You need to add a couple of lines to get the row numbers. As always there are different ways, but if we continue with RegEx, what you can do is to, for each match, do a new search from the beginning of the (full) string until the end of the match and simply count the number of end of lines/strin...
- Tue Mar 07, 2017 9:02 pm
- Forum: Technical / Scripting
- Topic: AddDialogHandler>Dialog1,EDIT3,OnEnter = enter key press
- Replies: 4
- Views: 3732
Re: AddDialogHandler>Dialog1,EDIT3,OnEnter = enter key press
I had the same problem at one point and never could figure out how to avoid the annoying beeps that comes when you press ENTER in an Edit field. So instead I used a Memo field and removed the line break that comes when you press ENTER. See simple illustration below (I am sure it can be done easier b...
- Mon Nov 07, 2016 10:25 am
- Forum: Technical / Scripting
- Topic: Trouble with variable expressions
- Replies: 5
- Views: 5913
Re: Trouble with variable expressions
Hi, I think your ELSE statement only refers to your final IF statement. This means that if one of your first IF statements triggers then the final IF will not, BUT the ELSE will, and thus will "kill" any previous matches. You can eg define a flag=FALSE in the beginning and set it to TRUE in each IF ...
- Fri Nov 04, 2016 8:39 am
- Forum: Technical / Scripting
- Topic: strip 2+ spaces or more
- Replies: 2
- Views: 3858
Re: strip 2+ spaces or more
To replace one or more spaces with just one space you can eg do:
Code: Select all
Let>text=test 12 one world ok bye now
RegEx>%SPACE%+,text,0,m,nm,1,%SPACE%,text
MDL>text
- Wed Sep 28, 2016 8:31 pm
- Forum: Beginners
- Topic: KeyDown Not Working?
- Replies: 4
- Views: 6261
Re: KeyDown Not Working?
Hi, I think it needs to be KEY_DOWN instead of KeyDown.
- Thu Sep 08, 2016 5:56 pm
- Forum: Beginners
- Topic: Print Dialog
- Replies: 3
- Views: 5379
Re: Print Dialog
If you have your script open then there is an icon (at least in the latest version of MS) for print, there you can double check printer selection, settings etc.
- Thu Sep 08, 2016 7:37 am
- Forum: Beginners
- Topic: Print Dialog
- Replies: 3
- Views: 5379
Re: Print Dialog
If I correct the spelling then it works fine for me.
PrintDialog>Dilaog1,poProportional --> PrintDialog>Dialog1,poProportional
PrintDialog>Dilaog1,poProportional --> PrintDialog>Dialog1,poProportional
- Tue Sep 06, 2016 8:07 am
- Forum: Technical / Scripting
- Topic: HTMLViewer Scrolling
- Replies: 4
- Views: 4473
Re: HTMLViewer Scrolling
Great, many thanks!
- Tue Sep 06, 2016 7:52 am
- Forum: Technical / Scripting
- Topic: HTMLViewer Scrolling
- Replies: 4
- Views: 4473
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: 4473
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: 8604
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: 4285
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: 4490
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: 20457
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