How to use:
You first have to create an Ini file with the title of the post and URL (see below) from there you can run the function which will create a signature specific to your posts. It will copy the code to the clipboard as well as saving to a file called Signature.dat. You then paste the BBCode syntax into your signature, which you can do so via your AutoIt profile and ensure you're in BBCode mode. To toggle between BBCode mode select the 'toggle editing button' in the top left hand corner of the editing window. Any problems or suggestions then please post below. Thanks
Tip:
If you have a notepad editor which supports sorting e.g. Notepad2, then I would suggest you sort the list of topics. This was the primary reason I created this function as I wanted to sort my own topics and automate the procedure of creating the syntax.
INI file structure:
[Signature] Example_1=http://www.autoitscript.com/forum/ Example_2=http://www.autoitscript.com/forum/ Example_3=http://www.autoitscript.com/forum/ Example_4=http://www.autoitscript.com/forum/
Example 1:
Example List: Example_1 • Example_2 • Example_3 • Example_4 • More...
AutoIt Version: 3.3.8.1 OS: WIN_7/Service Pack 1 CPU: X64 OS: X64
Updated: 11/10/2012
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 #include <FileConstants.au3> #include <Date.au3> Example('AutoIt Links.ini', 'Signature', 'Signature.dat', '#000000') ; Ini file of titles and links, Section of Ini file, File to save to, Colour of text. Func Example($sINI, $sSection, $sOutput, $bColor = '') Local $bEnd = '', $bStart = '', $sText = 'Example List', $sReturn = '' Local $aArray = IniReadSection($sINI, $sSection) If @error Then Return SetError(1, 0, 0) EndIf If $bColor <> '' And $bColor <> Default Then $bStart = '[color=' & $bColor & ']' $bEnd = '[/color]' EndIf $sReturn &= '[center][size=2]' & $bStart & $sText & ': ' & $bEnd For $i = 1 To $aArray[0][0] $sReturn &= '[url="' & $aArray[$i][1] & '"]' & $bStart & $aArray[$i][0] & $bEnd & '[/url]' & _ '[color=#FF8C00] ' & Chr(149) & ' [/color]' Next $sReturn &= '[url="' & 'http://www.autoitscript.com/forum/index.php?showforum=9' & '"]' & $bStart & 'More...' & $bEnd & '[/url]' & @CRLF $sReturn &= 'AutoIt Version: ' & @AutoItVersion & ' OS: ' & @OSVersion & '/' & @OSServicePack & ' CPU: ' & @CPUArch & ' OS: ' & @OSArch & @CRLF $sReturn &= 'Updated: ' & _NowDate() $sReturn &= '[/size][/center]' ClipPut($sReturn) ; Save to the clipboard. Local $hFileOpen = FileOpen($sOutput, $FO_OVERWRITE) If $hFileOpen = -1 Then Return SetError(1, 0, 0) EndIf FileWrite($hFileOpen, $sReturn) FileClose($hFileOpen) Return $sReturn EndFunc ;==>Example
Edited by guinness, 10 October 2012 - 10:37 PM.




