Search found 914 matches

by Peter Stotz
24 Jun 20, 13:06
Forum: Macro Programming
Topic: How to replace iframe in clipboard with just the src attribute contents?
Replies: 2
Views: 902

Re: How to replace iframe in clipboard with just the src attribute contents?

@Blake 1. use a RegEx to extract the content from the first apostrophe character »"« up to » " width « and 2. write this string to the clipboard PhraseExpress - code: 1. {#regexget -text {#insertclipboard} -expr (?<=\")(.*)(?=\" width) } 2. {#setphrase -autotext #srcURL -description src URL -content...
by Peter Stotz
15 Jun 20, 20:42
Forum: Makroprogrammierung
Topic: Inhalt aus Excel-Zellen als Variablen speichern
Replies: 5
Views: 1098

Re: Inhalt aus Excel-Zellen als Variablen speichern

@Christian Ich verstehe. Und ich dachte, der Ausschluss leerer Zellen aus der Variablenliste wäre ein besonders cleveres Leistungsmerkmal... :-(( Leere Zellen mit einzubeziehen ist natürlich möglich: (* 20200615 • Excel-Zellbereich ab Cursorposition entnehmen und die Zellinhalte (Spalteninhalte) jew...
by Peter Stotz
14 Jun 20, 18:36
Forum: Makroprogrammierung
Topic: Inhalt aus Excel-Zellen als Variablen speichern
Replies: 5
Views: 1098

Re: Inhalt aus Excel-Zellen als Variablen speichern

@Christian Excel und Zwischenablage verhalten sich beim mehrfachen Kopieren aus Zellinhalten etwas 'speziell', die Variablenzuweisung gelingt dann nicht. Eine ähnliche Aufgabenstellung wurde hier im Forum schon diskutiert und gelöst: http://www.bartelsmedia.com/forum/viewtopic.php?f=147&t=17831&sid=...
by Peter Stotz
07 Jun 20, 20:20
Forum: Macro Programming
Topic: display popup up menu by selecting a text
Replies: 6
Views: 1299

Re: display popup up menu by selecting a text

I see. As a workaround, you could combine two phrases: 1. Phrase with your hotkey for the left hand {#setclipboard}{#clipboard -copy}{#msgbox -head Execute phrase »{#insertclipboard}« ? -text Interpret the selected string »{#insertclipboard}« as an autotext of a phrase and execute it? -yes ##execute...
by Peter Stotz
30 May 20, 21:24
Forum: Macro Programming
Topic: display popup up menu by selecting a text
Replies: 6
Views: 1299

Re: display popup up menu by selecting a text

@Mamede
Create a macro with the content
{#clipboard -copy}{#insert {#insertclipboard}}
and assign a hotkey to it.
The macro executes the highlighted autotext.
If the autotext refers to a phrase folder, the folder content is displayed as a menu.

Peter
Windows 10 - PhraseExpress v15.0.46-beta
by Peter Stotz
27 May 20, 08:32
Forum: Macro Programming
Topic: Is there a way to escape curly braces? SOLVED
Replies: 4
Views: 1377

Re: Is there a way to escape curly braces? SOLVED

For which application should this be escaped out?
For some PhraseExpress applications, replacements of
{ with {#ASC 123} and/or
} with {#ASC 125} are helpful ...

Peter
Windows 10 - PhraseExpress v15.0.45-beta
by Peter Stotz
25 May 20, 20:47
Forum: Macro Programming
Topic: Video Tutorial or Help with If-Then-Else?
Replies: 5
Views: 1228

Re: Video Tutorial or Help with If-Then-Else?

@Hitch an old saying of mine: „programming is not for sissies!“ ;-) „... ZERO documentation ...“ - come on Hitch: 1. PhraseExpress manual see https://www.phraseexpress.com/doc/ 2. Internet-help: see on the manual home page the help button top right 3. In addition, user without programming experience...
by Peter Stotz
25 May 20, 00:02
Forum: Macro Programming
Topic: Video Tutorial or Help with If-Then-Else?
Replies: 5
Views: 1228

Re: Video Tutorial or Help with If-Then-Else?

@Hitch for certain standard applications, you could specify a sequence of phrase modules with their autotexts as string, e.g. '#hello #customer_name #Order_Confirmation #signature #company' '#hello #customer_name #Spare_Parts_Delivery #signature #company' ... and process these modules automatically ...
by Peter Stotz
21 May 20, 20:23
Forum: Makroprogrammierung
Topic: Wenn Checkbox, dann Textbaustein
Replies: 1
Views: 534

Re: Wenn Checkbox, dann Textbaustein

Alex, ich habe zum Testen einen Textbaustein mit Autotext ##Doppel_75493 mit dem Textbausteininhalt 'Dies ist #Doppel_75493' erstellt. Wenn ich dann dein Beispiel verwende, wird bei markierter Checkbox erwartungsgemäß der Text 'Dies ist #Doppel_75493' ausgegeben, ansonsten eine 4. Also alles ok. Kön...
by Peter Stotz
20 May 20, 10:35
Forum: Macro Programming
Topic: Adding a suffix to the day? SOLVED
Replies: 2
Views: 1174

Re: Adding a suffix to the day? SOLVED

@MattyG I'd like to be able to create "May 19th, 2020" or "May 1st, 2020" instead. Is there a way to do that? Yes, but it's a little tricky... (* 20200520 • Date in a special English date format with ordinal number, e.g. May 2nd, 2020 - May 19th, 2020 and so on ##date input ddddd in system standard ...
by Peter Stotz
18 May 20, 18:38
Forum: Macro Programming
Topic: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround
Replies: 10
Views: 1498

Re: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround

Jim, ";book" should work, because 'SmartComplete' has the same functionality as 'Postfix:Incremental' . A difference between our systems: You already use version 15.0.43i, I still use version 14.0.183. Maybe the Technical Support can give us a hint... Peter Windows 10 - 64 bit - PhraseExpress v14.0....
by Peter Stotz
18 May 20, 10:57
Forum: Macro Programming
Topic: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround
Replies: 10
Views: 1498

Re: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround

@JimRandel "it's encouraging to know that this SHOULD work." – yeah - never give up ;-) I have a Phrase with Description: "Book Antiqua" Ahh - test the phrase with a description with a leading semicolon " ; Book Antiqua" On my system the whole thing then works with the default settings (!). Peter Wi...
by Peter Stotz
17 May 20, 22:30
Forum: Macro Programming
Topic: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround
Replies: 10
Views: 1498

Re: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround

@JimRandel The Prefix character always remains after the Phrase inserts Hmm - SmartComplete with semicolon as prefix, such as ;jimsmobile ;xxx ;aaa are working for me without that effect. Maybe it helps if you add a semicolon in the expert settings (see the picture) ? autotext delimiters.jpg Peter W...
by Peter Stotz
15 May 20, 16:27
Forum: Macro Programming
Topic: Need to retrieve stored variable based on user input SOLVED
Replies: 2
Views: 1122

Re: Need to retrieve stored variable based on user input SOLVED

@rimshot This is another usual way to pull up a stored variable: (a) enter an ID number to create a temporary variable ##ID and (b) store it in a macro with that ID number as autotext (provide a PhraseExpress folder ##ID_folder ): {#settemp -name ##ID -content {#input -head ID number -single -def 12...
by Peter Stotz
09 May 20, 15:08
Forum: Macro Programming
Topic: #regexrep
Replies: 2
Views: 666

Re: #regexrep

@jkilfoil
Could this help you?
{#setclipboard}{#clipboard -copy}{#trim {#regexrep -text {#insertclipboard} -expr (.\*)\h(.\*) -repexpr $1}}

Tip: Testing RegEx see: https://regex101.com/

Peter
Windows 10 - PhraseExpress v14.0.183
by Peter Stotz
06 May 20, 17:00
Forum: Macro Programming
Topic: Pasting from Clipboard Line by Line SOLVED
Replies: 9
Views: 3834

Re: Pasting from Clipboard Line by Line SOLVED

Hello, Mamede you wrote: Macro output fails "if the text copied to the clipboard contains many pages". But a long text should not be a problem ... I rather suspect another reason: Macro output might fail because the selected text contains curly braces { } and/or PhraseExpress code snippets. This wil...
by Peter Stotz
14 Apr 20, 18:26
Forum: Macro Programming
Topic: How to get current folder path?
Replies: 3
Views: 1063

Re: How to get current folder path?

@ jerry_goyal
Could using a 'Windows environment variable' help you?
{#env %<Windows environment variable>%}
You can find this at PhraseExpress under 'Externel data'.

Peter Stotz
Windows 10 - PhraseExpress v14.0.183
by Peter Stotz
12 Apr 20, 18:35
Forum: Makroprogrammierung
Topic: Anrede - Komma und Leerzeichen GELÖST
Replies: 2
Views: 727

Re: Anrede - Komma und Leerzeichen GELÖST

Hoi, Max, eine ganz einfache Lösung könnte so aussehen, dass du die Eingabeaufforderung für 'Herr/Frau Müller' ohne Leerzeichen direkt an 'Guten Tag' anfügst, dafür aber bei einer Eingabe von Herr/Frau ... stets ein Leerzeichen voranstellst, etwa so: Guten Tag{#formeditbox -text Kundenname -hint -de...
by Peter Stotz
03 Apr 20, 10:38
Forum: Macro Programming
Topic: Dynamic Form Field On A Value Not Checked
Replies: 1
Views: 620

Re: Dynamic Form Field On A Value Not Checked

@DMAPE Due to the very general presentation of your application scenario, your request is not easy to understand for me ... (concrete examples and/or code are usually easier to understand) But as a first idea from me: You perform step one and step two. Depending on the check result of step 2 (I gues...
by Peter Stotz
27 Mar 20, 09:53
Forum: Macro Programming
Topic: Set Application Focus problem SOLVED
Replies: 4
Views: 1190

Re: Set Application Focus problem SOLVED

@Andy S The changed behaviour is probably due to a change by Microsoft (last Windows updates): Unsaved Notepad files are now given a leading asterisk * Therefore for your application "*Tally Counter - Notepad" is the best. "will I always need to insert the * character before titles when using set ap...