R
Robert Batzinger
I have been trying to use the win32ole module on Vista. However, the
AppActivate method always fails regardless of whether simple or
root-relative address are used in the following program. The module
appears to be working well on all other versions of Windows. Does
anyone know the fix to this?
require 'win32ole'
wsh = WIN32OLE.new('Wscript.Shell')
if wsh.AppActivate('notepad')
print 'Success'
else
print 'Fail'
end
BTW Just typing the word notepad works at the DOS prompt and the
WIN32OLE does open the OLE object
================
Bob Batzinger
Arkfriends
South Bend, Indiana
AppActivate method always fails regardless of whether simple or
root-relative address are used in the following program. The module
appears to be working well on all other versions of Windows. Does
anyone know the fix to this?
require 'win32ole'
wsh = WIN32OLE.new('Wscript.Shell')
if wsh.AppActivate('notepad')
print 'Success'
else
print 'Fail'
end
BTW Just typing the word notepad works at the DOS prompt and the
WIN32OLE does open the OLE object
================
Bob Batzinger
Arkfriends
South Bend, Indiana