From WikiChip
Difference between revisions of "mirc/identifiers/$click"
(Created $click identifier - mIRC) |
m |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''$click''' identifier allows the tracking of clicks within a custom [[Picture Windows - mIRC|Picture Window]]. | + | {{mirc title|$click Identifier}}The '''$click''' identifier allows the tracking of clicks within a custom [[Picture Windows - mIRC|Picture Window]]. |
+ | |||
== Synopsis == | == Synopsis == | ||
Line 9: | Line 10: | ||
| N | The Nth target in the click event list to track. | | N | The Nth target in the click event list to track. | ||
}} | }} | ||
− | |||
− | |||
== Properties == | == Properties == | ||
Line 25: | Line 24: | ||
The example below will create a custom alias, '''/clickWatch''', that, when executed, will popup a custom window and display the live click results from the sclick event. | The example below will create a custom alias, '''/clickWatch''', that, when executed, will popup a custom window and display the live click results from the sclick event. | ||
<source lang="mIRC">; Create the custom alias to launch the example | <source lang="mIRC">; Create the custom alias to launch the example | ||
+ | ; | ||
+ | ; Synopsis: /clickWatch | ||
+ | |||
alias clickWatch { | alias clickWatch { | ||
; Custom picture window, which is centered | ; Custom picture window, which is centered | ||
− | window - | + | window -dpC @clicker 0 0 250 125 |
; Custom 'update' alias keeps code from repeating | ; Custom 'update' alias keeps code from repeating | ||
Line 57: | Line 59: | ||
; from this example | ; from this example | ||
alias -l update { | alias -l update { | ||
− | drawtext @clicker | + | drawtext @clicker $color(normal) 7 $1 $2- |
}</source> | }</source> | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|5.3}} | |
− | |||
− | |||
== See Also == | == See Also == | ||
− | * [[Picture | + | * [[Picture Windows - mIRC|Picture Windows]] |
− | + | {{mIRC identifier list}} | |
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|color]] |
Latest revision as of 13:39, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $click identifier allows the tracking of clicks within a custom Picture Window.
Contents
Synopsis[edit]
$click(@,N)[.property]
Parameters[edit]
@ The custom picture window name to target
N The Nth target in the click event list to track.
Properties[edit]
x Get the current x position of the mouse click
y Get the current y position of the mouse click
Attached Command[edit]
The $click click event history can be cleared from a custom picture window by using the following command:
/clear -c @pictureWindowName
Example[edit]
The example below will create a custom alias, /clickWatch, that, when executed, will popup a custom window and display the live click results from the sclick event.
; Create the custom alias to launch the example ; ; Synopsis: /clickWatch alias clickWatch { ; Custom picture window, which is centered window -dpC @clicker 0 0 250 125 ; Custom 'update' alias keeps code from repeating ; During initial launch the values should be empty update 15 Total Clicks: empty update 35 Current Position: none yet update 55 Previous Position: none yet } ; Monitor the sclicks in our custom '@clicker' window menu @clicker { sclick: { ; Clear the window for the new value updates clear @clicker ; Set the %current and %prev variables to the current ; x/y click location, and to the previous x/y click ; locations, respectively var %current = $click(@clicker,0), %prev = $calc(%current - 1) ; Utilizing the custom 'update' alias, update the data update 15 Total Clicks: $click(@clicker,0) update 35 Current Position: $click(@clicker,%current) update 55 Previous Position: $iif(%prev,$click(@clicker,%prev),none yet) } } ; Custom update alias removes a lot of the /drawtext repetition ; from this example alias -l update { drawtext @clicker $color(normal) 7 $1 $2- }
Compatibility[edit]
Added: mIRC v5.3
Added on: 13 Dec 1997
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also[edit]
mIRC identifier list