r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Windows/COM Support]

Graham
11-Aug-2006
[330]
Anton, is this the third website you've shifted to?
Anton
11-Aug-2006
[331]
Fourth. This time, I didn't receive any notification, so it was unexpected.
Anton
12-Aug-2006
[332]
Just checked out IBprovider, as linked to by Graham, above. I've 
decided not to investigate more of it at this stage. Too much complication 
for me :) I have plenty to do already :) If someone is going to use 
it, that may change things, but I can't just go around investigating 
all the possible OLE applications this COMLib allows you to connect 
to.   (Mmmm.... maybe I'm just not big on databases. It doesn't make 
my blood pulse any faster.)
Graham
17-Sep-2006
[333x3]
There was a video link posted on the mailing list to chickenfoot 
.. which allows you to script Firefox.
Is there any way of controlling Firefox using Com?  Or, do we have 
to use XPCOM ?
Any other ways for Rebol to control Firefox .. browser plugin ??
Anton
17-Sep-2006
[336]
I had a look at XPCOM, which is supposed to be similar to COM (achieves 
much the same thing). I was overwhelmed by its complexity. I would 
only go there if I could contact some XPCOM experts.
Graham
17-Sep-2006
[337]
Pretty cool though to script firefox .. so that you remove ads from 
your favourite pages
Anton
17-Sep-2006
[338]
Is that what you want to do ? Because I just use Privoxy (a web proxy) 
to filter out the ads.
Graham
17-Sep-2006
[339x7]
the video shows the guy being able to script firefox to pickup a 
report from his online banking site.
No, not really.
I want to be able to go to websites, feed data to forms and fill 
them out and then grab the results .. where the forms are generated 
dynamically in javascript
Which makes it tricky to do using Rebol.
here's a page http://www.drugdigest.org/DD/Interaction/ChooseDrugs
I would like to be able to send the drugs to this form for checking 
for interactions.
But I have to put the drug in the top field, search, select the highlighted 
item in the list, move it to the right list and repeat till done 
.. then check interactions.
PeterWood
17-Sep-2006
[346]
If you know the names of the drugs in the system can't you just generate 
the html/get?


http://www.drugdigest.org/DD/Interaction/InteractionResults?drug=&drugList=551938&cD=6355&cD=551938&dN=%2220%2F20+Tears%22+%223-beta%2C5-alpha-stigmastan-3-ol%22+&CheckFDA=1
Graham
17-Sep-2006
[347x2]
But .. you see there are codes in there.
Oh well.. I'm getting numerous errors running chickenfoot anyway.
PeterWood
17-Sep-2006
[349]
It seems to work without the codes, I tried this :


http://www.drugdigest.org/DD/Interaction/InteractionResults?drug=&dN=%2220%2F20+Tears%22+%223-beta%2C5-alpha-stigmastan-3-ol%22+&CheckFDA=1
Anton
17-Sep-2006
[350]
The chickenfoot video:

http://video.google.com/videoplay?docid=-8967914974980683249&q=type%3Agoogle+engEDU
Graham
17-Sep-2006
[351x2]
I shall try again!  I did try this before and got server errors generated.
Ahh.. it appears to work .. but it does not.
PeterWood
17-Sep-2006
[353]
I took a look at the page source, it seems to simply search the scrollable 
list titled search results, it doesn't appear to go back to the server.
Graham
17-Sep-2006
[354x2]
It shows the text of the drugs you entered .. but not the correct 
drug interaction.
so, you reckon it's easily scriptable?
PeterWood
17-Sep-2006
[356]
No
Graham
17-Sep-2006
[357]
:)
PeterWood
17-Sep-2006
[358x2]
I think it would take a little time to understand what the JavaScript 
is doing.
...but it may be possible to extract the drug list by processing 
the HTML ...once you understand what is loading into the "chooser"
Graham
17-Sep-2006
[360]
Ok.
PeterWood
17-Sep-2006
[361]
The drug list is in the HTML:


<select name="drugList" id="drugList" size="8" style="width:280px; 
font-family: verdana; font-size:10pt;" onDblClick="addDrugToList();">
					
					

<option value="4055" title="2-Amino-2-Deoxyglucose">2-Amino-2-Deoxyglucose</option> 
<option.....
Graham
17-Sep-2006
[362]
So, those option values are being included in the http get.
Benjamin
12-Jan-2007
[363]
I've seen the resent updates to comlib, great job Anton ! keep it 
up !, 2006 was crazy i've to switch bands an now im working in a 
unix enviroment, im only migrating bash scripts to rebol :)
Graham
13-Jan-2007
[364]
Glad to see you back here Benjamin!
Anton
14-Jan-2007
[365]
Oh wow ! You're back ! I wondered where you went. :)   "switch bands" 
 Do you mean you started work at a new company, which uses only unix 
? Hooray ! So now comlib is needed by one less person ! :)
Anton
9-Mar-2007
[366x2]
COMLib has been updated:

Backwards compatibility fixes in the main rebol interface file, COMLib.r
http://anton.wildit.net.au/rebol/os/windows/COMLib/
This is in response to Philippe Legoff in RebolTalk
http://www.reboltalk.com/forum/index.php/topic,335.0.html
Maxim
9-Mar-2007
[368x2]
anton, can this be used to embed MS IE into a view app?
even if slow...
Anton
9-Mar-2007
[370]
Umm... don't know.
Maxim
9-Mar-2007
[371x2]
what do you use the com lib for?
I'm just curious.
Anton
9-Mar-2007
[373]
Check out the demos on the website.
Maxim
9-Mar-2007
[374]
hum interesting.
Anton
9-Mar-2007
[375]
Hopefully, since it is a wrapper for COM, you should be able to do 
anything that COM allows you to do. So the answers to all these types 
of questions are to be found by researching COM land (which I myself 
am not very familiar with).
Maxim
9-Mar-2007
[376x2]
ok... I know that you can use com to get a text version of any file 
format which has a thumbnail viewer... which can be very usefull 
to read things like pdf, word, and other obscure file types....
hum... printing  :-)  that's cool.
Benjamin
23-Sep-2007
[378]
I've done that in the past, the problem when using direct API calls 
is passing pointers and stuff, remember you need to create a main 
loop to pool events  and messages, it's a pain... i've some code 
that does this, but remember that this old style is gone on vista 
gfx.
Graham
23-Sep-2007
[379]
what is it that you've done?