From WikiChip
Editing mirc/on events/on hotlink
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | The '''ON HOTLINK''' event allows the targeting of certain words to create mouse hover, or double-clickable link events for. | |
− | The '''ON HOTLINK''' event | ||
− | The '''ON HOTLINK''' event is very intensive, in that it monitors and tracks all mouse movements | + | This event fills the {{mIRC|$hotline}} and {{mIRC|$hotlinepos}} identifiers with both the entire ''line of text'', and the ''position in the text'' the link appears, respectively. The '''$1''' identifier is also filled with the hotlink matchtext that triggered the event in the first place. |
− | + | ||
+ | The '''ON HOTLINK''' event is very intensive, in that it monitors and tracks all mouse movements, and therefore any commands which the event triggers must be as quick, efficient, and small as possible. The reason behind this command minimalistic nature is simply because the event runs every time, and therefore tries to keep up in real-time. If the commands are too large, or process-intense, mIRC will begin to lag a great deal. | ||
== Synopsis == | == Synopsis == | ||
<pre>ON <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands></pre> | <pre>ON <level>:HOTLINK:<matchtext>:<*#?=!@>:<commands></pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Parameters == | == Parameters == | ||
− | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The | + | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger. |
− | <span style="display: inline-block; width: 105px;">'''<matchtext>'''</span>The text that to be matched. Can also be a | + | <span style="display: inline-block; width: 105px;">'''<matchtext>'''</span>The text that to be matched. Can also be a [[wildcard]]. |
<span style="display: inline-block; width: 105px;">'''<*#?=!@>'''</span>The window type that this event should monitor. | <span style="display: inline-block; width: 105px;">'''<*#?=!@>'''</span>The window type that this event should monitor. | ||
Line 38: | Line 30: | ||
== Examples == | == Examples == | ||
− | Monitor all windows for the | + | Monitor all windows for both the text 'hoverme' and echo to the active window that the word was hovered: |
<source lang="mIRC">ON *:HOTLINK:*hoverme*:*:echo -a $1 was just hovered!</source> | <source lang="mIRC">ON *:HOTLINK:*hoverme*:*:echo -a $1 was just hovered!</source> | ||
− | + | The next example has 2 events. One contains an '''^''' prefix, which signifies elevation. This event will stop all hotlinks if the criteria set is not met. However, if criteria is met, and a match is made, the hotlink will become clickable (this is apparent when the mouse cursor becomes the hand-pointer). | |
− | The event | + | The second event allows the double-click feature to return some information about the hotlink: |
− | + | <source lang="mIRC">ON ^*:HOTLINK:*hoverme*:*:{ | |
− | <source lang="mIRC"> | + | if ($1 == hoverme) return |
− | + | halt | |
− | |||
− | |||
} | } | ||
+ | ON *:HOTLINK:*hoverme*:*:echo -a Hotlink: $1 - Hotlink line: $hotline - Hotlink line and Word Position: $hotlinepos</source> | ||
− | + | Upon hovering over the word ''hoverme'' as shown in the above example, the following resembles the output: | |
− | </ | + | <pre>Hotlink: hoverme - Hotlink line: hoverme - Hotlink line and Word Position: 1 269</pre> |
− | + | == Compatibility == | |
+ | Added: mIRC v5.61 | ||
− | + | Added On: 23/09/99 | |
− | |||
== See Also == | == See Also == | ||
* {{mIRC|$hotline}} | * {{mIRC|$hotline}} | ||
* {{mIRC|$hotlinepos}} | * {{mIRC|$hotlinepos}} | ||
− | |||
− | |||
− | |||
{{mIRC on event list}} | {{mIRC on event list}} | ||
− | [[Category: | + | [[Category:MIRC on events]] |