AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AHK BBCodeWriter v7.0.2 - An offline BBCode Editor
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 17, 18, 19  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Fri May 11, 2007 12:38 pm    Post subject: Reply with quote

I uploaded changed "version" for you here. Its messed up completely but it will show you the point and what to do:

Works only with latest AHK version:
http://www.autohotkey.net/~majkinetor/-TEMP/BBCodeWriter.rar


Optimisations for preview function can be done in case we want preview per key press. Currently I implemented preview per timer (500ms) and it works good here. Sean may tell us if there are any ways to send string with HTML to IE so to avoid slow file creation.

With some options, you can make this just extension of your currnet code.
Like, option can be refresh interval, and user can set it to 0 for manual refreshing or to arbitrary number of seconds for automatic. So everything stays as before, just IE is integrated. If you put preview on right side, you will have enough room for even full screen edit.

I tested live prevew with larger posts, like the one above, and it still works fine. The only problem will be that IE will scroll back to the top of file once you reload it, but I will fix that for you.
_________________
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Mon May 14, 2007 10:40 am    Post subject: Reply with quote

Quote:
Gui_IELoadHTML(html_string)

Sean just updated IE control so we can do live preview w/o temp files. This will make live preview instant, probably feasible on key press, but can be done on Timer too.

Tell me, are you still interesting in doing this or no ?
_________________
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Tue May 15, 2007 10:21 am    Post subject: Reply with quote

Quote:
Tell me, are you still interesting in doing this or no ?
Well, yes. Very Happy

The problem is I don't have the time to work on this at the moment. But I'm still interested. I'll keep an eye on this for sure. In my opinion the IE control would look best below the 'action bar' (signatures, copy, preview, reset).
Maybe with a fixed height but scales in width just like the edit control.

Haven't made any further thoughts about it till now.
______________________
Cheers AGU
Back to top
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue May 15, 2007 10:24 am    Post subject: Reply with quote

The time required for U to do this is like several hours. Anybody else will require lot of time as you made entire script non-flexibile so it is hard to change it without looking at every peace of code bellow and above. In sopthisticated GUI, every section can be moved in such way, that it reposition all sections under it. If you did so, adding IE control could be done by anybody, by just inserting it at place where it should be without further modifications.
_________________
Back to top
View user's profile Send private message
Pastilhas



Joined: 16 May 2007
Posts: 4

PostPosted: Wed May 16, 2007 9:57 am    Post subject: Reply with quote

Hi people

First sorry for my bad English and Congratulations for AHK. Nice Program.

I have a problem. AHK Preview cant show Thid code corectly.

Code:
[url=http://www.ptwarriors.com/forum/viewforum.php?f=12][img]http://www.blizzard.com/wow/images/header-paladin.gif[/img][/url]


Its supposed to show this:



What im doing Wrong ?

Thx for your help
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed May 16, 2007 10:27 am    Post subject: Reply with quote

This is strate forward control.
Paladins are gay. Maybe that can be the reason. Try with shamie.
_________________
Back to top
View user's profile Send private message
Pastilhas



Joined: 16 May 2007
Posts: 4

PostPosted: Wed May 16, 2007 11:24 am    Post subject: Reply with quote

Hi

Lets Try Shamie Smile

......................................



Dont Work, Pala are not better then Shamie in this case Smile

AHK Preview cant show Thid code corectly.
Can some one help me ?

Code:
[i]...................[/i][url=http://www.ptwarriors.com/forum/viewforum.php?f=12][img]http://www.blizzard.com/wow/images/header-shaman.gif[/img][/url][i]...................[/i]
[url=http://www.ptwarriors.com/forum/viewtopic.php?t=316][img]http://www.wow-europe.com/shared/wow-com/images/info/classes/shaman/shaman.png[/img][/url]


thx
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed May 16, 2007 12:26 pm    Post subject: Reply with quote

At least Shamie is not gay Cool
Just look at da orc - A real man Very Happy

Sorry, I beleive AGU is the only one that can help you now.
_________________
Back to top
View user's profile Send private message
AGU
Guest





PostPosted: Wed May 16, 2007 2:22 pm    Post subject: Reply with quote

Hi Pastilhas,

I took a look at the code and your problem and have to admit this is a bug with the preview routine. I'll have to fix that. Sorry.

Even if the preview won't work for this, your BBCode is correct and should work when posted within a forum. But keep in mind that it's bandwidth theft if you reference images you don't host yourself.
___________________________
Cheers AGU
Back to top
AGU
Guest





PostPosted: Wed May 16, 2007 2:27 pm    Post subject: Reply with quote

@majkinetor

Quote:
... as you made entire script non-flexibile so it is hard to change it without looking at every peace of code bellow and above.

Well I always thought I documented the script very good, but this is apparently wrong. Do you have any ideas to make the script more flexible as you say?

BBCodeWriter is the result of my learning curve with AHK. When I started it I didn't knew anything about programming at all. So it can be that it's a little bit confusing or non-flexible.
__________________________
Cheers AGU
Back to top
AGermanUser



Joined: 12 Feb 2005
Posts: 82

PostPosted: Wed May 16, 2007 9:54 pm    Post subject: Reply with quote

Ok, made a small update (7.01) to fix the reported error within url tags.

Quote:
16.05.2007
+ fixed bug in BBCodePreview.ahk - BBCode tags within url tags weren't displayed (thx Pastilhas)

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage
Back to top
View user's profile Send private message
cuzabis1
Guest





PostPosted: Fri May 18, 2007 3:07 pm    Post subject: bug Reply with quote



noticed this little bug while saving... Im on Win2K

see where the AUTO HIGHLIGHT goes???
Back to top
cuzabis



Joined: 29 Jun 2006
Posts: 45

PostPosted: Fri May 18, 2007 3:11 pm    Post subject: Reply with quote

sorry I wasn't logged in

It only does the above if you have "Hide known Extensions" active

otherwise it works properly

maybe you could add some sort of If statement so if '.TXT' is detected it highlights only Posting

PS sorry I wasn't logged in last post, otherwise I would have edited
Back to top
View user's profile Send private message
AGermanUser



Joined: 12 Feb 2005
Posts: 82

PostPosted: Fri May 18, 2007 7:49 pm    Post subject: Reply with quote

Hi cuzabis,

thx for reporting. I hopefully fixed it with version 7.0.2. Give it a try.

Quote:
18.05.2007
+ fixed bug in RenameHelper routine - wrong highlighting when 'Hide known extension' is active (thx cuzabis)

_________________
Cheers
BBCodeWriterToDo-ListCopyPassage
Back to top
View user's profile Send private message
cuzabis



Joined: 29 Jun 2006
Posts: 45

PostPosted: Fri May 18, 2007 9:46 pm    Post subject: Reply with quote

Thanks man Smile I will try it Wink

AND BTW

I really love the program Smile

only thing I had a problem with is some forums use a different font sizing
and it doesn't have CENTER (im assuming because AHK.COM doesn't either)

do you maybe plan on implementing the [CENTER] ??

and how would one go about changing the font size... on the other forum Size=4 is Large (about the size of Size=20)
but that doesn't matter Wink the center thing would be great

FAST WORK BTW

EDIT.... tried it, and it works now Wink (the highlight)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 17, 18, 19  Next
Page 13 of 19

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group