Download
Magazine
Develop
Account
Download
Magazine
Develop
Login
Forgot Account/Password
Create Account
Language
Help
Language
Help
×
Login
Login Name
Password
×
Forgot Account/Password
Category:
Software
People
PersonalForge
Magazine
Wiki
Search
OSDN
>
Find Software
>
Text Editors
>
SAKURA Editor
>
Forums
>
マクロ掲示板
>
マクロ:Messagebox関数について(PPAマクロ)
SAKURA Editor
Description
Project Summary
Developer Dashboard
Web Page
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
History
Downloads
List of Releases
Stats
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
FrontPage
Title index
Recent changes
Communication
Forums
List of Forums
一般話題(質疑・要望等) (478)
マクロ掲示板 (67)
Mailing Lists
list of ML
News
Forums:
マクロ掲示板
(Thread #47215)
Return to Thread list
RSS
マクロ:Messagebox関数について(PPAマクロ) (2022-10-26 22:14 by
べいく
#92144)
Reply
現在、Sakura Editor v2.4.1.2849 32bit (tag v2.4.1)を使用しており、マクロを書いているのですが、壁に当たっておりますので、
ご回答いただけると幸いです。
MessageBoxでネット検索しますと、たいがい、種別:0しか見当たりません。
その他の種別を用いて、デバッグチェックポイントのように使い、中止を指定したら処理を止めたいのですが、
現状どれを押してもOKと同様の動きとなります。
この関数文の下にif文をつければ戻り値に応じた振る舞いに変えられると思ってるのですが、
ヘルプにあるような戻り値は実装されてますでしょうか。参照する方法があればご教授お願いします。
Reply to #92144
×
Subject
Body
Reply To Message #92144 > 現在、Sakura Editor v2.4.1.2849 32bit (tag v2.4.1)を使用しており、マクロを書いているのですが、壁に当たっておりますので、 > ご回答いただけると幸いです。 > > MessageBoxでネット検索しますと、たいがい、種別:0しか見当たりません。 > その他の種別を用いて、デバッグチェックポイントのように使い、中止を指定したら処理を止めたいのですが、 > 現状どれを押してもOKと同様の動きとなります。 > この関数文の下にif文をつければ戻り値に応じた振る舞いに変えられると思ってるのですが、 > ヘルプにあるような戻り値は実装されてますでしょうか。参照する方法があればご教授お願いします。
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
Re: マクロ:Messagebox関数について(PPAマクロ) (2022-10-27 02:35 by
AC
#92146)
Reply
次の1行の PPA マクロで戻り値が表示できます。OK なら1が、キャンセルなら2が返っているようです。
S_TraceOut(IntToStr(MessageBox('メッセージ','キャプション',33)),0);
ですので、if 文もしくは case 文で MessageBox の戻り値に応じて処理を分けることもできると思います。
PPA についてはサクラエディタの F1 (キーで出てくる)ヘルプに統合されて表示される ppa.chm で調べました。
PPA.DLL に付属している PPA.HLP と同じ内容です。
Windows の MessageBox 関数については次のページで調べました。
[[メッセージボックス - Windows API 入門|
http://kaitei.net/winapi/message-boxes/
]]
Reply to
#92144
Reply to #92146
×
Subject
Body
Reply To Message #92146 > 次の1行の PPA マクロで戻り値が表示できます。OK なら1が、キャンセルなら2が返っているようです。 > > S_TraceOut(IntToStr(MessageBox('メッセージ','キャプション',33)),0); > > ですので、if 文もしくは case 文で MessageBox の戻り値に応じて処理を分けることもできると思います。 > > PPA についてはサクラエディタの F1 (キーで出てくる)ヘルプに統合されて表示される ppa.chm で調べました。 > PPA.DLL に付属している PPA.HLP と同じ内容です。 > > Windows の MessageBox 関数については次のページで調べました。 > [[メッセージボックス - Windows API 入門|http://kaitei.net/winapi/message-boxes/]]
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel
Re: マクロ:Messagebox関数について(PPAマクロ) (2022-10-27 14:48 by
べいく
#92150)
Reply
ACさん
早速のご回答ありがとうございます。
参照先も教えていただき。
さっそく見てみますね。
Reply to
#92146
Reply to #92150
×
Subject
Body
Reply To Message #92150 > ACさん > > 早速のご回答ありがとうございます。 > 参照先も教えていただき。 > さっそく見てみますね。 > >
You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.)
Login
Nickname
Preview
Post
Cancel