Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Predefined variable for the mouse pointer
#21
@kevin

I solved the escaping problem successfully with a single line of code.  Smile

Function PasteAutoInputDialog add code:
s.findreplace("$cel" "$sel")

This is probably the easiest way


Autotext Autotext3
Trigger $t     Help - how to add the trigger to the macro
Code:
Copy      Help
/b/i/c/m
var :sub.Sub2 ;;var


#sub Sub2 m

_s=
F
;,case "$cel_$inp_Name$$"
;,s="$inp_item1$[]$inp_item2$[]$inp_item3$"
PasteAutoInputDialog(_s)



Function PasteAutoInputDialog
Code:
Copy      Help
;/
function $template

;Calls <help>AutoInputDialog</help> and pastes the text. Also sets caret if need.

;EXAMPLE
;_s=
;F
;;Dear Mr. $inp_Customer$,
;;
;;thank you for contacting us. The price is $$inp_Price$. Let's meet next $inp_Day$.
;;
;;Thanks and best regards,
;;$set_CaretHere$
;;
;;$var_ShortDate$
;;
;PasteAutoInputDialog(_s)


int nLeft
str s=AutoInputDialog(template nLeft)

;Indirectly solve the escaping problem (replace $cel with $sel)
s.findreplace("$cel" "$sel")
spe 10
paste s
if(nLeft) key L(#nLeft)


Messages In This Thread
RE: Predefined variable for the mouse pointer - by win - 04-09-2019, 10:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)