#!/usr/bin/env ruby
#-- coding:cp936 --
require ctypes
dll = ctypes.WinDLL(‘user32.dll’)
dll.GetForegroundWindow()
dll.LockWorkStation()
#!/usr/bin/env ruby
#-- coding:cp936 --
require ctypes
dll = ctypes.WinDLL(‘user32.dll’)
dll.GetForegroundWindow()
dll.LockWorkStation()
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs