Pasting copied text onto DeskTop shortcut compiled EXE

Started by mattcarl, December 13, 2022, 10:58:34 AM

Previous topic - Next topic

mattcarl

Wondering if anyone has solved this. 

I have a compiled .exe as a shortcut on my desktop.
In the past I have used desktop shortcuts to enable myself to drag and drop FILES onto the desktop icon, and then take action from there.

I'm hoping to be able to cut and paste TEXT onto the desktop icon as input as the "param1" value.

Anyone know how?
Thanks


;;;;  test parameters
numparam = param0

If param0 > 0
   For p = 1 to param0
   Display(1,p, param%p%)
   Next
Message( param0,  "%param1%  %@CRLF%%param2%  %@CRLF%%param3%    ")
Else

Message("no param", "nothing here")

Endif

mhall

Would another approach work?

The text is in the clipboard. When the script executes, use clipGet() to retrieve and use it.

To handle both text and files, use param0 to determine if any command line options have been passed. If param0 > 0, expect files. If it's 0, expect text input and use clipGet.

Maybe?