Version = 7.0.2 ScriptName = AHK BBCodeWriter %Version% ; --------------------------------------------------------------------- ; Name: AHK BBCode Writer v7.0.2 ; Date: 18.05.2007 ; Autor: AGermanUser ; Language: English/Deutsch ; Platform: tested with W2k ; AHK-Version: 1.0.46+ (due to regex use) ; ; --------------------------------------------------------------------- ; This program is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2 of the License, or ; (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; Find a copy of the license in "gpl.txt" inside the scripts directory. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ; The smileys used in this program are taken from the phpbb project (http://www.phpbb.com) ; and are licensed under the GPL. ; --------------------------------------------------------------------- ; ; Description: ; --------------------------------------------------------------------- ; A small BBCode Editor that lets you write a forum posting offline including all ; bbcode formatting options. ; At the moment it is specialised for the phpbb forum, but it can be adjusted for ; any other forum. ; The script contains a preview function that creates a html file and passes it ; to the defined browser. ; --------------------------------------------------------------------- #SingleInstance ignore #NoTrayIcon #UseHook #NoEnv SetKeyDelay, 0 ; Needed for icon buttons DetectHiddenWindows, On ; Maximum font size for preview MaxFontSize = 29 ; Path to button icons - needed for check within AssignIcon subroutine IconPath = %A_ScriptDir%\phpbb\ico ; Read preview browser path and font size from ini file IniRead, BrowserExe, BBCodeWriter.ini, Browser, PrefBrowser, iexplore.exe IniRead, EdtFontSize, BBCodeWriter.ini, Preferences, EdtFontSize, 8 ; Initialise ComposeMode variables ComposeMode := false EndTagSum = 0 ; Create save folder for postings IfNotExist, %A_ScriptDir%\postings FileCreateDir, %A_ScriptDir%\postings ; Create folder for signatures IfNotExist, %A_ScriptDir%\signatures FileCreateDir, %A_ScriptDir%\signatures ; Read used language from BBCodewriter.ini IniRead, Lang, BBCodeWriter.ini, Language, Lang ; Read language prefix from 'Lang' variable IniRead, LangPrfx, %A_ScriptDir%\lang\%Lang%, Data, LangPrfx ; Execute Autoexec section of BBCodeEditor.ahk GoSub, AutoExecBBCodeEditor ; Read 'custom BBCode Tags' and language strings GoSub, ReadCustomTags GoSub, ReadLangStrings ; Create Main Window GoSub, CreateMainMenu GoSub, CreateMainGui Return ; Include functions, hotkeys and phpbb modules #Include functions.ahk #Include hotkeys.ahk AutoExecBBCodeEditor: #Include %A_ScriptDir%\phpbb\BBCodeEditor.ahk #Include %A_ScriptDir%\phpbb\BBCodePreview.ahk ;############################################################################## ;####### End of Autoexec-section ############################################## ;##############################################################################