jaco0646
Joined: 07 Oct 2006 Posts: 558 Location: MN, USA
|
Posted: Fri Jul 18, 2008 7:43 pm Post subject: |
|
|
I'm not very clear on what you need, but if you simply want to create hypertext links in an AHK Gui, you can do that with text controls and a timer.
| Code: | links = Google,Yahoo,Live,Ask,Lycos
Gui, +LastFound
Gui, Font, s14
Loop, Parse, links, `,
Gui, Add, Text, cBlue v%A_LoopField% gLink, %A_LoopField%
SetTimer, MouseOver, 100
Gui, Show
WinGet, GuiID
return
GuiClose:
ExitApp
MouseOver:
MouseGetPos,,,ID,control
If (ID = GuiID) AND (InStr(control,"Static") = 1)
GuiControlGet, text,,%control%
Else text = 0
Loop, Parse, links, `,
If (%A_LoopField%) AND (A_LoopField != text)
{
Gui, Font, norm cBlue
GuiControl, Font, %A_LoopField%
%A_LoopField% = 0
}
Else If !(%A_LoopField%) AND (A_LoopField = text)
{
Gui, Font, underline c6495ED
GuiControl, Font, %text%
%text% = 1
}
return
Link:
Run, http://www.%A_GuiControl%.com
return |
_________________ http://autohotkey.net/~jaco0646/ |
|