在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
class WIN32OLE
def list_ole_methods
method_names = ole_methods.collect {|m| m.name}
puts method_names.sort.uniq
end
end
WIN32OLE.new('Shell.Application').list_ole_methods
得到如下方法:
AddRef
AddToRecent
Application
BrowseForFolder
CanStartStopService
CascadeWindows
ControlPanelItem
EjectPC
Explore
ExplorerPolicy
FileRun
FindComputer
FindFiles
FindPrinter
GetIDsOfNames
GetSetting
GetSystemInformation
GetTypeInfo
GetTypeInfoCount
Help
Invoke
IsRestricted
IsServiceRunning
MinimizeAll
NameSpace
Open
Parent
QueryInterface
RefreshMenu
Release
ServiceStart
ServiceStop
SetTime
ShellExecute
ShowBrowserBar
ShutdownWindows
Suspend
TileHorizontally
TileVertically
ToggleDesktop
TrayProperties
UndoMinimizeALL
WindowSwitcher
Windows
WindowsSecurity
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论