variable not recognized in literal string
Posted: 09 Apr 2018, 09:58
The variable %fronttext% and %backtext% are seen as strings. Any idea why?
[/code]
Code: Select all
[code=autohotkey file=Untitled.ahk]
#Include WinClipAPI.ahk
#Include WinClip.ahk
WinClip.Clear()
fronttext := "front text"
backtext := "back text"
html := "<span class='tooltip'> %fronttext% <span class='tooltiptext'> %backtext% </span></span>"
WinClip.SetHTML(html)
WinClip.Paste()
Return