Not sure this should be under "Programming the Internet", but that's where a previous thread was...
With reference to code provided by Pierre Bellisle in this post:
http://www.powerbasic.com/support/pb...1&postcount=12
I have a new need for this code, but I have not had success with it. I'm on Win XP Pro SP3, and have tried both PBWin 8 and PBWin 9.
To track down what the code is doing, I inserted calls to write a log file with the enumerated classes, windows, and controls.
Pierre's code locates IE, but the only controls it finds are:
BrowserFrameGripperClass
CommandBarClass
WorkerW
TabWindowClass
InternetToolbarHost
It never finds the status bar control; always declines to execute the line:
In case IE itself is the problem: I'm using IE 7.0 (tabbed "sessions"). It has a Yahoo toolbar installed. I bring up the page that I'm monitoring, and status bar messages flash by as it loads. When I move the mouse over the links I'm concerned with, the link information does show in the status bar. These are the messages I need to capture, parse, and work with.
I used Borge's PBWinSpy to verify that the IE status bar is visible, and WinSpy reports its class, handle and ID. Indeed, it is identified as: msctls_statusbar32
If WinSpy can see the status bar in IE, why can't the code by Pierre? I've looked it over (to the best of my abilities), but I see no problems...
(I have little experience programming controls this way, so I'm floundering.)
I can only guess if there's an Operating System limitation on being able to access controls??
I know Pierre is a much more experienced programmer than I am, so I'm assuming I've messed something up, perhaps in my IDE? What should I be looking for? (And I'll pre-empt MCM: yes I am looking for a different job!
You KNOW I only program occasionally...)
Thanks,
-John
With reference to code provided by Pierre Bellisle in this post:
http://www.powerbasic.com/support/pb...1&postcount=12
I have a new need for this code, but I have not had success with it. I'm on Win XP Pro SP3, and have tried both PBWin 8 and PBWin 9.
To track down what the code is doing, I inserted calls to write a log file with the enumerated classes, windows, and controls.
Pierre's code locates IE, but the only controls it finds are:
BrowserFrameGripperClass
CommandBarClass
WorkerW
TabWindowClass
InternetToolbarHost
It never finds the status bar control; always declines to execute the line:
Code:
If LCase$(zClass) = "msctls_statusbar32" Then
I used Borge's PBWinSpy to verify that the IE status bar is visible, and WinSpy reports its class, handle and ID. Indeed, it is identified as: msctls_statusbar32
If WinSpy can see the status bar in IE, why can't the code by Pierre? I've looked it over (to the best of my abilities), but I see no problems...
(I have little experience programming controls this way, so I'm floundering.)
I can only guess if there's an Operating System limitation on being able to access controls??
I know Pierre is a much more experienced programmer than I am, so I'm assuming I've messed something up, perhaps in my IDE? What should I be looking for? (And I'll pre-empt MCM: yes I am looking for a different job!

Thanks,
-John
Comment