Sure, give this a shot.
First, though, I wrote this in 6.5.2, to adjust for which ever IDE your using, open the message box and the script editor, move the mouse cursor over the script editor field, in the message box type
Code: Select all
"put the long name of the mouseControl"
You can edit what is returned however you like, I just used the whole string that was returned.
In the button of the stack you make for this, put
Code: Select all
put empty into field "Script" of group "Editor" of card "Main" of stack "revNewScriptEditor 1" of stack "~/.runrev/livecodecommunity-6.5.2/Toolset/revscripteditor.rev" // put your returned long name here...
repeat for each character x in the clipboardData
put x into field "Script" of group "Editor" of card "Main" of stack "revNewScriptEditor 1" of stack "~/.runrev/livecodecommunity-6.5.2/Toolset/revscripteditor.rev" // put your returned long name here...
wait for .25 seconds
// if .25 seconds is too slow, lower it to .1 or even .05, or go to ticks...
end repeat
Name it with 'rev' in front of whatever name you like, and then save the file with a revYourFileName.rev extension, and drop it into your plugins folder
*Edited for warning - BE CAREFUL!! This will copy the clipboard contents to whatever tab you have open, but it will empty that tab first. Before I hear about all the work you've lost using this, if you don't want to risk this kind of behavior, copy the contents to a variable, or remove the "put empty into field" parts before using.
You have been WARNED!!!
