Search found 277 matches

by hagchr
Wed Sep 28, 2016 8:31 pm
Forum: Beginners
Topic: KeyDown Not Working?
Replies: 4
Views: 4087

Re: KeyDown Not Working?

Hi, I think it needs to be KEY_DOWN instead of KeyDown.
by hagchr
Thu Sep 08, 2016 5:56 pm
Forum: Beginners
Topic: Print Dialog
Replies: 3
Views: 3526

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.
by hagchr
Thu Sep 08, 2016 7:37 am
Forum: Beginners
Topic: Print Dialog
Replies: 3
Views: 3526

Re: Print Dialog

If I correct the spelling then it works fine for me.

PrintDialog>Dilaog1,poProportional --> PrintDialog>Dialog1,poProportional
by hagchr
Tue Sep 06, 2016 8:07 am
Forum: Technical / Scripting
Topic: HTMLViewer Scrolling
Replies: 4
Views: 2841

Re: HTMLViewer Scrolling

Great, many thanks!
by hagchr
Tue Sep 06, 2016 7:52 am
Forum: Technical / Scripting
Topic: HTMLViewer Scrolling
Replies: 4
Views: 2841

Re: HTMLViewer Scrolling

It is one line without line breaks, is there a way not to wrap the text?
by hagchr
Mon Sep 05, 2016 4:28 pm
Forum: Technical / Scripting
Topic: HTMLViewer Scrolling
Replies: 4
Views: 2841

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...
by hagchr
Thu Sep 01, 2016 7:04 am
Forum: General Discussion
Topic: Regex question
Replies: 5
Views: 5179

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...
by hagchr
Fri Aug 26, 2016 11:44 am
Forum: Technical / Scripting
Topic: vb ip
Replies: 4
Views: 2598

Re: vb ip

Alt.

Code: Select all

HTTPRequest>http://api.ipify.org,,GET,,strHTML
MDL>strHTML
by hagchr
Fri Aug 19, 2016 5:07 pm
Forum: Enhancement Suggestions
Topic: ArrayDim
Replies: 1
Views: 2940

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.
by hagchr
Thu Aug 18, 2016 11:25 am
Forum: Scripts and Tips
Topic: AutoSet APP_TITLE
Replies: 5
Views: 17087

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
by hagchr
Thu Aug 18, 2016 9:48 am
Forum: General Discussion
Topic: New Macro Template
Replies: 1
Views: 3494

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...
by hagchr
Mon Aug 15, 2016 7:25 am
Forum: Enhancement Suggestions
Topic: Set Custom Code Folding Regions
Replies: 2
Views: 3755

Re: Set Custom Code Folding Regions

You can use

//This block/region handles xyz
CODEBLOCK
...
ENDCODEBLOCK
by hagchr
Sat Aug 13, 2016 10:49 am
Forum: Technical / Scripting
Topic: XMLParse - extracting values within tags
Replies: 2
Views: 2083

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()
by hagchr
Wed Aug 10, 2016 11:21 am
Forum: Beginners
Topic: Separate Command on New Line
Replies: 2
Views: 3989

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...
by hagchr
Sat Jul 16, 2016 5:45 am
Forum: Beginners
Topic: Can't select value in a form
Replies: 1
Views: 3663

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...
Sign up to our newsletter for free automation tips, tricks & discounts