Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Object REXX
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Windows automation === The Windows extension includes the [[Windows Script Host]] (WSH) Scripting Engine that can be used to perform general automation tasks. It also includes [[Object Linking and Embedding]]/[[ActiveX]] (OLE) support allowing to interact with Windows programs via the <code>OLEObject</code>.<ref name=":5">{{Cite book |last1=Ashley |first1=W. David |url=https://sourceforge.net/projects/oorexx/files/oorexx-docs/5.0.0/winextensions.pdf |title=ooRexx Documentation 5.0.0 Windows Extensions Reference |last2=Flatscher |first2=Rony G. |last3=Hessling |first3=Mark |last4=McGuire |first4=Rick |last5=Peedin |first5=Lee |last6=Sims |first6=Oliver |last7=Sims |first7=Oliver |last8=Wolfers |first8=Jon |publisher=RexxLA |year=2022}}</ref> [[OLE Automation]] is an [[inter-process communication]] mechanism developed by [[Microsoft]] that is based on a subset of the [[Component Object Model]] (COM). This mechanism enables, among other things, the invocation of program functions, the querying and setting of attributes and the interception of component events. The ooRexx interpreter comes with examples that demonstrate OLE interaction with [[Microsoft Access|Access]], [[Microsoft Word|Word]], [[Microsoft Excel|Excel]], [[OpenOffice (Apache)|OpenOffice]]/[[LibreOffice]], [[Active Directory|ActiveDirectory]], [[Windows Management Instrumentation|WMI]] and other programs. Furthermore, a utility program for searching available OLE objects is included.<ref name=":9" /><syntaxhighlight lang="oorexx" style="background-color: #ffffff; !important" line="1"> exc = .OLEObject~new("Excel.Application") /* create object for Excel */ exc~visible = .true /* make Excel visible */ Worksheet = exc~Workbooks~Add~Worksheets[1] /* add worksheet */ Worksheet~cells(1,1)~Value = “First Cell” /* insert string into cell */ </syntaxhighlight>In addition to OLE support, the Windows extension enables interaction with the Windows program manager, the [[Tracing (software)|system event log]], the [[Clipboard (computing)|clipboard]] and the [[Windows Registry|registry]] as well as to query, edit and interact with windows, menus or sub-menus.<ref name=":5" />
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)