This page describes each SHIORI Event ID issued in SHIORI/3.0 and 3.1 (SSP extended definitions).
Events not listed here may be described on the SHIORI Resource or External SHIORI Events pages.
For an explanation of SHIORI Events themselves, see the page “Notes: What is a SHIORI Event?.”
For SHIORI Events that have References, a list of their References is provided.
If the number portion of a Reference is “*”, it means the number of References is variable.
In other words, the Reference number is variable because the number of items depends on the operating environment, and all such variable References have the same content format.
Even in this case, the rule that References are numbered sequentially starting at 0 still applies. For example, if the Reference list contains only entries numbered *, References in the same format are listed from 0 through a variable number (depending on the environment); if the list includes up to Reference2 and the next line is Reference*, References in the same format are listed from 3 through a variable number.
A SHIORI Event marked [NOTIFY] in its description is normally issued with the NOTIFY command.
If no such label is present, it is normally issued with the GET command.
Occurs on the first startup.
In SSP, if no script is returned for this event (204), OnBoot occurs immediately afterward.
Occurs at startup.
In SSP, if no script is returned for OnGhostChanged, OnGhostCalled, OnFirstBoot, or OnVanished (204), this event occurs next.
Occurs when a request to close is made.
In SSP, if no script is returned for OnGhostChanging or OnCloseAll (204), this event occurs next.
Occurs when SSP itself is shutting down.
Occurs when "Exit All" is requested from the owner draw menu, when "Exit" is requested for the only running ghost, and when SSP shuts down as part of an OS shutdown.
Occurs when switched from another ghost to this ghost.
In SSP, if no script is returned for this event (204), OnBoot occurs immediately afterward.
Occurs when a switch to another ghost is requested.
In SSP, if no script is returned for this event (204), OnClose occurs next.
Occurs when called by another ghost.
In SSP, if no script is returned for this event (204), OnBoot occurs immediately afterward.
Occurs when a request is made to call another ghost.
Occurs after another ghost is called and that ghost completes its startup script.
Occurs when another ghost is called and that ghost starts.
In other words, it occurs for unrelated ghosts at the same time that OnGhostCallComplete occurs for the calling ghost.
Occurs when switching between other ghosts.
Occurs when another ghost is closed while multiple ghosts are running.
Occurs when switched from another shell.
Occurs when switching to another shell.
This event occurs when dressup is switched.
It may be notified multiple times. In that case, the last OnDressupChanged is [GET], and the others are [NOTIFY].
Also see OnNotifyDressupInfo, which occurs after this event.
This notification is skipped when the number of dressup flag changes is large (currently 100 elements). Use OnNotifyDressupInfo to receive large numbers of changes.
Occurs when switched from another balloon.
Occurs when the window is restored from minimized.
Occurs when minimization is requested.
※Only SSP can be configured to speak in response.
Occurs when SSP is minimized in response to launching a full-screen app.
Overrides OnWindowStateMinimize, which occurs during normal minimization.
Occurs when SSP restores from minimization after a full-screen application exits.
Overrides OnWindowStateRestore, which occurs during normal restoration from minimization.
Fires when the virtual desktop is switched.
Currently only works on Windows 10.
This is an experimental feature, so its specification may change in the future.
Occurs when entering the ghost cache.
Occurs when leaving the ghost cache.
Occurs on startup. [NOTIFY]
Occurs when shutdown is requested. [NOTIFY]
Occurs when resuming from suspend (both sleep and hibernation).
Occurs when starting suspend (both sleep and hibernation). [NOTIFY]
Occurs during a baseware update, after the download is complete and before file updates begin. If this event is not handled, OnCloseAll and then OnClose occur.
Occurs when the ghost starts after a baseware update has completed. If this event is not handled, OnBoot occurs.
Occurs when TeachBox opens.
Occurs when TeachBox is closed.
Occurs when input is submitted through TeachBox.
Occurs when a script is passed from CommunicateBox or another ghost.
Occurs when CommunicateBox is closed.
Occurs when input is submitted in an InputBox.
See also InputBox ID.
Occurs when InputBox is closed.
If a timeout occurs and this event is not handled, OnUserInput Reference1=timeout is sent for compatibility.
Occurs when input is submitted in a multiline input box (textareabox).
If the ID begins with "On", an event named after the ID is raised instead of this event, and the input is placed in Reference0 (subsequent references each shift back by one). The same rule applies as for the InputBox ID.
\1).Occurs when a multiline input box (textareabox) is closed.
This event occurs regardless of the ID. Unlike OnUserInputCancel, on timeout it does not redirect to the input submission event.
\1).Occurs when the box is expanded. If a list of text separated by the character with byte value 1 is returned for this event, autocomplete is enabled in the input box.
(Windows Me/2000 or later)
Occurs when Save/OK is clicked in a file-related dialog.
Occurs when Cancel is clicked in a file-related dialog.
Occurs when an item is clicked using the Help button in the settings dialog.
Occurs when Accept is clicked in the terms-of-use dialog.
No event occurs when the close button in the upper-right corner is clicked.
Occurs when Decline is clicked in the terms-of-use dialog.
No event occurs when the close button in the upper-right corner is clicked.
Occurs every second.
If talk playback is unavailable, the event is notified with Reference3 set to 0 using NOTIFY. The returned script is ignored.
Occurs every minute.
If talk playback is unavailable, the event is notified with Reference3 set to 0 using NOTIFY. The returned script is ignored.
Hourly time signal event. Occurs at the start of each hour (around ? o'clock, 0 minutes, 0 seconds).
If talk playback is unavailable, it waits until talk playback is possible. Therefore, the notification may arrive slightly later than the scheduled time.
Occurs when vanishing is requested.
Occurs when YES is selected in the confirmation dialog.
Occurs when NO is selected in the confirmation dialog.
Occurs when the vanish event is canceled by double-clicking.
\s[2]あいうえお, the value is 6.Occurs when the ghost switches to this ghost because the previous ghost vanished.
In SSP, if no script is returned for this event (204), OnBoot occurs immediately afterward.
Also note that in SSP, this event occurs when another concurrently running ghost vanishes if no script is returned for OnOtherGhostVanished. In this case, there is no fallback to OnBoot.
Occurs when another ghost vanishes while multiple ghosts are running.
Occurs when a choice is selected.
Occurs when a choice is selected.
Starts before OnChoiceSelect.
\q tag).Occurs when the cursor enters or leaves a choice.
OnChoiceEnter occurs without a Reference when the cursor leaves a choice.
\q tag).Occurs when the choice wait time expires.
Occurs when the cursor rests over a choice.
\q tag).Occurs when a \_a hyperlink is clicked.
Occurs when a \_a hyperlink is clicked. OnAnchorSelect then occurs only if SHIORI returns nothing for this event.
\_a tag).Occurs when the cursor enters or leaves a \_a hyperlink.
\_a tag).Occurs when the cursor rests over a \_a hyperlink.
\_a tag).Occurs when the surface changes.
[NOTIFY]
Occurs once after a certain amount of time has passed since the talk.
In SSP, it occurs after the number of seconds set by the talk timeout in the baseware settings, plus 15 seconds (that is, 15 seconds after the balloon closes).
※The balloon remains displayed until OnSurfaceRestore occurs only when the talk timeout setting is 0.
Notifies when the surface (expression) of another ghost (not this one) changes.
This event is disabled by default to reduce load. To use it, you must enable it in advance with \![set,othersurfacechange,true].
Occurs when a left, right, or middle button click is released, if OnMouseUp does not respond.
Occurs when a mouse button other than the left or right button is clicked and released, if OnMouseUpEx does not respond.
Occurs when the left or right button is double-clicked.
Occurs when a button other than the left or right button is double-clicked.
Occurs when clicked three or more times in succession.
※ If SHIORI does not respond to this event, processing returns to the usual OnMouseClick and OnMouseDoubleClick sequence.
Occurs when a button other than the left or right button is clicked three or more times in succession.
※ If SHIORI does not respond to this event, processing returns to the usual OnMouseClickEx and OnMouseDoubleClickEx sequence.
Occurs when the left or right mouse button is released.
Occurs when a mouse button other than the left or right button is released.
Occurs when the left or right mouse button is pressed.
Occurs when a mouse button other than the left or right button is pressed.
Occurs when the mouse moves.
Occurs when the mouse wheel rotates.
From SSP2.3.53 onward, in a touchscreen environment, OnMouseWheel also occurs as a fallback event if SHIORI returns nothing (204 No Content is returned) for an OnMouseGesture whose Reference5 is up or down. In that case, the value of Reference2 is converted from the movement amount and up/down direction of the original OnMouseGesture (positive for up, negative for down).
Occurs when the mouse enters the character window.
Occurs when the mouse leaves the character window.
Occurs when the mouse enters a hit-test area.
Occurs when the mouse leaves a hit-test area.
Occurs when a mouse drag begins. Suppressed in passive mode.
Occurs when a mouse drag ends. Suppressed in passive mode.
Occurs while the mouse is stationary.
Occurs when the mouse is right-dragged or the wheel is dragged.
Also, from SSP2.3.53 onward, in a touchscreen environment, if SHIORI returns nothing (204 No Content is returned) for an OnMouseGesture whose Reference5 is up or down, OnMouseWheel occurs as a fallback event. See the OnMouseWheel section for details.
Occurs when a gamepad button is pressed.
Does not occur while the button is held down; it occurs only at the moment of pressing.
If multiple buttons change simultaneously, a separate event occurs for each button.
The event is broadcast to all running ghosts simultaneously.
Occurs when a gamepad button is released.
If multiple buttons change simultaneously, a separate event occurs for each button.
The event is broadcast to all running ghosts simultaneously.
Occurs when the value of a gamepad analog stick or trigger changes significantly from the value at the previous notification.
The event does not occur for minor fluctuations. Values near the stick center and within the trigger's dead zone are automatically rounded to 0.
The event always occurs when a stick or trigger returns to its center (neutral) position, regardless of the amount of change.
The event is broadcast to all running ghosts simultaneously.
Axis events may occur frequently while a stick is being operated, so consider rate-limiting on the ghost side when performing expensive processing.
Occurs when a gamepad is connected. Also occurs if it was already connected when SSP started.
The event is broadcast to all running ghosts simultaneously.
Occurs when a gamepad is disconnected.
The event is broadcast to all running ghosts simultaneously.
Reference0 of every event contains the pad index.
If you only need to support one gamepad, you can ignore Reference0 (it is usually 0).
SSP on Windows uses the XInput API to obtain gamepad input. This imposes the following restrictions.
Occurs when the balloon is interrupted by something other than SSTP.
\s[2]あいうえお, the value is 6Occurs when a balloon is closed.
Occurs when a balloon times out for a reason other than a choice.
Occurs when the balloon for the tray icon is dismissed by clicking it.
When displayed as a toast notification instead of a balloon (see \![set,trayballoon]), it occurs when the toast is clicked. It does not occur when clicked after it has moved to the notification center.[2.9.14]
Occurs when the balloon for the tray icon is dismissed by timing out or clicking the close button.
When displayed as a toast notification instead of a balloon (see \![set,trayballoon]), it occurs when the toast is closed using its close button or when it times out and moves to the notification center.[2.9.14]
Occurs when archive installation begins.
Occurs when installation completes successfully.
This event uses an old specification, so only the first two items installed together in a single installation are reported.
If bundling can result in three or more items being installed at once, use OnInstallCompleteEx.
Occurs when installation completes successfully.
If this event is unavailable, OnInstallComplete occurs.
Occurs last, after OnInstallComplete/OnInstallCompleteEx, when all installations complete successfully, such as when multiple nars are dragged and dropped.
SSP versions earlier than 2.9.00 have an implementation omission, so this event does not actually occur.
Occurs when installation fails.
Occurs when the file being installed specifies another ghost as its intended recipient.
Occurs when the file being installed specifies another ghost, and the specified ghost is running at the same time. Subsequent install events are sent to the specified ghost.
The following apply only to OnInstallComplete / OnNarCreated
These are deprecated in SSP; ghosts and balloons are reported with separate identifiers.
The following are SSP-specific
In SSP, identifiers for items installed simultaneously are dot-separated, calendar.skin / calendar.plugin, just as they are specified in install.txt.
The identifier on the archive's baseware side retains the form used for type in install.txt, so it is space-separated: calendar skin / calendar plugin.
Occurs when the cursor, with a file being dragged, moves over a ghost.
[Legacy specification] Occurs when a file is dragged and dropped.
[Legacy specification] Occurs when a file is dragged and dropped.
[Legacy specification] Occurs when a file is dragged and dropped.
Occurs when a file is dragged and dropped. This is the latest specification at present.
When this event is handled, the baseware's default processing (opening the file in an image viewer, media player, or archive viewer) is not performed. To handle the event and also perform the default processing, use \![execute,dropdefault,file]. [2.9.10]
Occurs when a file is dragged and dropped, the ghost does not respond to OnFileDrop2 (or \![execute,dropdefault,file] is executed [2.9.10]), and the media player opens. References are the same as for OnFileDrop2.
Occurs when a file is dragged and dropped, the ghost does not respond to OnFileDrop2 (or executes \![execute,dropdefault,file] [2.9.10]), and an image viewer is opened. References are the same as for OnFileDrop2.
Occurs when a file is dragged and dropped, the ghost does not respond to OnFileDrop2 (or \![execute,dropdefault,file] is executed [2.9.10]), and the archive viewer opens. References are the same as for OnFileDrop2.
Occurs when the cursor is over a ghost with an object that cannot be treated as a "file." Examples: Windows "My Computer" and similar objects.
Occurs when an object that cannot be handled as a "file" is dropped onto a ghost. Example: "My Computer" in Windows.
References are exactly the same as for OnOtherObjectDropping.
Occurs when a directory is dragged and dropped.
Occurs when the wallpaper is changed by dragging and dropping an image file.
To be notified when the wallpaper is changed by the OS, use OnDesktopWallpaperChange.
Occurs when a ghost folder is dragged and dropped.
Occurs when updates2.dau is created.
Occurs when a ghost folder containing install.txt is dragged and dropped.
Occurs when a nar file is created.
Occurs when a URL is about to be dropped and the mouse cursor is over it.
This event occurs for all URLs that can be accepted.
Occurs when a URL has been dropped and the download is about to start.
This event occurs before the download process. It does not occur for other types of installations (homeurl or feed (RSS) installation).
Occurs when receiving a dropped URL has finished.
This event occurs immediately before a NAR installation, just after the download process finishes. It does not occur for other types of installations (homeurl or feed (RSS) installation).
Occurs when receiving a dropped URL fails or is canceled.
This event occurs when an attempt to install a NAR fails. It does not occur for other types of installations (homeurl or feed (RSS) installation).
Notifies when a URL is dragged and dropped onto a character window.
Returning a script for this event cancels the normal download process.
Return a script only when the ghost wants to handle the URL itself.
\![execute,dropdefault,url][2.9.10] or \![execute,install,url] to continue processing.Notifies the specified ghost when a web association in the format below is opened or dropped.
x-ukagaka-link:type=event&ghost=(descript.txt's "name" or "sakura.name")&info=(string passed in Reference0)
Character encoding is fixed to UTF-8, and the string is URL-encoded.
Example: x-ukagaka-link:type=event&ghost=Emily&info=sweet-potato-feeding
SecurityLevel is always external.
Occurs when an instruction to run an update is issued from a menu or similar.
Returning a script in response to this event allows the update process to be customized.
If the event is ignored, the standard update process starts automatically.
Occurs when a network update is instructed to begin.
Occurs when update files are found.
Occurs when the network update succeeds and completes.
Occurs when the network update fails.
Occurs when a file download begins.
Occurs when MD5 comparison begins.
Occurs when the MD5 values match.
Occurs when the MD5 values do not match.
Occurs when a network update for something other than a ghost is instructed to begin.
Occurs when update files for something other than a ghost are found.
Occurs when a network update for something other than a ghost succeeds and completes.
Occurs when a network update for something other than a ghost fails.
Occurs when downloading a file other than a ghost begins.
Occurs when MD5 comparison begins for something other than a ghost.
Occurs when the MD5 values match for something other than a ghost.
Occurs when the MD5 values do not match for something other than a ghost.
Occurs when the network update check succeeds.
Occurs when the network update check fails.
Occurs when a network update is run and reports all update results together, including the bulk balloon and shell update feature.
The update results are included in the following format, in the order in which the updates were run (\1 is byte value 1)
(※1)[\1](network-update/※2)[\1](network-update/※3)[\1](network-update/※4)
or
(※1)[\1](network-update/※2)[\1](network-update/※3)
Occurs when a network update is run and reports all update results together, including the bulk balloon and shell update feature.
The update results are included in the following format, in the order in which the updates were run (\1 is byte value 1)
(※1)[\1](network-update/※2)[\1](network-update/※3)[\1](network-update/※4)[\1](network-update/※5)
or
(※1)[\1](network-update/※2)[\1](network-update/※3)[\1](network-update/※4)
Occurs last when the update-check-only option is enabled. The explorer version of OnUpdateResult.
Occurs last when the update-check-only option is enabled. The explorer version of OnUpdateResultEx.
Occurs when a network update is run from the ghost explorer. The explorer version of OnUpdateResult.
\![updatebymyself]).The order of events during a normal SSP network update (ghost update) is as follows.
OnUpdateProcessExec ※Only when run from a menu or similar. If a script is returned, the standard update process that follows is not performed.
OnUpdateBegin
OnUpdateReady ※Only if there are update files. If there are no update files, the following events are skipped and OnUpdateComplete (Reference0 is none) occurs.
Repeat the following for each update file.
After all files have been downloaded, the update files are replaced and SHIORI, the shell, and other components are reloaded. OnUpdateComplete then occurs. Therefore, OnUpdateComplete is received by the ghost after it has been reloaded.
When updating the ghost itself, its shell, and its balloon together, the sequence of events described above occurs separately for each, in the order ghost → shell → balloon (→ recommended balloon). After all updates are complete, OnUpdateResultEx occurs once, at the end. OnUpdateResult occurs immediately afterward only if OnUpdateResultEx did not return a script. For update checks only, these are OnUpdateCheckResultEx and OnUpdateCheckResult, respectively.
Occurs when a time synchronization request is initiated.
Occurs when a connection to the server is established. To apply the correction, return a script containing the \6 tag.
Occurs when a connection to the server is established. To apply the correction, return a script containing the \6 tag.
Occurs when the local time is corrected to match the server time using the \6 tag.
Occurs when the local time is corrected to match the server time using the \6 tag.
Occurs when time synchronization fails.
Occurs when a mail check is requested.
Occurs when a mail check succeeds.
Occurs when the number of messages in the mail spool increases.
In SSP, this occurs only if no script was returned for OnBIFFComplete.
Occurs when a mail check fails.
Occurs when headline sensing is requested to start.
Occurs when there is a headline sensor item to read aloud.
Occurs when headline sensing completes successfully.
Currently, successful headline sensing means that reading aloud has started, so this event is sent only when retrieval succeeded but there were no updates.
Occurs when headline sensing fails.
Occurs when RSS sensing is requested to start. If this event is not handled, OnHeadlineSenseBegin is called.
Occurs when headline sensing completes successfully. If this event is not handled, a suitable script is generated for display and a headline completion event is called.
\1] URL [\1] update date and time (comma-separated format: year,month,day,hour,minute,second)[\1] author name [\1] content or summary\1] is the character with byte value 1Occurs when RSS sensing fails. If this event is not handled, OnHeadlineSenseFailure is called.
Occurs when the contents of “Today's schedule” in the baseware calendar change. [NOTIFY]
Examples include when the date changes, a schedule is added or deleted, or the results retrieved by the schedule sensor change. It does not occur if nothing changes.
This event is sent to all running ghosts, not to a specific ghost.
Reference0 and subsequent references each contain one item from the updated “Today's schedule.” Each Reference is delimited by byte value 1 (hereafter [\1]).
If there are no remaining schedules, the event occurs with no References.
\1] Event content (caption) [\1] Additional data (subtitle) [\1] Script (script) [\1] Start date and time [\1] End date and time [\1]\1] is also appended at the end.Occurs 5 minutes before the time of a schedule registered in the baseware calendar.
Occurs when the mouse rests over a calendar icon and its schedule is read.
Occurs when a schedule sensor begins connecting.
This event is sent to all running ghosts, not to a specific ghost.
Occurs only during a manual update (when a sensor is selected from the calendar menu to update). As described below, it does not occur during periodic checks.
Occurs when a schedule sensor finishes processing.
This event is sent to all running ghosts, not to a specific ghost.
Occurs only during a manual update. As described below, it does not occur during periodic checks.
This event also occurs on success when data was retrieved but nothing changed (for example, 304 Not Modified or identical content).
Occurs when a schedule sensor fails to process.
This event is sent to all running ghosts, not to a specific ghost.
Unlike Begin/Complete, this event also occurs during periodic checks.
[Legacy specification] Occurs when a schedule sensor begins connecting in post mode.
This event does not occur in current versions of SSP because the posting feature itself has been deprecated.
[Legacy specification] Occurs when a schedule sensor completes posting.
This event does not occur in current versions of SSP because the posting feature itself has been deprecated.
Occurs when SSTP is interrupted.
\s[2]あいうえお, the value is 6.Occurs when an instruction is given to add the last client to the blacklist.
Occurs when execute-http successfully completes a retrieval.
Occurs when execute-http fails to retrieve data. References are the same as for Complete.
[2.8.90] If a retrieval from the same URL is already in progress, the later request is not executed and this event occurs (Reference4=downloading). Previously, the tag was silently ignored.
Occurs when --progress-notify is specified for execute-http. References are the same as for Complete.
Occurs when --streaming is specified for execute-http. References are the same as for Complete, except for Reference4.
This event is sent even if retrieval fails (the HTTP response is not 200), because the connection succeeded at the SSL/TLS level.
Even if an ID beginning with On is specified with --async or --sync, the event name is not replaced; this event is always sent. Use Reference0 to identify which request it is for.
Occurs when \![execute,ical-get/ical-post] successfully completes retrieval and parsing.
Reference0 contains information about the calendar as a whole; Reference1 onward contain one event each. Values within each Reference are separated by byte value 1 (hereafter [\1]).
The number and order of events depends on the iCal filtering options.
\1] time zone (X-WR-TIMEZONE) [\1] calendar scale (CALSCALE; usually GREGORIAN) [\1] number of events returned by this event [\1] total number of events in the file [\1] start date of the filtering period [\1] end date of the filtering period\1] start date and time [\1] end date and time [\1] title (SUMMARY) [\1] description (DESCRIPTION) [\1] location (LOCATION) [\1] URL [\1] status (STATUS) [\1] categories (CATEGORIES) [\1] recurrence rule (original RRULE text) [\1] all-day flag [\1] occurrence dateOccurs when retrieval with \![execute,ical-get/ical-post] fails.
Occurs when --progress-notify is specified with \![execute,ical-get/ical-post]. Since this notification is sent before parsing, the references are the same as for OnExecuteHTTPComplete.
This event is sent even if retrieval fails (the HTTP response is not 200), because the connection succeeded at the SSL/TLS level.
Even if an ID beginning with On is specified with --async or --sync, the event name is not replaced; this event is always sent.
Occurs when \![execute,rss-get/post] successfully completes retrieval.
[2.8.92] Which items and how many are returned depends on the RSS filtering options.
\1] URL [\1] update date and time (comma-separated format: year,month,day,hour,minute,second) [\1] author name [\1] content or summary\1] is byte value 1Occurs when retrieval with \![execute,rss-get/post] fails.
This event is sent even if retrieval fails (the HTTP response is not 200), because the connection succeeded at the SSL/TLS level.
Even if an ID beginning with On is specified with --async or --sync, the event name is not replaced; this event is always sent.
Occurs when adding or deleting an entry in the ghost's schedule is complete using \![execute,schedule-add] or \![execute,schedule-delete].
If an ID beginning with On is specified with --event, that ID becomes the event name.
Occurs when \![execute,schedule-add/schedule-delete] fails.
If an ID beginning with On is specified with --event, the event name is that ID with Failure appended.
Occurs when the ghost's schedule is read using \![execute,schedule-get].
If an ID beginning with On is specified with --event, that ID becomes the event name.
Occurs when a file or directory monitored by \![execute,filewatch] changes.
If an ID beginning with On is specified with --async, that ID becomes the event name.
Since writes to a file may occur many times in a short period, the event waits for the time specified by --debounce (500 milliseconds if omitted) after changes stop, then fires once for all of them. If writes occur with longer intervals, or if changes continue for three times the specified duration after the first change, a single save may cause the event to fire multiple times.
Occurs when \![execute,filewatch] fails or monitoring can no longer continue. In this case, monitoring is stopped.
If an ID beginning with On is specified with --async, the event name is that ID followed by Failure.
Occurs when the WebSocket connection is established (after a successful HTTP 101 Upgrade). Fires only for the initial connection; on a successful reconnection, OnExecuteWebSocketReconnect fires instead.
If the eventID specified with the --async option begins with "On", the event name is eventID+"Open".
Occurs each time a data frame is received from the server while the WebSocket connection is active. Fragmented frames are automatically reassembled before the event fires. Does not fire for Ping/Pong/Close frames.
If the eventID specified with the --async option begins with "On", the event name is the eventID itself.
Occurs when automatic reconnection succeeds after an error disconnect. OnExecuteWebSocketOpen does not fire; this event serves the equivalent role of Open. Data received after reconnection is reported as usual through OnExecuteWebSocketReceive.
If the eventID specified with the --async option begins with "On", the event name is eventID+"Reconnect".
Occurs when the WebSocket connection is finally disconnected. If automatic reconnection is attempted, this event fires afterward. Does not fire on Failure.
If the eventID specified with the --async option begins with "On", the event name is eventID+"Close".
\![close,websocket]), "userbreak"=forced interruption by \![cancel,websocket] or ghost termination.Occurs when the initial connection fails to complete the HTTP 101 Upgrade, or when an error disconnects an active connection and all five automatic reconnection attempts fail.
If the eventID specified with the --async option begins with "On", the event name is eventID+"Failure".
Occurs when an SSL/TLS connection is established for a wss:// connection. Fires only during the initial connection, regardless of whether the Upgrade succeeds. The event name is always fixed and cannot be changed with the --async option.
Occurs when the specified number of pings have completed with \![execute,ping].
\1] total number of transmissions [\1] number of successes [\1] number of failures [\1] are separated by byte value 1\1] responding address [\1] RTT (round-trip time in ms) [\1] are separated by byte value 1Occurs while a ping is in progress with \![execute,ping].
\1] total number of transmissions [\1] number of successes [\1] number of failures [\1] are separated by byte value 1\1] responding address [\1] RTT (round-trip time in ms) [\1] are separated by byte value 1Occurs on success with \![execute,nslookup].
Occurs on failure with \![execute,nslookup].
Occurs when \![raiseplugin] fails.
Occurs when \![notifyplugin] fails.
Occurs when \![raiseother] fails.
\t, timecritical.\0 name.Occurs when \![notifyother] fails.
\t, timecritical.\0 name.Occurs when a character's (surface's) window overlaps another window.
Notifications are sent whenever the overlap state changes, so with some effort you can also detect when the windows no longer overlap.
\1] ID-ID [\1] ID-ID ...\1] is the byte value 1\1] 0-2 indicates that window 0 overlaps window 1 and window 0 overlaps window 2.Occurs when the windows of any running characters' (surfaces') overlap, including other characters. The global version of OnOverlap.
Notifications are sent whenever the overlap state changes, so with some effort you can also detect when the windows no longer overlap.
Note that information about your own window is also included.
\1] Sakura name/ID-Sakura name/ID [\1] Sakura name/ID-Sakura name/ID ...\1] is the byte value 1\1] Mari/0-Director-tan/1Occurs when a character's (surface's) window gets caught on or moves outside the monitor (work area). Offscreen.
Notifications are sent whenever the offscreen state changes, so with some effort you can also detect when it is no longer offscreen.
\1] ID [\1] ID ...\1] is the byte value 1\1] 2 indicates that windows 1 and 2 are offscreen.Occurs when any character's (surface's) window, including other characters, gets caught on or moves outside the monitor (work area). Offscreen. The global version of OnOffscreen.
Notifications are sent whenever the offscreen state changes, so with some effort you can also detect when a window is no longer offscreen.
Note that information about your own window is also included.
\1] Sakura name/ID [\1] Sakura name/ID ...\1] is the byte value 1\1] Director-tan/0Occurs when the remote server does not respond within the allotted time.
Occurs when the network connection status changes.
Only sent as NOTIFY immediately after startup.
Occurs when the screen saver starts. [NOTIFY]
Occurs when the screen saver ends.
Occurs when returning to the lock screen while still logged in. On Windows, this also occurs when using Fast User Switching.
This event is not a NOTIFY, but note that the user will not see anything you do while the screen is locked.
Occurs when returning to normal operation from the lock screen. On Windows, this also occurs when using Fast User Switching.
Occurs when switching to another user account using Fast User Switching.
On Windows, this is sent together with OnSessionLock, and the window is also forcibly minimized, causing OnWindowStateMinimize to occur.
Note that this behavior is a Windows-specific constraint; other operating systems may not behave the same way.
Occurs when returning to the user account in use after switching users with Fast User Switching.
On Windows, this is sent together with OnSessionUnlock, and the forced minimization is also undone, causing OnWindowStateRestore to occur.
Note that this behavior is a Windows-specific constraint; other operating systems may not behave the same way.
Occurs when CPU load is high. (Currently, it triggers when the load is around 80% for a short while.)
Triggers when CPU load drops from a high level. (Currently, after High triggers, it occurs when the load falls below 60%.)
Occurs when memory usage is high. (Currently, it triggers after usage has stayed at around 80% for a short while.)
Triggers when memory usage drops back down after being high. (Currently, after High has triggered, this occurs when usage falls below 60%.)
Occurs when the resolution/color depth of the desktop (primary screen) changes. [NOTIFY at startup / GET at other times]
Occurs when a window is moved across screens. [NOTIFY/other GET]
Occurs when the screen resolution/color depth changes. Supports multiple monitors. [NOTIFY at startup / GET at other times]
Occurs when the monitor is powered ON/OFF. This includes not only when it is simply turned ON/OFF, but also when a laptop lid is closed.
Notifies the remaining battery level. Notified with [NOTIFY] only at startup; GET is used at other times.
On operating systems earlier than Windows 7, the thresholds for high/low may differ.
Occurs when the battery level becomes low (OnBatteryNotify Reference3 is low or lower).
Note that the external application “Kinoko” has an event with the same name.
This event is implemented for compatibility with “Kinoko”.
Occurs when the battery level becomes extremely low (OnBatteryNotify Reference3 is critical or lower).
Note that the external application “Kinoko” has an event with the same name.
This event is implemented for compatibility with “Kinoko”.
Occurs when battery charging starts.
Compatible with the event from “Ukagaka for Android (archive)”.
Occurs when battery charging stops. This does not necessarily mean that the battery is fully charged.
Compatible with the event from “Ukagaka for Android (archive)”.
Occurs when a device is detected.
Occurs when a device is removed.
Occurs when the OS switches to a state optimized for tablet operation.
Sent as NOTIFY (cannot speak) immediately after startup, and as GET (can speak) when the mode changes.
Occurs when the OS switches to the dark theme (a darker display).
Notified with NOTIFY (cannot speak) immediately after startup, and with GET (can speak) when the theme changes.
Occurs when the desktop wallpaper is changed on the OS side. [NOTIFY at startup / GET at other times]
Occurs when the user changes the wallpaper in Personalization settings, as well as when it is automatically changed by a slideshow or Windows Spotlight, or when the theme changes.
Slideshow and Spotlight change automatically at intervals as short as one minute, so when either triggers this event, it is notified with NOTIFY (cannot speak) even after startup.
This is a different event from OnWallpaperChange, which occurs when the wallpaper is changed by dragging and dropping an image file. If SSP itself changes the wallpaper (Reference1 is self), both events occur. Take care to avoid duplicate handling if responding to both.
In window mode, the wallpaper for the ghost is the container background. A wallpaper change on the OS side triggers this event only when the container background is “Desktop”; it does not occur for white, gray, black, or an image. Instead, it occurs when the container background changes (via the container menu, \![set,wallpaper], or \![restore,wallpaper]), or when switching window modes changes the background visible to the ghost. It does not occur just by selecting the same background again.
With perghost (one container per ghost), this event occurs only when the background of the container the ghost is on changes.
\![set,wallpaper] or \![restore,wallpaper] are self. At startup (init), if the container background is not “Desktop”, the value is unknown.\1] is byte value 1.\1]Full path to wallpaper image[\1]Display styleOccurs when SSP's window mode changes. [NOTIFY at startup/other GET]
Window mode displays ghosts inside a window (container) provided by SSP, rather than on the desktop. The inside of the container serves as the screen for the ghost.
Because the screen size for the ghost changes when the mode changes, OnDisplayChange also occurs after this event.
The current mode can also be retrieved using baseware.windowmode.
Notifies the date and time OS updates were checked and installed, along with update history.
Sent as NOTIFY (cannot speak) immediately after startup, and as GET (can speak) after a short delay when an update is installed.
\1] is byte value 1.\1]error code[\1]update time[\1]update content (title)Occurs when the Recycle Bin is emptied using \![execute,emptyrecyclebin].
OnRecycleBinEmptyFromOther is also sent to all running ghosts, not just the ghost that ran the script.
Sent to ghosts other than the one that requested the Recycle Bin be emptied using \![execute,emptyrecyclebin].
References are the same as for OnRecycleBinEmpty.
Occurs when files are added to the Recycle Bin or when it is emptied in Explorer, and is sent to all running ghosts.
Also sent as [NOTIFY] when a ghost starts.
Occurs when rectangle selection mode is entered after \![enter,selectrect] is executed.
Occurs after \![leave,selectrect] is executed if no selection was made or the selected region was empty.
Occurs when rectangle selection mode is exited after \![leave,selectrect] is executed.
Occurs when a mouse button is pressed while in rectangle selection mode.
Occurs when a mouse button is released while in rectangle selection mode.
Occurs at startup and when speech synthesis is turned ON/OFF. [NOTIFY/other GET]
Occurs at startup and when voice recognition is turned ON/OFF. [NOTIFY/other GET]
Occurs when a word is recognized by voice recognition.
For speech recognition and synthesis, also refer to the Sakura Script specifications, including the \__v tag.
Occurs when a key is pressed while the baseware is active.
Occurs when a site link is selected from the menu.
An event that allows SHIORI to also handle MAKOTO's translation function.
It is issued mainly in response to a script being returned to the baseware when SHIORI handles a GET command's SHIORI Event.
The script returned to the baseware after SHIORI-internal processing of the SHIORI Event that triggered OnTranslate is sent back to SHIORI after the baseware expands environment variables and performs other processing. SHIORI can then process this script again and return it to the baseware as the final script.
OnTranslate itself does not occur again.
Occurs when random talk is requested, such as by executing the \a tag.
Occurs when another ghost speaks. Enable it with \![set,otherghosttalk,true].
Occurs when SSP starts and materia.exe was already running.
Occurs when SSP starts and Nekodorif was already running.
Occurs when a sound ends.
Occurs when sound is playing in a loop and reaches the end, just before starting the next loop.
Occurs at regular intervals during playback of a sound specified with --spectrum=. Notifies the spectrum of the sound being played (the overall volume level for each channel, the volume levels of each frequency band from bass to treble, and the peak-hold values for each). Used for displays such as spectrum analyzers.
The analysis uses the waveform being played, after --volume= has been applied (so the values match the audible volume). Lowering the volume lowers the values, and setting it to 0 makes all levels 0. --balance= is not applied. [2.9.29] In 2.9.28 and earlier, the waveform was analyzed before --volume was applied, so lowering the volume did not lower the values.
[2.9.29] If an equalizer is specified with --eq=, the waveform is analyzed after the equalizer has been applied (raising or lowering a band changes that band's value accordingly). The same applies to --eq-preamp=.
Does not occur while paused. When playback is stopped or ends, or when notifications are stopped with --spectrum=0, one notification with all levels set to 0 is generated (when stopped or ended, OnSoundStop occurs afterward).
[2.9.33] For sounds specified with --spectrum-skipbusy=true, notifications do not occur while a ghost script is playing or waiting to play (they are skipped. The notification with all levels set to 0 described above is not skipped).
Does not occur for sounds whose waveform cannot be retrieved during playback, such as MIDI, CD tracks, and xWMA wav files (playback itself proceeds normally). However, when --spectrum-bands=0 is set, notifications occur even if the waveform cannot be retrieved (Reference2 and Reference3 are 0).
For ADPCM (MS-ADPCM and IMA-ADPCM) wav files, a separate waveform is expanded for analysis when notifications begin. Notifications do not occur for long files whose expanded size exceeds 64MB (about 6 minutes or longer for 44.1kHz stereo), except when --spectrum-bands=0.
[2.9.19] Specifying --spectrum-bands=0 skips analysis by frequency band and notifies only the overall volume level and playback position (Reference6). This can be used as an elapsed-time notification with volume levels.
\1). There is one value for mono and two for stereo (left and right); sounds with more channels have one value per channel, in channel order (up to 8 values; channels 9 and above are not included). The number of values is the number of channels in the sound. Channel order follows the standard WAVE format order (front left, front right, center, low frequency, back left, back right, side left, side right).\1, it contains two values for stereo, [left, right] (e.g. [60, 55]), and six for 5.1ch, [front left, front right, center, low frequency, back left, back right] (e.g. [60, 55, 70, 30, 20, 25]). In both cases, the first two values are left and right.\1). The number of values is the same as Reference1 (empty if 0). Bands are measured from the sound averaged across all channels (band levels for individual channels are not notified).Occurs when sound processing fails.
Notifies the ghost of information about the song playing in a supported music player, such as the standard Windows media player app.
If this event is not handled, it falls back to OnMusicPlay.
Note that all video and music playback in browsers is treated as OnVideoPlayEx.
Notifies the ghost of information about a video playing in a supported music playback application, such as the standard Windows media player app.
Notifies the ghost of information about the song playing in a supported music player, such as the standard Windows media player app.
Occurs when text data is dragged and dropped.
Occurs when the shell scale changes.
Occurs when the balloon scale changes.
Notified when the language setting changes and immediately after startup.
When notified immediately after startup, this is always a NOTIFY, and the ghost cannot speak in response to the event.
Notified when the menu item to reset the shell position is selected.
If this event is not handled, the default shell position reset operation ( \![execute,resetwindowpos] ) is performed.
Occurs when an archive has been successfully extracted.
If the identifier specified with the --event option in \![execute,extractarchive] starts with On, an event with that identifier is raised. Otherwise, this event is raised.
Occurs when an archive extraction fails.
If the identifier specified with the --event option in \![execute,extractarchive] starts with On, an event with "Failure" appended to that identifier is raised. Otherwise, this event is raised.
Occurs when archive compression completes successfully.
With \![execute,compressarchive], if the identifier specified with the --event option begins with On, an event with that identifier is fired. Otherwise, this event is fired.
Occurs when archive compression fails.
If the identifier specified with the --event option in \![execute,compressarchive] starts with On, an event with "Failure" appended to that identifier occurs. Otherwise, this event occurs.
Sent when a call to a built-in module using SAORI over DirectSSTP with --async=identifier succeeds. If the identifier starts with On, an event with the same name as the identifier is sent instead of this event.
For details, see Asynchronous calls.
Sent when a call to a built-in module using SAORI over DirectSSTP with --async=identifier fails. If the identifier starts with On, an event named "identifier + Failure" is sent instead of this event.
For details, see Asynchronous calls.
Occurs when retrieving an extended property using activeghostlist(ghost name/path/ID).ext.
Returns the retrieved property value.
Occurs when setting an extended property using activeghostlist(ghost name/path/ID).ext.
Returns 204 on success, or an appropriate status code on failure.
Notifies baseware information. [NOTIFY]
Notifies hwnd. [NOTIFY]
Notifies the unique ID. [NOTIFY]
Notifies the SHIORI extension implementation status. [NOTIFY]
One Reference is sent for each implementation level listed below.
Note that the header name is sent in lowercase. Example: SecurityLevel→securitylevel
See also the SHIORI/3.0 specification.
Notifies the current ghost name. [NOTIFY]
Notifies the baseware-side names of other running ghosts. [NOTIFY]
Notifies the sakura.name of installed ghosts. [NOTIFY]
Always notified before installedghostname.
The Reference numbers for installedsakuraname, installedkeroname, and installedghostname, which refer to the same ghost, are guaranteed to match.
Notifies the kero.name of installed ghosts. [NOTIFY]
Always notified before installedghostname.
The Reference numbers for installedsakuraname, installedkeroname, and installedghostname, which refer to the same ghost, are guaranteed to match.
Notifies the installed ghosts. [NOTIFY]
Notifies the installed shells. [NOTIFY]
Notifies the installed balloons. [NOTIFY]
Notifies the installed RSS/headlines. [NOTIFY]
Notifies the installed calendar skins. [NOTIFY]
Can be used with \![change,calendarskin,calendar skin name].
Notifies the installed calendar plugins (schedule sensors). [NOTIFY]
Can be used with \![execute,calendarplugin,calendar plugin name].
Notifies the installed plugins. [NOTIFY]
Notifies the list of configured mail-checking accounts. Can be used with \![biff,account name]. [NOTIFY]
Notifies the path to the ghost storage folder (the ghost setting under SSP's main settings -> Folders). [NOTIFY]
Notifies the path to the balloon storage folder (the balloon setting under SSP's main settings -> Folders). [NOTIFY]
Notifies the path to the headline storage folder (the headline setting under SSP's main settings -> Folders). [NOTIFY]
Notifies the path to the plugin storage folder (the plugin setting under SSP's main settings -> Folders). [NOTIFY]
Notifies the path to the calendar skin storage folder. [NOTIFY]
Notifies the path to the calendar schedule sensor storage folder. [NOTIFY]
Notifies the usage graph information. [NOTIFY]
ON/OFF for “Enable SHIORI internal logging” in the development palette. [NOTIFY]
See also SHIORI Resource : log_path.
ON/OFF status of “Enable SHIORI debug mode” in the developer palette. [NOTIFY]
Notifies information about the ghost itself. [NOTIFY]
Notifies the information for the currently used balloon. [NOTIFY]
Notifies information about the currently used shell. [NOTIFY]
Notifies dressup information.
Sent as [NOTIFY] only at startup; for user actions such as switching from the menu, it is sent as [GET].
See also OnDressupChanged, which occurs before this event.
Notifies user input information. Notified at startup and when the information is updated. [NOTIFY]
Notifies today's holiday name. Sent at startup, immediately after OnNotifyUserInfo. [NOTIFY]
Sent only if today's holiday name can be found in the holiday table in an SSP language folder (holidays.txt, or holidays-XX.txt if a country-specific table exists for the regional settings). Not sent on non-holidays or when the holiday table does not list a name for the holiday.
“Today” is affected by SSP's 「virtual time adjustment」 (time machine).
Notifies OS information. [NOTIFY]
Notifies the fonts installed on the system. [NOTIFY]
Notifies internationalization-related information such as the time zone and locale (language) name. [NOTIFY]