AutoHotkey Community

It is currently May 26th, 2012, 10:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19  Next
Author Message
 Post subject:
PostPosted: April 6th, 2008, 1:08 pm 
Offline

Joined: March 23rd, 2008, 5:22 am
Posts: 12
New question

I want to add a font selector with a predefined set of fonts.

A dropdownlist seems a good choice.

How can this be implemented.

When DDL is not downfolded the text "Fonts" should be presented.
When clicking the down-arrow the fontnames (19) preferably in their own fontface should be listed.
When Clicking a listitem the font setting should be implemented ( in the same manner as fontsize ). Th DDL should be folded again and showin Fonts.

This is the behaviour I would like

I thing that the code from fontsize can be reused - just changing the tags
But How do I set up the DDL to work?

Any Idea?

LeifG


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 6th, 2008, 5:05 pm 
Quote:
When DDL is not downfolded the text "Fonts" should be presented.
Well, you can add a gLabel to that DDL and within it you can reset your DDL to your "Fonts" entry (with the help of GuiControl) after having made the changes to the edit control.

Quote:
A g-label such as gMySubroutine may be listed in the control's options. This would cause the MySubroutine label to be launched automatically whenever the user selects a new item.


Quote:
When clicking the down-arrow the fontnames (19) preferably in their own fontface should be listed.
I know what DDL you're talking about. I doubt this is a windows standard control.
So I don't know how to implement that with the help of Autohotkey.

I think you have to read about UserDrawn controls to achieve this:
http://www.codeproject.com/KB/combobox/ ... ntrol.aspx

Quote:
When Clicking a listitem the font setting should be implemented ( in the same manner as fontsize ). Th DDL should be folded again and showin Fonts.
Here we have the same problem as with the DropDown control. The edit control used within BBCodeWriter is the standard edit control provided by Autohotkey.
As far as I know, it doesn't support multiple fontfaces. You'll have to stick with another input-capable control like the richedit control to get what you want.

Maybe corrupts functions are of any help:
:arrow: http://www.autohotkey.com/forum/topic19421.html

On a side note:
You can call the standard windows font dialog. majkinetor has written a module that might help you:
:arrow: http://www.autohotkey.com/forum/topic17230.html
______________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2008, 8:59 am 
Offline

Joined: March 23rd, 2008, 5:22 am
Posts: 12
For now I will use the customized buttons.

I want to share my modified Off line BBCodeWriter with my fellows at GeekU at geekstogo. I want here what they think and if there is a need to modify it further.

The only thing that I've changed so far is the smileys, the icons on the buttons ( to reflect the buttonicons used at geekstogo) and also the configuration of the customized buttons. I have also changed so that the preview reflect the customized buttons to.

Could you provide me with your nsi file for the NSIS Installer.
I would appreciate it - so that I wont have to invent the wheel again.

It's easier to edit yours than creating a new one.

Thx in advance

LeifG


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2008, 4:33 pm 
Quote:
Could you provide me with your nsi file for the NSIS Installer.
Sure, why not. :)

I don't know if it's of any help to you, because I use :arrow: NSIS Quick Setup Script Generator, and the posted .nsi file is a direct output of this program.
I would recommend using it instead of my script because this output .nsi file is the result of a few clicks within NSIS Quick Setup Script Generator.

Code:
############################################################################################

#      NSIS Installation Script created by NSIS Quick Setup Script Generator v1.09.18

#               Entirely Edited with NullSoft Scriptable Installation System               

#              by Vlasis K. Barkas aka Red Wine red_wine@freemail.gr Sep 2006               

############################################################################################



!define APP_NAME "AHK BBCodeWriter"

!define COMP_NAME "none"

!define WEB_SITE "http://www.autohotkey.net/~AGermanUser/BBCodeWriter/homepage/index.html"

!define VERSION "07.00.02.00"

!define COPYRIGHT "AGermanUser  © 2007"

!define DESCRIPTION "Offline BBCode Editor"

!define LICENSE_TXT "C:\BBCodev07\gpl.txt"

!define INSTALLER_NAME "C:\Tools\NSIS_QuickSetup\Output\AHK BBCodeWriter\setup.exe"

!define MAIN_APP_EXE "BBCodeWriter.exe"

!define INSTALL_TYPE "SetShellVarContext current"

!define REG_ROOT "HKCU"

!define REG_APP_PATH "Software\Microsoft\Windows\CurrentVersion\App Paths\${MAIN_APP_EXE}"

!define UNINSTALL_PATH "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}"



!define REG_START_MENU "Start Menu Folder"



var SM_Folder



######################################################################



VIProductVersion  "${VERSION}"

VIAddVersionKey "ProductName"  "${APP_NAME}"

VIAddVersionKey "CompanyName"  "${COMP_NAME}"

VIAddVersionKey "LegalCopyright"  "${COPYRIGHT}"

VIAddVersionKey "FileDescription"  "${DESCRIPTION}"

VIAddVersionKey "FileVersion"  "${VERSION}"



######################################################################



SetCompressor ZLIB

Name "${APP_NAME}"

Caption "${APP_NAME}"

OutFile "${INSTALLER_NAME}"

BrandingText "${APP_NAME}"

XPStyle on

InstallDirRegKey "${REG_ROOT}" "${REG_APP_PATH}" ""

InstallDir "$PROGRAMFILES\AHK BBCodeWriter"



######################################################################



!include "MUI.nsh"



!define MUI_ABORTWARNING

!define MUI_UNABORTWARNING



!define MUI_LANGDLL_REGISTRY_ROOT "${REG_ROOT}"

!define MUI_LANGDLL_REGISTRY_KEY "${UNINSTALL_PATH}"

!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"



!insertmacro MUI_PAGE_WELCOME



!ifdef LICENSE_TXT

!insertmacro MUI_PAGE_LICENSE "${LICENSE_TXT}"

!endif



!insertmacro MUI_PAGE_DIRECTORY



!ifdef REG_START_MENU

!define MUI_STARTMENUPAGE_DEFAULTFOLDER "AHK BBCodeWriter"

!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${REG_ROOT}"

!define MUI_STARTMENUPAGE_REGISTRY_KEY "${UNINSTALL_PATH}"

!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${REG_START_MENU}"

!insertmacro MUI_PAGE_STARTMENU Application $SM_Folder

!endif



!insertmacro MUI_PAGE_INSTFILES



!define MUI_FINISHPAGE_RUN "$INSTDIR\${MAIN_APP_EXE}"

!insertmacro MUI_PAGE_FINISH



!insertmacro MUI_UNPAGE_CONFIRM



!insertmacro MUI_UNPAGE_INSTFILES



!insertmacro MUI_UNPAGE_FINISH



!insertmacro MUI_LANGUAGE "English"

!insertmacro MUI_LANGUAGE "German"



!insertmacro MUI_RESERVEFILE_LANGDLL



######################################################################



Function .onInit

!insertmacro MUI_LANGDLL_DISPLAY

FunctionEnd



######################################################################



Section -MainProgram

${INSTALL_TYPE}

SetOverwrite ifnewer

SetOutPath "$INSTDIR"

File "C:\BBCodev07\installer\Files\BBCodeWriter.ini"

File "C:\BBCodev07\installer\Files\CustomTags.ini"

File "C:\BBCodev07\installer\Files\gpl.txt"

File "C:\BBCodev07\installer\Files\BBCodeWriter.exe"

SetOutPath "$INSTDIR\lang"

File "C:\BBCodev07\installer\Files\lang\lang_en.ini"

File "C:\BBCodev07\installer\Files\lang\lang_de.ini"

SetOutPath "$INSTDIR\text"

File "C:\BBCodev07\installer\Files\text\en_tip.txt"

File "C:\BBCodev07\installer\Files\text\en_customize.txt"

File "C:\BBCodev07\installer\Files\text\en_shortcuts.txt"

File "C:\BBCodev07\installer\Files\text\de_customize.txt"

File "C:\BBCodev07\installer\Files\text\de_shortcuts.txt"

File "C:\BBCodev07\installer\Files\text\de_tip.txt"

File "C:\BBCodev07\installer\Files\text\de_bbcode.txt"

File "C:\BBCodev07\installer\Files\text\en_bbcode.txt"

SetOutPath "$INSTDIR\phpbb"

File "C:\BBCodev07\installer\Files\phpbb\style.css"

SetOutPath "$INSTDIR\phpbb\ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\bold.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\italic.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\underline.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\url.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\quote.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\code.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\img.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\listnum.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\listunnum.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\listelement.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\listletter.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\color.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\mail.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\font.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\logo.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\pinned.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\unpinned.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\cents.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\bbcode.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom01.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom02.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\ahk.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\clean.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\compose.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom10.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom04.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom05.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom06.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom07.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom08.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom09.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\custom03.ico"

SetOutPath "$INSTDIR\phpbb\ico\smileys"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_arrow.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_twisted.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_surprised.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_biggrin.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_confused.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_cool.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_cry.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_eek.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_evil.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_exclaim.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_idea.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_lol.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_mad.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_mrgreen.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_neutral.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_question.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_razz.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_sad.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_smile.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_wink.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_redface.ico"

File "C:\BBCodev07\installer\Files\phpbb\ico\smileys\icon_rolleyes.ico"

SetOutPath "$INSTDIR\phpbb\smileys"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_wink.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_biggrin.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_confused.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_cool.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_cry.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_eek.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_evil.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_exclaim.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_idea.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_lol.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_mad.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_mrgreen.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_neutral.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_question.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_razz.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_rolleyes.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_sad.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_smile.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_surprised.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_twisted.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_arrow.gif"

File "C:\BBCodev07\installer\Files\phpbb\smileys\icon_redface.gif"

SetOutPath "$INSTDIR\phpbb\images"

File "C:\BBCodev07\installer\Files\phpbb\images\postheader.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color12.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color13.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color14.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color2.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color1.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color3.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color4.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color5.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color6.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color8.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color9.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color10.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color11.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\color7.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\logo.gif"

File "C:\BBCodev07\installer\Files\phpbb\images\headbackgr.jpg"

SectionEnd



######################################################################



Section -Icons_Reg

SetOutPath "$INSTDIR"

WriteUninstaller "$INSTDIR\uninstall.exe"



!ifdef REG_START_MENU

!insertmacro MUI_STARTMENU_WRITE_BEGIN Application

CreateDirectory "$SMPROGRAMS\$SM_Folder"

CreateShortCut "$SMPROGRAMS\$SM_Folder\${APP_NAME}.lnk" "$INSTDIR\${MAIN_APP_EXE}"

CreateShortCut "$SMPROGRAMS\$SM_Folder\Uninstall ${APP_NAME}.lnk" "$INSTDIR\uninstall.exe"



!ifdef WEB_SITE

WriteIniStr "$INSTDIR\${APP_NAME} website.url" "InternetShortcut" "URL" "${WEB_SITE}"

CreateShortCut "$SMPROGRAMS\$SM_Folder\${APP_NAME} Website.lnk" "$INSTDIR\${APP_NAME} website.url"

!endif

!insertmacro MUI_STARTMENU_WRITE_END

!endif



!ifndef REG_START_MENU

CreateDirectory "$SMPROGRAMS\AHK BBCodeWriter"

CreateShortCut "$SMPROGRAMS\AHK BBCodeWriter\${APP_NAME}.lnk" "$INSTDIR\${MAIN_APP_EXE}"

CreateShortCut "$SMPROGRAMS\AHK BBCodeWriter\Uninstall ${APP_NAME}.lnk" "$INSTDIR\uninstall.exe"



!ifdef WEB_SITE

WriteIniStr "$INSTDIR\${APP_NAME} website.url" "InternetShortcut" "URL" "${WEB_SITE}"

CreateShortCut "$SMPROGRAMS\AHK BBCodeWriter\${APP_NAME} Website.lnk" "$INSTDIR\${APP_NAME} website.url"

!endif

!endif



WriteRegStr ${REG_ROOT} "${REG_APP_PATH}" "" "$INSTDIR\${MAIN_APP_EXE}"

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}"  "DisplayName" "${APP_NAME}"

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}"  "UninstallString" "$INSTDIR\uninstall.exe"

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}"  "DisplayIcon" "$INSTDIR\${MAIN_APP_EXE}"

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}"  "DisplayVersion" "${VERSION}"

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}"  "Publisher" "${COMP_NAME}"



!ifdef WEB_SITE

WriteRegStr ${REG_ROOT} "${UNINSTALL_PATH}"  "URLInfoAbout" "${WEB_SITE}"

!endif

SectionEnd



######################################################################



Section Uninstall

${INSTALL_TYPE}

Delete "$INSTDIR\BBCodeWriter.ini"

Delete "$INSTDIR\CustomTags.ini"

Delete "$INSTDIR\gpl.txt"

Delete "$INSTDIR\BBCodeWriter.exe"

Delete "$INSTDIR\lang\lang_en.ini"

Delete "$INSTDIR\lang\lang_de.ini"

Delete "$INSTDIR\text\en_tip.txt"

Delete "$INSTDIR\text\en_customize.txt"

Delete "$INSTDIR\text\en_shortcuts.txt"

Delete "$INSTDIR\text\de_customize.txt"

Delete "$INSTDIR\text\de_shortcuts.txt"

Delete "$INSTDIR\text\de_tip.txt"

Delete "$INSTDIR\text\de_bbcode.txt"

Delete "$INSTDIR\text\en_bbcode.txt"

Delete "$INSTDIR\phpbb\style.css"

Delete "$INSTDIR\phpbb\ico\bold.ico"

Delete "$INSTDIR\phpbb\ico\italic.ico"

Delete "$INSTDIR\phpbb\ico\underline.ico"

Delete "$INSTDIR\phpbb\ico\url.ico"

Delete "$INSTDIR\phpbb\ico\quote.ico"

Delete "$INSTDIR\phpbb\ico\code.ico"

Delete "$INSTDIR\phpbb\ico\img.ico"

Delete "$INSTDIR\phpbb\ico\listnum.ico"

Delete "$INSTDIR\phpbb\ico\listunnum.ico"

Delete "$INSTDIR\phpbb\ico\listelement.ico"

Delete "$INSTDIR\phpbb\ico\listletter.ico"

Delete "$INSTDIR\phpbb\ico\color.ico"

Delete "$INSTDIR\phpbb\ico\mail.ico"

Delete "$INSTDIR\phpbb\ico\font.ico"

Delete "$INSTDIR\phpbb\ico\logo.ico"

Delete "$INSTDIR\phpbb\ico\pinned.ico"

Delete "$INSTDIR\phpbb\ico\unpinned.ico"

Delete "$INSTDIR\phpbb\ico\cents.ico"

Delete "$INSTDIR\phpbb\ico\bbcode.ico"

Delete "$INSTDIR\phpbb\ico\custom01.ico"

Delete "$INSTDIR\phpbb\ico\custom02.ico"

Delete "$INSTDIR\phpbb\ico\ahk.ico"

Delete "$INSTDIR\phpbb\ico\clean.ico"

Delete "$INSTDIR\phpbb\ico\compose.ico"

Delete "$INSTDIR\phpbb\ico\custom10.ico"

Delete "$INSTDIR\phpbb\ico\custom04.ico"

Delete "$INSTDIR\phpbb\ico\custom05.ico"

Delete "$INSTDIR\phpbb\ico\custom06.ico"

Delete "$INSTDIR\phpbb\ico\custom07.ico"

Delete "$INSTDIR\phpbb\ico\custom08.ico"

Delete "$INSTDIR\phpbb\ico\custom09.ico"

Delete "$INSTDIR\phpbb\ico\custom03.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_arrow.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_twisted.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_surprised.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_biggrin.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_confused.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_cool.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_cry.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_eek.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_evil.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_exclaim.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_idea.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_lol.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_mad.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_mrgreen.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_neutral.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_question.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_razz.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_sad.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_smile.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_wink.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_redface.ico"

Delete "$INSTDIR\phpbb\ico\smileys\icon_rolleyes.ico"

Delete "$INSTDIR\phpbb\smileys\icon_wink.gif"

Delete "$INSTDIR\phpbb\smileys\icon_biggrin.gif"

Delete "$INSTDIR\phpbb\smileys\icon_confused.gif"

Delete "$INSTDIR\phpbb\smileys\icon_cool.gif"

Delete "$INSTDIR\phpbb\smileys\icon_cry.gif"

Delete "$INSTDIR\phpbb\smileys\icon_eek.gif"

Delete "$INSTDIR\phpbb\smileys\icon_evil.gif"

Delete "$INSTDIR\phpbb\smileys\icon_exclaim.gif"

Delete "$INSTDIR\phpbb\smileys\icon_idea.gif"

Delete "$INSTDIR\phpbb\smileys\icon_lol.gif"

Delete "$INSTDIR\phpbb\smileys\icon_mad.gif"

Delete "$INSTDIR\phpbb\smileys\icon_mrgreen.gif"

Delete "$INSTDIR\phpbb\smileys\icon_neutral.gif"

Delete "$INSTDIR\phpbb\smileys\icon_question.gif"

Delete "$INSTDIR\phpbb\smileys\icon_razz.gif"

Delete "$INSTDIR\phpbb\smileys\icon_rolleyes.gif"

Delete "$INSTDIR\phpbb\smileys\icon_sad.gif"

Delete "$INSTDIR\phpbb\smileys\icon_smile.gif"

Delete "$INSTDIR\phpbb\smileys\icon_surprised.gif"

Delete "$INSTDIR\phpbb\smileys\icon_twisted.gif"

Delete "$INSTDIR\phpbb\smileys\icon_arrow.gif"

Delete "$INSTDIR\phpbb\smileys\icon_redface.gif"

Delete "$INSTDIR\phpbb\images\postheader.gif"

Delete "$INSTDIR\phpbb\images\color12.gif"

Delete "$INSTDIR\phpbb\images\color13.gif"

Delete "$INSTDIR\phpbb\images\color14.gif"

Delete "$INSTDIR\phpbb\images\color2.gif"

Delete "$INSTDIR\phpbb\images\color1.gif"

Delete "$INSTDIR\phpbb\images\color3.gif"

Delete "$INSTDIR\phpbb\images\color4.gif"

Delete "$INSTDIR\phpbb\images\color5.gif"

Delete "$INSTDIR\phpbb\images\color6.gif"

Delete "$INSTDIR\phpbb\images\color8.gif"

Delete "$INSTDIR\phpbb\images\color9.gif"

Delete "$INSTDIR\phpbb\images\color10.gif"

Delete "$INSTDIR\phpbb\images\color11.gif"

Delete "$INSTDIR\phpbb\images\color7.gif"

Delete "$INSTDIR\phpbb\images\logo.gif"

Delete "$INSTDIR\phpbb\images\headbackgr.jpg"

 

RmDir "$INSTDIR\phpbb\images"

RmDir "$INSTDIR\phpbb\smileys"

RmDir "$INSTDIR\phpbb\ico\smileys"

RmDir "$INSTDIR\phpbb\ico"

RmDir "$INSTDIR\phpbb"

RmDir "$INSTDIR\text"

RmDir "$INSTDIR\lang"

 

Delete "$INSTDIR\uninstall.exe"

!ifdef WEB_SITE

Delete "$INSTDIR\${APP_NAME} website.url"

!endif



RmDir "$INSTDIR"



!ifdef REG_START_MENU

!insertmacro MUI_STARTMENU_GETFOLDER "Application" $SM_Folder

Delete "$SMPROGRAMS\$SM_Folder\${APP_NAME}.lnk"

Delete "$SMPROGRAMS\$SM_Folder\Uninstall ${APP_NAME}.lnk"

!ifdef WEB_SITE

Delete "$SMPROGRAMS\$SM_Folder\${APP_NAME} Website.lnk"

!endif

RmDir "$SMPROGRAMS\$SM_Folder"

!endif



!ifndef REG_START_MENU

Delete "$SMPROGRAMS\AHK BBCodeWriter\${APP_NAME}.lnk"

Delete "$SMPROGRAMS\AHK BBCodeWriter\Uninstall ${APP_NAME}.lnk"

!ifdef WEB_SITE

Delete "$SMPROGRAMS\AHK BBCodeWriter\${APP_NAME} Website.lnk"

!endif

RmDir "$SMPROGRAMS\AHK BBCodeWriter"

!endif



DeleteRegKey ${REG_ROOT} "${REG_APP_PATH}"

DeleteRegKey ${REG_ROOT} "${UNINSTALL_PATH}"

SectionEnd



######################################################################



Function un.onInit

!insertmacro MUI_UNGETLANGUAGE

FunctionEnd



######################################################################

___________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 8th, 2008, 4:56 pm 
Offline

Joined: March 23rd, 2008, 5:22 am
Posts: 12
Thx

Especially for the link to the Script generator.

I cerainly will use it.
I feared that I would have to use another tool for NSIS i downloaded.
And fabricate my own nsi file.

This will make it a lot easier.

If you are interested I can post back my modified version here.
Of course I would consider it very much a beta test as I am no AutoHotkey programmer. I just modified your excellent commented work with your help.

So many thx again
Leif


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 15th, 2008, 8:13 am 
Offline

Joined: March 27th, 2008, 2:14 pm
Posts: 700
Wow! This is great! Thanks!

I made some cool modifications to make the preview Live Updating
Now it's TOTALLY AWESOME!! (ok, maybe just a little more awesome than before :))

This is really cool for having the edit window in the front, with the preview right behind it. You get an instant look at what your post will look like, Without ever leaving the editor.

To change it, in short, I:
[*]Added a g-label to the main edit control
[*]Created a label that calls the preview at a max rate of .5 second
(there were problems with not giving it breathing room)
[*]Changed the winactivate and refresh part to use ControlSend if it's a live update, and not activate the window.
(the preview button still works normally)

Code:
; ### 1 ###
; In \phbb\BBCodeEditor.ahk ~line#476   Added: gEdtChange
  Gui, 1:Add, Edit, vEdtComment gEdtChange +WantTab -Wrap +HScroll xs y%EdtY% h%EdtH% w%EdtW% Section
      ; +WantTab is handy for editing code in BBCodeWriter
      ; -Wrap and +HScroll changes it so lines don't wrap, and if they go beyond the control width, you can scroll instead of having to select text or use the arrow keys for getting there. just a personal prefrence.


; ### 2 ###
; in \phbb\BBCodeEditor.ahk ~line#2294   Added label: EdtChange
EdtChange:
  If LiveUpdate
   return
  IfWinNotExist, BBCodeWriter Preview        ;it only Updates the preview, doesn't create it.
   return
  LiveUpdate = 1
  SetTimer, BtnPreview, -500        ;don't forget the "-" !!
return
; I could have had it update immideately on a change instead of having it wait another half second,
;    but this way it gives the user more time to type a couple letters if that's all that's being changed.


; ### 3 ###
; in \phbb\BBCodePreview.ahk ~line#503   changed If block:
  ; Check whether BBCodeWriter already created a browser window
  IfWinExist, BBCodeWriter Preview
    {
     If LiveUpdate
      ControlSend, Internet Explorer_Server1, {F5}, BBCodeWriter Preview
      Else
     {
        WinActivate, BBCodeWriter Preview
        Send, {F5}
     }
    }
  Else
    {
      ; Run defined browser with preview page
      Run, %BrowserExe% "%A_WorkingDir%\preview.html"
     WinWait, BBCodeWriter Preview
     WinActivate, BBCodeWriter Preview
    }
   LiveUpdate = 0
Return

I'm sure there are better ways to implement it. (e.g. Using GuiControl to enable/disable g-label)
Unfortuneately, it flashes some every time it refreshes, and worse if it's scrolled down some. I wouldn't think there is a fix for that, it's just natural.
I strongly suggest using: C:\WINDOWS\system32\mshta.exe as the previewer, as AGermanUser says. Since it is updating very frequently, speed and low resources are a priority.
I've noticed a bug: if the system is bogged down, live update sometimes opens a couple blank mshta windows.

This would be really great to build in. Maybe a checkbox somewhere like:
[_] Live Update the Preview Window
or something, so you can turn it off if you don't want it.

What do you think?

_________________
Scripts - License


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 25th, 2008, 10:29 am 
Offline

Joined: February 12th, 2005, 8:31 pm
Posts: 82
Hi infogulch,

thanks for your interest in BBCodeWriter.

Unfortunantely I made a switch to Ubuntu Linux a year ago. Apart from that I didn't have much time to care about BBCodeWriter at all.

Nevertheless I like it when people play with my code and customize it to their needs. That's why I opensourced BBCodeWriter.

EDIT:
btw. If you have good coding skills and if you're interested, what about continuing the developement of BBCodeWriter? Or someone else?

I have a bunch of ideas and user proposals of what can be done/should be inside BBCodeWriter, but I don't have the time to do it.

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage


Report this post
Top
 Profile  
Reply with quote  
 Post subject: BBCodeWriter
PostPosted: August 15th, 2008, 9:55 pm 
Can someone tell me how I get BBCodeWriter to wordwrap?

Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2008, 4:31 pm 
What do you mean by "wordwrap"?

The multiline edit control within BBCodeWriter should wordwrap automatically unless it's deactivated with the -wrap option within the gui,add command. But this is not the case.

Code:
...
Gui, 1:Add, Edit, vEdtComment xs y%EdtY% h%EdtH% w%EdtW% Section
...

_________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2008, 6:35 pm 
I just downloaded and installed (on a Vista PC), but the lines in the edit window do not wordwrap at the right of the screen - they just keep on going off to the right. I've not changed anything from the basic install.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2008, 11:29 pm 
To be honest, I don't know how to help you.

As far as I wrote, the edit control should wordwrap. Additionally you're the first one to describe this kind of error. I can only guess it's a Vista specific issue. Or maybe something with your desktop theme?

I don't run Vista so I can't help you very much. Doesn't Vista have some kind of compatibility mode where you can run programs within a XP context? I thought I read something like this recently.
_____________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 17th, 2008, 11:31 pm 
http://lifehacker.com/software/vista/ho ... 251492.php
____________________
Cheers AGU


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 7:15 pm 
Sorry for taking so long to get back to you on this.

I tried it in XP (SP2) Compatibility mode, but it made no difference. What I was doing was pasting in text - the lines didn't wrap at all, just kept on going off the right of the screen.

Also, I've now lost all the button images, even though I've disabled the Compatibility Mode.

I'm off to uninstall and re-install...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 7:26 pm 
I can't find the BBCodeWriter homepage. Has it moved?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 7:33 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 774
Location: Texas, USA
zeno wrote:
I can't find the BBCodeWriter homepage. Has it moved?

The link you gave redirected me to a slightly different address. Try this one:
http://www.autohotkey.net/~AGermanUser/BBCodeWriter/homepage/index.html


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 273 posts ]  Go to page Previous  1 ... 14, 15, 16, 17, 18, 19  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: toddintr, Yahoo [Bot] and 9 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group