Page 3 of 4 <1234>
Topic Options
#88056 - 02/09/19 08:06 AM Re: devel of new checker
Kdyer Offline
KiX Supporter
*****

Registered: 01/01/03
Posts: 6241
Loc: Tigard, OR
Shawn,

quote:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Settings]
"Anchor Color Visited"="128,0,128"
"Anchor Color"="0,0,255"
"Background Color"="192,192,192"
"Text Color"="0,0,0"
"Use Anchor Hover Color"="No"

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#88057 - 02/09/19 08:36 AM Re: devel of new checker
NTDOC Administrator Offline
Administrator
*****

Registered: 00/07/28
Posts: 11540
Loc: CA
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Settings]
"Anchor Color Visited"="128,0,128"
"Anchor Color"="0,0,255"
"Background Color"="192,192,192"
"Text Color"="0,0,0"
"Use Anchor Hover Color"="No"

Top
#88058 - 02/09/19 09:37 AM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
the new parse.udf correctly gets to the post.
meaning that if you choose a post from a topic that is 9 pages long and the post is on the fifth page in the middle, the parser makes the link to go there...

so, no more searches if you have checker running...
if we just could get the memory consumption lower...

shawn, if I release the timer and re-create it, does that free up the mem?
_________________________
!

download KiXnet

Top
#88059 - 02/09/19 10:14 AM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
ok, to get it to really work as stand-alone parser and make it easier for ppl to upgrade it on forum update... introduction of new forum is pretty messy thing, but introducing new version of bb-software is only handled by parser...

basically, what I'm about to do and after is to split the parser code into:
parse() - only the info on the updates. outputs array of updates
update() - if update, pulls them to the appwindow and listboxes...
_________________________
!

download KiXnet

Top
#88060 - 02/09/19 02:46 PM Re: devel of new checker
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
Jooel - heres the lowdown on the Timer thingy:

First off, in general, we have to remember that Kixtart is an interpreted scripting language, not a compiler (I know you know this - just making a point). And as such, has a certain latency in terms of responding to the real live windows events. Add to that the overhead associated with COM Automation and you can maybe see where I'm "heading" here.

In some of my very early performance test (with the KIXBGI32 component and later on with Kixforms 1.0) I discovered that with a reasonably fast machine (500mhz) - the "minimum" elapsed time to invoke a COM call is roughly about 1 or 2 ms. Then add to that some script processing and the times I've seen can jump to roughly 10 ms or so (like if you inside a small WHILE loop making COM calls).

Anyways - what happens is that when the Timer object is running - it is continously generating windows timer events (say every 10ms or so). And its up to you (us) to "handle" these events in the script (by invoking DoEvents). Well - if your event handler takes longer than 10ms to run - what happens is that there is a backlog of timer events in the queue ... maybe backlog is a bad word ... a series of "missed" timer events can occur.

If you already have an event "waiting" in the queue - and another timer event arrives (because your script is too slow to empty the queue), windows just discards the event in the queue and replaces it with the new one. But - inside that discarded event is the "event string" that we specified in the $Timer.OnTimer property. Windows doesn't destroy that string, so i have to make a change to Forms to handle this situation. And this situation arises only with the timer event - not true for all the other events. I went to great pains to insure that all events in Kixforms are trapped and handled (as you found out with your BBChecker Buddies and History buttons, all clicks are captured!).

Actually - its not a tough change to make but i got my head wrapped-up in ListViews right now. Suspect that improved timers will make their appearance in 2.1.1 or so.

-Shawn

[ 19. September 2002, 14:47: Message edited by: Shawn ]

Top
#88061 - 02/09/19 02:58 PM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
huh, long text!

so, what comes to the "event queue", it is hard to think that the form timer is causing this as it is timed on my test script to 60secs.

well, the slider is definitely another thing.

we can surely fix this in the script, I even had a workaround for the slider but forgot what it was...

anyway, thanks for being a rock solid on this issue too [Big Grin]
 
_________________________
!

download KiXnet

Top
#88062 - 02/09/19 03:17 PM Re: devel of new checker
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
Yeah - the 60sec timer shouldn't be leaking - the slider timer probably leaks ... but how often does the slider slide (only when a new post arrives right?) ... Unfortunately - I haven't had the time lately to delve much into the current version of BBChecker and maybe see whats going on. But I imagine (without looking at the code) that if you leave the Slider timer running (forget to turn it off after the slide) that it will chew up memory pretty quick. If (my) memory serves - the Slider was running at 10ms or so. The way to turn a timer off is with:

$Timer.Interval = 0

or

$Timer.Enabled = 0

so maybe you should disable the Timer when its first created, then enable the timer when slider is first called, then disable the timer again before you leave the function. (maybe your already doing that?)

[ 19. September 2002, 15:17: Message edited by: Shawn ]

Top
#88063 - 02/09/19 03:20 PM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
no, as the slider is own instance of the form-object.

the timer gets disabled yep...
$$c.Enabled=0

but it is deleted and re-created every time slider runs as is the form too.
_________________________
!

download KiXnet

Top
#88064 - 02/09/19 04:18 PM Re: devel of new checker
Chris S. Offline
MM club member
*****

Registered: 02/03/18
Posts: 2368
Loc: Earth
Jooel said:

quote:

if I then put the slider into the main process, it does not steal focus but it hangs the main form.

Are you creating the slider form from within the slider() function? If so, remember to destroy it before exiting the function. When I was working on integrating my slider into your script I found that if I didn't I got all sorts of problems.

Top
#88065 - 02/09/19 04:19 PM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
patrick, I also found that thing with not opening the last post if in the same page of same topic.

well, does not hurt so much.

I also got the slider to break the checker totally [Big Grin]

after it slides back, the checker will start show and hide in amazing speed! [Eek!]

I would show you but do not have video camera here...

anyways, other good thing, making sliders borderstyle is weird as you can move it up and watch it sliding down, catch it pull back up and watch again... [Big Grin]

roflol... should I go to bed or something...
_________________________
!

download KiXnet

Top
#88066 - 02/09/19 05:34 PM Re: devel of new checker
MightyR1 Offline
MM club member
*****

Registered: 99/09/09
Posts: 1264
Loc: The Netherlands
Shawn,

thnx for the LINE tip, will try with new checker...
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#88067 - 02/09/19 05:41 PM Re: devel of new checker
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
Hats off to you if you get it to work - the challenge with framing the Checker is that you will (probably) have to erase background (clear) the form and redraw the border every time the checker gets resized by the the user (which is often) ... I will be implementing OnResize in a future release. Might want to check out that KixMessenger script as well - it also draws a couple of borders around the inside of the form (also uses variable width lines) but have never seen a dynamic border draw done yet. [Wink]
Top
#88068 - 02/09/19 06:42 PM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
Hey all...
again.

especially patrick, check the NEW 1.3 beta 1!

woah, got it to work after all...
what ya think?
 
_________________________
!

download KiXnet

Top
#88069 - 02/09/19 09:59 PM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
btw,
a word of warning:
the slider might be interfering with main form...

just may, I tried to fix it in this latest build but can't be sure...
_________________________
!

download KiXnet

Top
#88070 - 02/09/19 10:22 PM Re: devel of new checker
MightyR1 Offline
MM club member
*****

Registered: 99/09/09
Posts: 1264
Loc: The Netherlands
Jooel,

really fantastic. Can't say anymore... [Big Grin] [Big Grin]

Is there a way to reproduce the little bug??? Else maybe this can be a new release??
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#88071 - 02/09/19 10:26 PM Re: devel of new checker
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
Got to hand it to you Jooel [guys] - this BBChecker script is incredible ... what else can I say ?

-Shawn

Top
#88072 - 02/09/19 10:37 PM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
well patrick, let it roll for a while.

I didn't change the parser yet as it would change this pretty much...

maybe next release.
if you get any errors, we shall fix them.
if you don't we have to wait few seconds longer [Big Grin]

shawn got me thinking on the slider addon...
what about a slider or visibility changer script?
script that changes the appearance of the form and the slider...

shawn, I think we are after just something amazing and it's nice to hear that this is getting good... after all.
_________________________
!

download KiXnet

Top
#88073 - 02/09/20 12:04 AM Re: devel of new checker
MightyR1 Offline
MM club member
*****

Registered: 99/09/09
Posts: 1264
Loc: The Netherlands
Shawn

is this what you where looking for???
If so, let us see you take your hat off [Big Grin]

code:
Function slide($sc,$scv)
Dim $t,$d,$p,$l,$c,$h,$w,$h1,$poplabel
$d = 1
$h = 22
$h1 = 18
$w = 300
$p = CreateObject("Kixtart.Form")
$p.height = 0
$t=$p.screen.height-75
$p.height = 0
$p.width = $w + 6
$p.fontsize = 10
$p.fontname = "helvetica"
$p.forecolor = 0
$p.fontbold = 0
$p.BorderStyle = 0
$p.backcolor = $p.RGB(255,255,0)
$p.Top = $t
$p.Left = ($p.screen.width-$p.width)/2

$poplabel = $p.label($sc,4,2+$h1/2,$w-2,2*$h1)
$poplabel.backcolor = $p.rgb(255,255,0)
$poplabel.borderstyle = 0
$poplabel.alignment = 2
$p.onmousemove="$$poplabel.fontbold=0 $$poplabel.fontunderline=0"
$poplabel.onmousemove="$$poplabel.fontbold=0 $$poplabel.fontunderline=1"
$poplabel.onmouseup="$runie "+Chr(34)+$scv+Chr(34)+"' sleep 0.5 $$p.visible=0 "

$c = $p.Timer(20)
$c.OnTimer = "
If $$d=1
$$p.Top=$$p.Top - 1
$$p.height=$$p.Height+1

$$ptopline=$$p.line(0,0,$$p.width,0)
$$pleftline=$$p.line(0,0,0,$$p.height)
$$prightline=$$p.line($$p.width-1,0,$$p.width-1,$$p.height)
$$p.forecolor=$$p.RGB(255,255,0)
$$pbottomline=$$p.line(1,$$p.height-2,$$p.width-1,$$p.height-2)
$$p.forecolor=0
$$pbottomline=$$p.line(0,$$p.height-1,$$p.width,$$p.height-1)

If $$p.top<($$t-3*$h1)
$$c.Interval=3000
$$d=0
EndIf
Else
If $$d=2
$$c.Interval=20
$$p.Top=$$p.Top + 1
$$p.height=$$p.Height-1

$$ptopline=$$p.line(0,0,$$p.width,0)
$$pleftline=$$p.line(0,0,0,$$p.height)
$$prightline=$$p.line($$p.width-1,0,$$p.width-1,$$p.height)
$$p.forecolor=$$p.RGB(255,255,0)
$$pbottomline=$$p.line(1,$$p.height-2,$$p.width-1,$$p.height-2)
$$p.forecolor=0
$$pbottomline=$$p.line(0,$$p.height-1,$$p.width,$$p.height-1)

If $$p.top>$$t
$$c.Enabled=0
$$p.Hide
EndIf
Else
$$d=2
EndIf
EndIf
"
$p.height=0
$p.Show
$p.ShowInTaskbar = 0
$p.TopMost = 1

While $p.Visible
$=Execute($p.DoEvents)
Loop

EndFunction

Jooel,

notice the $p.height=0 before the $p.show. It gets rid of the JUMP we discussed earlier...
Maybe you could use it in your slider.udf for the position of the slider.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#88074 - 02/09/20 01:01 AM Re: devel of new checker
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8601
 -
Top
#88075 - 02/09/20 06:58 AM Re: devel of new checker
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 01/06/05
Posts: 22294
Loc: Claremore, OK
mmm...
at home still, but as I get to work, I'll even try that.

just now I have to wonder the p.height=0 which you put there triple...

ah so, btw...
I'm leaving on a "vacation" tomorrow morning.
will fly back to my seat on next friday evening.
_________________________
!

download KiXnet

Top
Page 3 of 4 <1234>


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

Who's Online
0 registered and 66 anonymous users online.
Newest Members
Sony55, CCFG1, Todd_E, FredR, jhirche
17371 Registered Users

Generated in 0.049 seconds in which 0.012 seconds were spent on a total of 13 queries. Zlib compression enabled.

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