Page 1 of 1 1
Topic Options
#85527 - 2002-04-19 05:32 PM BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
my honeys, I'm proudly presenting you the new good bbcodeparser.
3.0.1.3 improvements include:
clipboard copy of current script
editing affects to saved and printed scripts
changed saving syntax to wysiwyg
Install feature now also removes old version

this is probably last update before turnover to kixforms >11 builds.

and here is snapshot of the moment of clipboard copying shawns script.


oh, the download link is the same old http://www.gwspikval.com/jooel/scripts/BBCodeParser

old text:
Here to stay.
it took this time, lots and lots more time.
problems were generated by new bb-style.
well cracked it.
new version is totally new.
new coding style (thanks to shawn)
new kix version (thanks to ruud)
new kixForms version (thanks to shawn, again)

only winHTTP is the same old 5.0

still, I do not support win9x machines.

it's downloadable at http://www.gwspikval.com/jooel/scripts/BBCodeParser/
it's selfextracting and selfinstalling package.
which is started from shortcut on your startmenu.

just might add one basic screen shot here...


and then, I ask you to try it out.

don't want pain to be in vain.

cheers,

[ 22 April 2002, 06:58: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#85528 - 2002-04-19 06:41 PM Re: BBCodeParser 3.0.1.3 update
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
That ROCKS!

One little suggestion, though.. could you implement the "select all" function so that it's easier to copy and paste the code as well as save it?

Brian

Top
#85529 - 2002-04-19 10:13 PM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
That was actually good suggestion...
a button for clipboard copy didn't even cross my mind.
even thou, don't know reason to copy whole script and still not save it...
'cause you can edit it allready in that window.
hmm...
but then it's not anymore safeable in that edited format.
heh.
Found another update that has to take place as soon as possible.
now the changes do not apply to printed or saved versions.
seems that I'll be publishing new version at the beginning of next week.

anyway, good to here that somebody has even tried it (so it's not totally useless [Smile] )!

cheers,
_________________________
!

download KiXnet

Top
#85530 - 2002-04-19 10:24 PM Re: BBCodeParser 3.0.1.3 update
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel,

Great script ! Works a charm. Did you get my email of earlier ? Just tried it on my XP @ home and it ran flawless ! Great to see some new and creative stuff !

-Shawn

[ 19 April 2002, 22:25: Message edited by: Shawn ]

Top
#85531 - 2002-04-19 10:31 PM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn,
I just replied to your P-message.
I'm not at work nor home, so can't read e-mail.

so does this mean that it works on your both systems?

putkisto,
_________________________
!

download KiXnet

Top
#85532 - 2002-04-19 10:36 PM Re: BBCodeParser 3.0.1.3 update
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I tried it on an XP box at work, and the WinHTTP seemed to have problems - the dialog completed but there was not code posted to the listbox or the textbox. I also tried it on an French (France) NT4 sp6 machine and the script terminated early (it didn't crash, it just exited early ?!?!?!).

Anyway, like I said, I just tried it here (XP) and it worked like a charm. That's all I can tell you at this point.

-Shawn

Top
#85533 - 2002-04-20 06:16 PM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
brian, to your knowledge, I've added the select all function.
actually, it's clipboard copy.
it selects all and copyes it to clipboard.

other updates are that when script is now edited in window the changes do not apply to printed or saved versions.
in the next release it is changed.
So now it's also freeware kixeditor!!! [Razz]
I've allready done the changes but I'm not able to release the new code before monday.

Shawn,
I were just wondering last night about this copy issue.
you have in build 11 .selstart and .sellength which ones worked just fine.
but didn't have .copy which is editboxes normal vb-functionality.
well, now I cracked the lack of functionality with kix'es sendkeys, but are you able to perhaps implement it in some future build.
also, don't think it as part of kixforms as it has nothing to do with graphics, but...
I miss good old connection functions I've come familiar with in other script languages.
this is also kind of bleed to ruud, but until he does anything like that, I'm asking can ye do somekind of mod to establish connections.
text/binary mode supported and port selection and such simple stuff?
this way also telnet can be abandoned from scripts and they would become more controllable.

not asking much, am I? [Roll Eyes]

cheers,
_________________________
!

download KiXnet

Top
#85534 - 2002-04-20 08:24 PM Re: BBCodeParser 3.0.1.3 update
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel,

Consider it done - here's a link to kixforms build 12 with the copy method added to the textbox object:

Kixforms Build 12

Heres a sample script:

code:
break on

$form = createobject("kixtart.form")
$form.fontsize = 10
$form.fontname = "courier new"

$textbox = $form.textbox("",10,10,300,300)
$textbox.multiline = 1
$textbox.text = "Type some text in this box"

$select = $form.commandbutton("Select all",10,320)
$select.onclick = "$$textbox.selstart=0 $$textbox.sellength=len($$textbox.text) $$textbox.setfocus"

$copy = $form.commandbutton("Copy to clipboard",10,360)
$copy.onclick = "$$textbox.copy"

$form.show
while $form.visible
$=execute($form.doevents)
loop

exit 1

-Shawn

[ 20 April 2002, 20:27: Message edited by: Shawn ]

Top
#85535 - 2002-04-20 09:18 PM Re: BBCodeParser 3.0.1.3 update
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel, hmmm, wonder if we should go back to having both an editbox and a textbox. kixforms isn't written in vb so we can pretty much do whatever we want. A textbox could remain a single-line textbox and an editbox would be a multi-line textbox. HTML works the same way - but a multi-line textbox is known as an areabox.

Think about it.

-Shawn

[ 20 April 2002, 21:28: Message edited by: Shawn ]

Top
#85536 - 2002-04-22 06:14 AM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sounds nice.
don't remember anymore the coding hazards I faced last night.
but this your example:
sellength=len($$textbox.text)
mmm...
why not use:
sellength = -1 [Wink]

yeah.
now I remember.
I was crying two hours with my user creation script because of the change in event handling of kixforms.
before I could check for change in textbox and update fields realtime.
but now, I can't see events like onchange or onloosefocus.

I'll not update this version yet to support build 12 because I want it to be online asap.

so... I'm going for some bugtracing, see ya later...
_________________________
!

download KiXnet

Top
#85537 - 2002-04-23 12:41 AM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shawn, just remembered one thing we still miss in our "textarea".
scroll-bars!

scrolling works thou but bar's would make it easier to notice and work with long text.
_________________________
!

download KiXnet

Top
#85538 - 2002-04-23 05:34 PM Re: BBCodeParser 3.0.1.3 update
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel,

So, do we want to call our new control a textbox or an editbox ? My vote is editbox because it seems more intuitive. A textbox is for single one-liners and an editbox is for editing large chunks of data. Scrollbars on the editbox - yup - ill put those in as well. OnChange event handling - ill get those in too.

Heres a cool kixforms script - dont necessarily need build 12 for this, just thought it was kinda neat:

code:
break on

$SMALLSTARS = 30
$LARGESTARS = 15

global $smallxpos[$SMALLSTARS]
global $smallypos[$SMALLSTARS]
global $smallspeed[$SMALLSTARS]

global $largexpos[$LARGESTARS]
global $largeypos[$LARGESTARS]
global $largespeed[$LARGESTARS]

$form = createobject("kixtart.form")
$form.caption = "Starfield Simulation"
$form.backcolor = 0 ; black
$form.borderstyle = 2

$width = $form.scalewidth
$height = $form.scaleheight

srnd((-1)*@ticks) ; randomize

For $I = 1 To $SMALLSTARS
$SmallXPos[$I] = Rnd($WIDTH)
$SmallYPos[$I] = Rnd($HEIGHT)
$SmallSpeed[$I] = RND(5)+1
Next

For $I = 1 To $LARGESTARS
$LargeXPos[$I] = Rnd($WIDTH)
$LargeYPos[$I] = Rnd($HEIGHT)
$LargeSpeed[$I] = RND(10)+5
Next

$Form.Show

while $form.visible

$= execute($form.doevents(1))

$height = $form.scaleheight
$width = $form.scalewidth

For $I = 1 To $LARGESTARS
$Form.ForeColor = 0
$Form.Rectangle($LargeXPos[$I],$LargeYPos[$I],2,2)
$LargeXPos[$I] = $LargeXPos[$I] - $LargeSpeed[$I]
If $LargeXPos[$I] < -10
$LargeXPos[$I] = $Width
$LargeYPos[$I] = RND($Height)
$LargeSpeed[$I] = RND(10)+5
EndIf
$Form.ForeColor = &0FFFFFF
$Form.Rectangle($LargeXPos[$I],$LargeYPos[$I],2,2)
Next

For $I = 1 To $SMALLSTARS
$Form.PSet($SmallXPos[$I],$SmallYPos[$I],0)
$SmallXPos[$I] = $SmallXPos[$I] - $SmallSpeed[$I]
If $SmallXPos[$I] < -10
$SmallXPos[$I] = $Width
$SmallYPos[$I] = RND($Height)
$SmallSpeed[$I] = RND(5)+1
EndIf
$Form.PSet($SmallXPos[$I],$SmallYPos[$I],&0FFFFFF)
Next

Loop

Exit 1

Maybe a kixtart screen-saver ? hehee

-Shawn

Top
#85539 - 2002-04-23 05:47 PM Re: BBCodeParser 3.0.1.3 update
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
I had another quick idea.. Would it be too hard to get the code parser to display the name of the user that posted the code (Like BrianTX 1 rather than code 1, etc)?

Also, another idea.. dont' shoot me in the head... lol.. but how about being able to integrate the search function to find pieces of code on the bbs? I would assume you could tie into the search function on the bbs and display code in all the messages in the returned list..

Just a couple thoughts.. i know the second is probably a bit tougher to code.

Brian

Top
#85540 - 2002-04-24 06:51 AM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
brian, yeah, all is possible, isn't it?

the latter one suicide.
ok, it's not more than as coding inventarion script where everything is dynamic.
(that is what I'm doing now)

so, the search is ok, but bb has search allready.
then, the new bb is making it harder to get even one script, what about getting whole page list of scripts?
also, the retrieval of one, can't be anymore done like normal webbrowsing.
it has to be retrieved from another cgi-called page.

the engine is not hard to be added, but I'd need some users asking it.
just to make it worthwhile.

the first one I've thought myself too...
some time ago. it's something I could add.
it just makes the parser-engine little bit more complex but it's something I could do.

Shawn,
There is also alternative for the names...
textbox could be the inputbox [Roll Eyes]
but anyway, it's really sweet you're hearing my requests...
it's makes me wanna update as soon as possible.

cheers,
_________________________
!

download KiXnet

Top
#85541 - 2002-04-24 01:30 PM Re: BBCodeParser 3.0.1.3 update
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
HAHAA!
used bbcodeparser to get the script and executed it and it said: "unknown command: Next"

then checked the script and realized that my engine does not parse &-symbol!
well, changed that and thought, now...

crash, same error.

debugged and yes, it stops on the first next.

unknown command indeed...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 661 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.069 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org