Skip to content

bamchoh/mruby-mouse-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-mouse-emulator

This is the application that emulates mouse on windows.

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'bamchoh/mruby-mouse-emulator'
    conf.gem :github => 'bamchoh/mruby-sleep', :branch => 'support-float-value'
end

example

offset = 500
radius = 250
360.times do |i|
  x = radius * Math.cos(i / 180 * Math::PI) + offset
  y = radius * Math.sin(i / 180 * Math::PI) + offset

  Mouse.move_to(x,y)
  sleep(0.01)
end

License

under the MIT License:

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published