Insertar caracter especial al seleccionar texto

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Insertar caracter especial al seleccionar texto

Re: Insertar caracter especial al seleccionar texto

Post by Wazowski » 27 Jul 2019, 13:37

Me ayudaron el foro en ingles el condigo ese este gracias al amigo swagfag

pero no habrá una manera de que sea mas instantáneo ?? el me indica que debo aplicarlo con COM automation,pero no tengo ni idea de como aplicarlo.

Code: Select all

EM_GETSEL + WM_SETTEXT

Code: Select all

#NoEnv
#SingleInstance Force
SendMode Input
SetBatchLines -1

^b::surroundWith("*")
^i::surroundWith("_")

surroundWith(char) {
	clipSaved := ClipboardAll
	Clipboard := ""
	Send ^x
	ClipWait 1
	Send % Format("{Text}{1:}{2:}{1:}", char, Clipboard)
	Send % "{Left}+{Left " StrLen(Clipboard) "}"
	Clipboard := clipSaved
}

Re: Insertar caracter especial al seleccionar texto

Post by Wazowski » 26 Jul 2019, 10:02

Alguien me podra decir si el video se entiende perfectamente lo que quiero ??

Insertar caracter especial al seleccionar texto

Post by Wazowski » 25 Jul 2019, 09:47

Bueno les dejo un vídeo de que es lo que quiero exactamente

Espero que lo puedan ver y me puedan ayudar.

@Flipeador Nunca me deja mal con mis tonterias

Link del video
https://streamable.com/uth8o

Un Saludo

Top