Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'au3'
- require 'win32ole'
- MOVE = WIN32OLE.new("AutoItX3.Control")
- require 'Win32API'
- def getchar
- char = Win32API.new("crtdll", "_getch", [], 'L').call
- if char == 27 # ESC key
- exit
- end
- end
- i = 0
- loop do
- print "#{i+=1}, "
- getchar
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement