Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Beetween " replace

$
0
0
Hi \o/,

This is possible ? :graduated:

I want to replace the words between "

Example:
Send("hello")
to
Send(_StringEncrypt(0, "CE799A989735BFE8AB68", "thi", 1))

I have a code, but i need to select the words ..

Has some method to automatize this ?

My code: :oops:
#Include <String.au3>
HotKeySet("{F2}", "_Funciona")
HotKeySet("{ESC}", "_Sair")
Global $a, $b, $c[/size]
[size=4]While 1
Sleep(20)
WEnd[/size][size=4]Func _Funciona()
Send("^c")
Send("{BACKSPACE}")
$a = ClipGet()
$b = _StringEncrypt(1, $a, "thi", 1)
$c = '_StringEncrypt(0, ' & '"' & $b & '"' & ', "thi", 1)'
Send("{RIGHT}")
Send("{BACKSPACE}")
Send("{BACKSPACE}")
;~ Send($c)
ClipPut($c)
Send("^v")
EndFunc[/size]
[size=4]Func _Sair()
Exit
EndFunc



Thank you ! :ILA3:

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>