Search found 923 matches
- 30 Aug 20, 19:26
- Forum: Macro Programming
- Topic: Calculate a score based on multiple variables SOLVED
- Replies: 6
- Views: 3073
Re: Calculate a score based on multiple variables SOLVED
@maallard My recommendation: Use nested #CHECK macros, they are relatively easy to maintain... Here an extensible example for checking 2 conditions: (* Check 2 conditions: sex AND age ##age (random: 30 ÷ 50) *){#settemp -name ##age -content {#calc 30+{#rnd 21} -round 0}}(* ##sex (random: male |femal...
- 28 Aug 20, 17:02
- Forum: Makroprogrammierung
- Topic: Kann Phrases Arrays?
- Replies: 3
- Views: 1762
Re: Kann Phrases Arrays?
@Praia Kann Phrases Arrays? Nicht originär - aber man könnte die Listenposition eines Listeninhalts als "Array-Variablenname" wie z.B. 1;3 für den Inhalt von Zeile 1 Spalte 3 der Liste interpretieren. Ist es irgendwie Möglich jeden anderen Wert in eine eigene Variable zu bekommen? Ich denke schon, a...
- 27 Aug 20, 13:45
- Forum: Makroprogrammierung
- Topic: Eine Datumseingabe unterschiedlich ausgeben
- Replies: 5
- Views: 2518
Re: Eine Datumseingabe unterschiedlich ausgeben
@Steffen ich habe 2 Fehler in deinem Code entdeckt: 1. Einen Tippfehler bei {#settemp -name _ CST_ARSDatALT ... __ - nach -name ist ein Leerzeichen zuviel ... 2. Das Datum im Standard-Format des Systems zur Verwendung mit -value wird mit der Formatvorgabe ddddd erzeugt, z.B. als: 27.08.2020 Die von ...
- 17 Aug 20, 19:34
- Forum: Macro Programming
- Topic: Date manipulation in macro? SOLVED
- Replies: 2
- Views: 2320
Re: Date manipulation in macro? SOLVED
@richardm
use the #datetime macro for this, e.g.
{#datetime -f mmmm, dd yyyyy -s 1M -locale en-US -variablename Date/Time}
{#datetime -f mmmm, dd yyyyy -s 2M -locale en-US -variablename Date/Time}
Peter Stotz
Windows 10 Home - PhraseExpress v15.0.62
use the #datetime macro for this, e.g.
{#datetime -f mmmm, dd yyyyy -s 1M -locale en-US -variablename Date/Time}
{#datetime -f mmmm, dd yyyyy -s 2M -locale en-US -variablename Date/Time}
Peter Stotz
Windows 10 Home - PhraseExpress v15.0.62
- 17 Aug 20, 17:37
- Forum: Makroprogrammierung
- Topic: Output aus Form in variablen speichern GELÖST
- Replies: 2
- Views: 2014
Re: Output aus Form in variablen speichern GELÖST
Hi, Praia, wenn mehrere Lieferadressen, Telefonnummern, Ansprechpartner usw. vom Anwender angegeben werden sollen, kann man das Eingabeformular in der vorgeschlagen Form schon nutzen, muss dann aber die Datenzeilen 'vereinzeln' z.B. so: (* 20200817 • Beispiel: Mehrere Lieferadressen mit Straße und N...
- 09 Aug 20, 17:54
- Forum: Macro Programming
- Topic: Wrapping text with square brackets SOLVED
- Replies: 5
- Views: 3205
Re: Wrapping text with square brackets SOLVED
@Savoir you could use something like this: Autotext e.g.: [[ Phrase content: [[{#trim {#input -head Input text or take it from clipboard: -def some text -single -required}}]] Workflow: 1. Optional: Mark and copy one or more text snippets with CTRL+C to the clipboard 2. Execute the macro program with...
- 15 Jul 20, 21:14
- Forum: Macro Programming
- Topic: How to replace iframe in clipboard with just the src attribute contents?
- Replies: 2
- Views: 1693
Re: How to replace iframe in clipboard with just the src attribute contents?
@Ivon Michal
Peter
Windows 10 - PhraseExpress v15.0.58-Beta
Please give us a concrete example for your desired application...How to Load HTML, CSS, and JS Code into an iFrame
Peter
Windows 10 - PhraseExpress v15.0.58-Beta
- 10 Jul 20, 10:25
- Forum: Macro Programming
- Topic: display popup up menu by selecting a text
- Replies: 7
- Views: 2992
Re: display popup up menu by selecting a text
@rkychu hmm - this is tricky... I think, there is no direct access to the description of a phrase... But there is a - rather unknown - macro command {#contents} If {#contents} is inserted as phrase description , the phrase contents are displayed in selection menus ! What application idea is behind y...
- 28 Jun 20, 22:23
- Forum: Macro Programming
- Topic: Video Tutorial or Help with If-Then-Else?
- Replies: 5
- Views: 2593
Re: Video Tutorial or Help with If-Then-Else?
@ Hitch
Thanks for your feedback.
We can meet again in this forum with pleasure.
Bye so long!
Peter
Windows 10 - PhraseExpress v15.0.52-Beta
Thanks for your feedback.
We can meet again in this forum with pleasure.
Bye so long!
Peter
Windows 10 - PhraseExpress v15.0.52-Beta
- 24 Jun 20, 13:06
- Forum: Macro Programming
- Topic: How to replace iframe in clipboard with just the src attribute contents?
- Replies: 2
- Views: 1693
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...
- 15 Jun 20, 20:42
- Forum: Makroprogrammierung
- Topic: Inhalt aus Excel-Zellen als Variablen speichern
- Replies: 5
- Views: 2448
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...
- 14 Jun 20, 18:36
- Forum: Makroprogrammierung
- Topic: Inhalt aus Excel-Zellen als Variablen speichern
- Replies: 5
- Views: 2448
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=...
- 07 Jun 20, 20:20
- Forum: Macro Programming
- Topic: display popup up menu by selecting a text
- Replies: 7
- Views: 2992
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...
- 30 May 20, 21:24
- Forum: Macro Programming
- Topic: display popup up menu by selecting a text
- Replies: 7
- Views: 2992
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
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
- 27 May 20, 08:32
- Forum: Macro Programming
- Topic: Is there a way to escape curly braces? SOLVED
- Replies: 4
- Views: 2898
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
For some PhraseExpress applications, replacements of
{ with {#ASC 123} and/or
} with {#ASC 125} are helpful ...
Peter
Windows 10 - PhraseExpress v15.0.45-beta
- 25 May 20, 20:47
- Forum: Macro Programming
- Topic: Video Tutorial or Help with If-Then-Else?
- Replies: 5
- Views: 2593
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...
- 25 May 20, 00:02
- Forum: Macro Programming
- Topic: Video Tutorial or Help with If-Then-Else?
- Replies: 5
- Views: 2593
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 ...
- 21 May 20, 20:23
- Forum: Makroprogrammierung
- Topic: Wenn Checkbox, dann Textbaustein
- Replies: 1
- Views: 1200
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...
- 20 May 20, 10:35
- Forum: Macro Programming
- Topic: Adding a suffix to the day? SOLVED
- Replies: 2
- Views: 2212
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 ...
- 18 May 20, 18:38
- Forum: Macro Programming
- Topic: Deprecated "Postfix:Incremental" Feature. Need Help With A Workaround
- Replies: 10
- Views: 3810
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....