Enhancing User Interactions: Crafting Improved Conversations with EmEditor - Your Advanced Text Editing Solution

Enhancing User Interactions: Crafting Improved Conversations with EmEditor - Your Advanced Text Editing Solution

Joseph Lv8

Enhancing User Interactions: Crafting Improved Conversations with EmEditor - Your Advanced Text Editing Solution

Viewing 5 posts - 1 through 5 (of 5 total)

For my scripts I always have the wish to be able
to create better dialogs then alert and input ;-)
One way could be to utilize http protocol to show
a web page and get back the inserted results and clicked options.
I have seen that this works well with another application.
(XYplorer file manager, credits to Donald)
Here is how it goes, maybe that would be a nifty idea for EmEditor too?
The key trick here is the EmEditor own ‘EEM:’ protocol:
May 15, 2013 at 5:26 am #11044
Stefan
Participant
Hi Yutaka,
have you think about a way to implement
such GUI-features to the macro language?
Mostly I need the possibility to show
a dialog with a few check boxes, radio buttons
and input/edit fields. Maybe drop-down list too.
Then I want to get back what the user has entered/selected
and work on that information to further execute my code.
I have seen that possibility in some ways already
and if you need some ideas/inspirations please let my know.
But please be more communicative and talk with your usership
to let them know what you think and if the suggestion have
a change to get implemented or not.
It’s not that nice to have monologues mostly ;-)
Join the chat.
Thank You
Stefan
May 15, 2013 at 10:34 pm #11045
Yutaka Emura
Keymaster
Hello,
I am very sorry for late responses.
I don’t want to add too many features because they might make EmEditor bloated, and it will become harder to maintain in the future.
I heard you can add dialog boxes using COM object such as SeraphyScriptDialog http://sourceforge.jp/projects/seraphyscrtools/ There might be other similar COM objects.
However, I will think about adding more GUI interfaces.
Thanks!
May 16, 2013 at 5:40 pm #11048
Stefan
Participant

Yutaka wrote:
Hello,

I am very sorry for late responses.
Thanks for feedback.
Yutaka wrote:

I heard you can add dialog boxes using COM object
such as SeraphyScriptDialog
That functions are exactly what I have searched for for years.
Many thanks for that link.
I have never found something like that.

Unfortunately it seams some parts are hard coded in japanisch language (see browse folder button and the path delimiter Y)
Also since I have to register the com object it is not fully portable. But I guess that de-/registering can be done by a script too.
Only it is not that nifty to share script with others if they have to register a dll first. Also they need admin rights.
And I have not found any help in english language till now.
I have to experiment a bit with that.
Thank you much!
.
May 21, 2013 at 3:01 pm #11057
Stefan
Participant
Basically it works!

#language = “VBScript”
set obj = CreateObject(“SeraphyScriptDialog”)
set frm = obj.CreateForm()
frm.FormTitle = “Modify Lines”
i1 = frm.DefineLabel(“For every line”)
i2 = frm.DefineEdit(“Prefix Lines: “)
i4 = frm.DefineEdit(“Append Lines: “)
i12 = frm.DefineButton(“OK;CANCEL”)
‘OK= return code 3
‘Cancel = return code 4
ret = 0
do
ret = frm.ExecuteForm()
loop while(ret = 0)
if(ret=3) Then
‘//Insert in front of selected lines
Leader = frm.Value(i2)
document.selection.Replace “^”,Leader, eeReplaceSelOnly or eeReplaceAll or eeFindReplaceRegExp
‘//Insert to the end of selected lines
Trailer = frm.Value(i4)
document.selection.Replace “$”,Trailer, eeReplaceSelOnly or eeReplaceAll or eeFindReplaceRegExp
end if
Note:
SeraphyScriptDialog.dll
or
SeraphyScriptDialogx64.dll
have to be reistered as COM before.
Works on Win7 64-bit for me.

  • Author
    Posts

Viewing 5 posts - 1 through 5 (of 5 total)

  • You must be logged in to reply to this topic.

Also read:

  • Title: Enhancing User Interactions: Crafting Improved Conversations with EmEditor - Your Advanced Text Editing Solution
  • Author: Joseph
  • Created at : 2025-02-06 18:06:50
  • Updated at : 2025-02-08 18:32:02
  • Link: https://win-web3.techidaily.com/enhancing-user-interactions-crafting-improved-conversations-with-emeditor-your-advanced-text-editing-solution/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
Enhancing User Interactions: Crafting Improved Conversations with EmEditor - Your Advanced Text Editing Solution