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

World: r3wp

[Windows/COM Support]

Graham
17-Sep-2006
[352]
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?
james_nak
27-Oct-2007
[380]
Does anyone have an example of how to pop-up a little window in the 
Window's system tray? I've seen the system tray examples but I want 
to create a "reminder" like when Outlook does when gets a new email, 
etc.
Henrik
28-Oct-2007
[381]
I've seen one in Graham's Synapse.
Graham
28-Oct-2007
[382x2]
that was Gabriele's and Allen's popup ... but it's rather Cpu intensive
Look at the announce.r script here http://trac.geekisp.com/synapse/browser
james_nak
28-Oct-2007
[384]
Ah thanks. I saw your name mentioned Graham in the examples. Thanks 
Y'all.
james_nak
22-Feb-2008
[385]
Anton, it looks like you have done some work with interfacing with 
Outlook. I'm trying to create an appointment invitation function. 
Does your com lib do that? By the way, the old link seems down. Thanks 
in advance
Anton
22-Feb-2008
[386x2]
This link?
http://anton.wildit.net.au/rebol/os/windows/COMLib/
It seems to be up and working for me at this time.
Create an appointment - I don't know if it can. The answer is... 
probably. COMLib is just a wrapper for COM, so if COM can do it, 
then there's a good chance that COMLib can do it too. I'm not on 
Windows any more so it's less likely that I'll test it, but I can 
still do so.
james_nak
26-Feb-2008
[388]
Thanks Anton.
Anton
1-Mar-2008
[389]
You're welcome, James.
GiuseppeC
3-Mar-2008
[390]
Added to REBOL2 Projects on DocBase.
Graham
3-Jun-2008
[391x5]
Anton, can you see anything wrong with this ... crashes Rebol

rebol []


; download the skype4com dll from https://developer.skype.com/Docs/Skype4COM/Start
; and register the library
; regsvr32 skype4com.dll

; example of using sms
; https://developer.skype.com/Docs/Skype4COMLib/Sms_vbs

COMlib: do %comlib.r
COMlib/initialize

do bind [
	oSkype: CreateObject "Skype4COM.Skype" 

 oSMS: GetObject [ oSkype ".SendSms( %s, %s)" "+12345679" "Hello!" 
 ]

] COMlib/api

This should send a SMS using the Skype installed on your PC.
However, the getObject will invariably crash Rebol on Vista.
On Windows 2K, a SMS is sent, but it's just garbage
You shouldn't need to register the skype4com.dll as it is normally 
registered with Skype.
Using %S expects a unicode string
Dockimbel
3-Jun-2008
[396]
Try by putting a null character at the end of all strings passed 
to the COMlib ?
Graham
3-Jun-2008
[397x4]
I wondered about that ...
Curiously Anton's examples sending normal strings to MS Word and 
Excel work fine.
are null terminated strings like this

+12345679^(00)
 "Hello!(^(00)"
or
+12345679^(null)
 "Hello!^(null)"

?
or is it #"^@"  ?
Anton
3-Jun-2008
[401]
Each of those way of writing null char are equivalent.