Search found 32 matches

by TDT
Aug 25, 2009 18:01
Forum: Windows
Topic: WebBrowser example problem in browser->render()
Replies: 0
Views: 1530

WebBrowser example problem in browser->render()

(This post is about \examples\Windows\COM\WebBrowser\ example) Hi guys, so I'm trying to use the webctrl class to load a webbrowser window and control the content of it (html document). So.. I build the lib and try to use all the functions.. but one of that doesn't works. When I call the browser->re...
by TDT
Oct 30, 2008 12:39
Forum: Windows
Topic: Shutdown the system
Replies: 11
Views: 3375

never know sleep has 2nd parameter, but it is :-| yes it work with flag set to 1 tried sleep 100,1 and sleep 1000,1, both works fine Oh #%$@! it's really! O.O Did u read about the 2nd parameter in sleep command? this makes the "sleeps time" to be waited completely, without interruptions. ...
by TDT
Oct 30, 2008 6:38
Forum: Windows
Topic: Shutdown the system
Replies: 11
Views: 3375

Loe wrote:If I remove Sleep 100, your codes works fine
but its not what you want :-(
If we remove the "sleep 100" the CPU Usage will be (or can be) 100%.

Did you test changing the "sleep 100" to "sleep 100,1" ? Could u test? Thkz.
by TDT
Oct 30, 2008 6:07
Forum: Windows
Topic: Shutdown the system
Replies: 11
Views: 3375

Hello Zippy, thx for ur help! Your code works fine! And I don't get the retry box.. But I have a little problem.. I need some functions of the console window like "shell" command for open a text file for example: shell "c:\test.txt" and with your code this doesn't work :\ would y...
by TDT
Oct 30, 2008 3:49
Forum: Windows
Topic: Shutdown the system
Replies: 11
Views: 3375

Loe wrote:Im usually use WM_QUERYENDSESSION to receive shutdown message
I just change the line with "EndDialog" function to "end" command to terminate my application.. and I got the same retry box on shutdown.

:/
by TDT
Oct 30, 2008 2:39
Forum: Windows
Topic: Shutdown the system
Replies: 11
Views: 3375

Would it not be easier to create your own window? You don't have to show it. Garvan I tried it.. but.. I don't know if I make any mistake.. 'cause my window doesn't receive the WM_ENDSESSION message. But I think no. That's the code. #include "windows.bi" declare function CloseProc (hWnd a...
by TDT
Oct 29, 2008 21:00
Forum: Windows
Topic: Shutdown the system
Replies: 11
Views: 3375

Shutdown the system

Hello guys, I'm making an application that have to be in a loop until the system shutdowns. But when the user shutdown, the Windows shows a retry box with options "End Task" and "Cancel" because my application didn't response the request. The problem is: my application is on a co...
by TDT
Apr 29, 2008 11:57
Forum: Beginners
Topic: Doubt about DispHelper
Replies: 8
Views: 3217

thatsgreat2345 wrote:When you get text it is stored it returns the pointer with LPSTR, so you hae to refer to it with a *. So Dim sText as LPSTR , and to get the text you gotta do *sText, but good luck with whatever you are doing.
I know this.. and I use it .. but the *sText still empty :P~
by TDT
Apr 28, 2008 4:52
Forum: Beginners
Topic: Doubt about DispHelper
Replies: 8
Views: 3217

The last code doesn't give me an error.. But the var sText didn't get anything.. It still empty.. BUT... your link in MSDN help me.. You give me the link that refers to IFRAME.. and what I want to get is FRAME (without I) Then I read the FRAME object in MSDN.. and there.. I got this method.. .docume...
by TDT
Apr 28, 2008 3:56
Forum: Beginners
Topic: Doubt about DispHelper
Replies: 8
Views: 3217

Hi, thatsgreat2345

I test and I got the same error 'cause the "frames.item" ...

"It doesn't have support for this interface"



So..we're at the begin again :/
by TDT
Apr 28, 2008 0:38
Forum: Beginners
Topic: Doubt about DispHelper
Replies: 8
Views: 3217

Hi MystikShadows, I already tried and it doesn't work.. the disphelper returns the follow error: Member: .document.frames[1].document.body.outerText Function: GetValue Error In: InvokeArray Error: Object doesn't support this property or method: 'frames[1]' Code: 80020006 Source: IDispatch Interface ...
by TDT
Apr 27, 2008 0:42
Forum: Beginners
Topic: Doubt about DispHelper
Replies: 8
Views: 3217

Doubt about DispHelper

I'm trying to use this code dhGetValue("%s", @CONTEUDO, ieApp2, ".document.frames.item(1).document.body.outerText") to get the content of the second frame of a website but I'm getting the follow error Member: .document.frames.item(0).document.body.outerText Function: GetValue Err...
by TDT
Jan 29, 2008 20:26
Forum: Libraries Questions
Topic: Who know how use FB swig?
Replies: 10
Views: 4906

I can't convert a .h file into .bi
All sintaxes that I try I got an error.

I create the .i file with
%module name
%include name.h

and I use: swig name.i
and I got many error (probably in each line)


Someone could give me the parameters?
by TDT
Apr 02, 2007 18:32
Forum: General
Topic: Internet Explorer 7 - DispHelper
Replies: 52
Views: 13354

Well.. trying and trying more, I obtain a solution! In IE6 is necessary to use the code below because IE6 has a delay to set the LocationURL and LocationName for a window. do ... loop while ( ATTEMPTS < 1000 \ 25 ) Fortunately, in IE7 this code works good. It was enumerate all tabs of each window, b...
by TDT
Apr 01, 2007 5:13
Forum: General
Topic: Internet Explorer 7 - DispHelper
Replies: 52
Views: 13354

Internet Explorer 7 - DispHelper

I have a code to enumerate windows in Internet Explorer 6. But in IE7 this code enumerate only the first tab (not the active). Anyone could help me to list the windows and each tab of it? The code to IE6 #include once "windows.bi" #define UNICODE #include once "disphelper/disphelper.b...