One thing I never noticed before. The clipboard gets lost.
I notice I will have text in my clipboard, and I will highlight some text I want bolded, for example, when I click BOLD, it wraps the highlighted text in {b} {/b}, then I try to paste what was in my clipboard, but it is lost.
I think all you would need is something simple like Temp = %CLIPBOARD% just before each function, and then a Clipboard = %temp% after each function...
I just happened to notice it when I was doing a weblink...
Also I am making an online forum poster, well I made one, but it is too ugly to post on here LOL, basically you hit a hotkey like CTRL-B and it puts in the BBCode for bold, it detects if text is highlighted, if so it bolds the highlighted text and sets the cursor outside the [.b] and [./b], if no text is selected it puts the cursor between the tags....
I was thinking maybe I could show it to you sometimes, and you can help me clean it up a bit, make it more appealing...
The biggest thing I am proud of is my URL editor, which when posting A weblink it brings up an editor... I will post it for now, if you can maybe clean it up a bit it might make a good addon for AHKBBCODE
Code:
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ;;;;;;;;;;URL EDITOR!;;;;;;;;;;;;;;
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
^!l:: ; CTRL+ALT+L gets er' rollin
lasttext = %clipboard%
Clipboard :=
text :=
weburl :=
webname :=
weburl2 :=
webname2 :=
sleep, 100
send, ^c
ClipWait, 0
if ErrorLevel
{
Send, [url][/url]{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}
clipboard = %lasttext%
return
}
text = %clipboard%
sleep, 200
web = http
ifinstring, text, %web%
{
Gui, Font, S8 Cblack , Verdana
Gui, Add, Text, x22 y31 w122 h21 +Right, Enter WebURL:
Gui, Add, Edit, x146 y30 w130 h20 Vweburl, %text%
Gui, Add, Text, x26 y60 w117 h21 +Right, Enter Site Name:
Gui, Add, Edit, x146 y60 w130 h20 Vwebname,
Gui, Add, Button, x120 y92 w57 h20 , G0
Gui, Font, S11 Cred Bold, Verdana
Gui, Add, Text, x66 y0 w183 h20 +Center, Cuzabis' URL Editor
Gui, Show, x326 y233 h127 w300, URL Editor
Send, {TAB}
RETURN
ButtonG0:
Gui, Submit
send, [url=%weburl%]%webname%[/url]
clipboard = %lasttext%
GUI, Destroy
return
}
else
Gui, Font, S8 Cblack , Verdana
Gui, Add, Text, x22 y31 w122 h21 +Right, Enter WebURL:
Gui, Add, Edit, x146 y30 w130 h20 Vweburl2, http://
Gui, Add, Text, x26 y60 w117 h21 +Right, Enter Site Name:
Gui, Add, Edit, x146 y60 w130 h20 Vwebname2, %text%
Gui, Add, Button, x120 y92 w57 h20 , GO
Gui, Font, S11 Cred Bold, Verdana
Gui, Add, Text, x66 y0 w183 h20 +Center, Cuzabis' URL Editor
Gui, Show, x326 y233 h127 w300, URL Editor
clipboard = %lasttext%
return
ButtonGO:
Gui, Submit
send, [url=%weburl2%]%webname2%[/url]
clipboard = %lasttext%
GUI, Destroy
return