Search found 168 matches

by cecilcheah
Fri Feb 23, 2007 10:32 pm
Forum: Coding Questions
Topic: Javascript
Replies: 3
Views: 1395

Where can i find a sample of these scripts?
by cecilcheah
Fri Feb 23, 2007 8:38 am
Forum: Coding Questions
Topic: Search multiple strings
Replies: 0
Views: 1325

Search multiple strings

Hi
Just want to know the fastest way to search for multiple words in > 250,000 lines of text. Is regular expression the only fastest way? I try that in VBS but it took a few minutes to do. I wonder if PB is faster. Some codes will be nice too to see how to do this.

Thank in advance

Cecil
by cecilcheah
Fri Feb 23, 2007 8:36 am
Forum: Coding Questions
Topic: Javascript
Replies: 3
Views: 1395

Javascript

Hi
Is it possible to call a javascript function from a js file without using a web gadget? Is there some COM object i can link to to do this? I search the forum and read about using Web Gadget or using WSH which i do not want to use either.

Thanks

Cecil
by cecilcheah
Wed Sep 21, 2005 9:24 pm
Forum: Coding Questions
Topic: Find HWND from Class
Replies: 4
Views: 1503

Find HWND from Class

Is it possible to find the hwnd from ClassName, not from the Window Text?

Cecil
by cecilcheah
Tue Sep 20, 2005 9:07 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

So what would 15 in terms of &H be ? &H9?
by cecilcheah
Tue Sep 20, 2005 8:23 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

How do i get this into a number:

WM_CLOSE = &H10

What is &H10 in number?

I am trying to see what message is passing into PB in here:

Procedure WindowCallback(hWnd, Message, wParam, lParam)
Result = DefWindowProc_(hWnd, Message, wParam, lParam)

msgs.MSG
While GetMessage_( @msgs, 0, 0, 0 ...
by cecilcheah
Mon Sep 19, 2005 8:49 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

No, Toolbook is not free. Do you need any more information about toolbook? Take a look here:

http://www.sumtotalsystems.com/

Cecil
by cecilcheah
Mon Sep 19, 2005 8:48 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

Another attempt to solve my problem, i put the whole window callback into a separate procedure and let PB due with it.


Procedure WindowCallback(hWnd, Message, wParam, lParam)
Result = DefWindowProc_(hWnd, Message, wParam, lParam)

If Message = #WM_COPYDATA

msgs.MSG
While GetMessage ...
by cecilcheah
Mon Sep 19, 2005 7:24 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

Hi there
Thanks for helping, but it is still giving a GPF. I think there is a problem with Toolbook not really a 32 bit application. So i am looking for another solution.

If i use this, i can send the message (Command) to toolbook to do something. This has worked and tested. Now i would like to ...
by cecilcheah
Sat Sep 17, 2005 10:21 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

On further debugging, this line is producing GPF:


Eval\lpRetValue = @wPages


Entire Code:

Structure TBMEVAL
lpExpression.s
wRetType.l
lpRetValue.l
nRetValueLength.l
EndStructure

#EVALTYPE_WORD = 3

Procedure stepPages(hwnd)


CRLF$ = Chr(13)+Chr(10)
COMMAND1.s = "step i from 1 ...
by cecilcheah
Sat Sep 17, 2005 9:37 pm
Forum: Coding Questions
Topic: DrawImage in a circle
Replies: 11
Views: 2816

Here is the image:
[img]
http://www.webcbt.ch/images/image1.jpg

[/img]

Cecil
by cecilcheah
Sat Sep 17, 2005 9:32 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

There is some problem with th code, it is not returning anything from the procedure. Here is what i have changed to the code:


Structure TBMEVAL
lpExpression.s
wRetType.l
lpRetValue.l
nRetValueLength.l
EndStructure

#EVALTYPE_WORD = 3


Procedure stepPages(hwnd)


CRLF$ = Chr(13)+Chr ...
by cecilcheah
Sat Sep 17, 2005 7:31 pm
Forum: Coding Questions
Topic: DrawImage in a circle
Replies: 11
Views: 2816

Of course, you are right. A couple of questions here.

How can i make the top left position of the window Screen to be the same as the main Window? At the moment, the 0,0 position of the window screen seems to be shift down and right to the main Window.

Here is my code:


UseJPEGImageDecoder ...
by cecilcheah
Sat Sep 17, 2005 4:03 pm
Forum: Coding Questions
Topic: DrawImage in a circle
Replies: 11
Views: 2816

Excellent Stuff, except one problem:

When i move the mouse to the edge of the text boundary, say the top, click left mouse, click right mouse, move back to the middle, click left mousr
-> GPF.

How come?

Cecil
by cecilcheah
Sat Sep 17, 2005 3:51 pm
Forum: Coding Questions
Topic: Another call for help for C Code
Replies: 13
Views: 3400

Another call for help for C Code

Hi there

I am back with my Toolbook Problem. This time i would like to send a command to Toolbook (an external programme) and get some value back from Toolbook. From the nice programmers from the Toolbook company, i am able to get this code which is in C. I am no expert in C, can anyone please help ...