Advertisement
Guest User

Untitled

a guest
Jan 12th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. require 'au3'
  2. require 'win32ole'
  3. MOVE = WIN32OLE.new("AutoItX3.Control")
  4. require 'Win32API'
  5.  
  6.  
  7. def getchar
  8. char = Win32API.new("crtdll", "_getch", [], 'L').call
  9. if char == 27 # ESC key
  10. exit
  11. end
  12. end
  13.  
  14. i = 0
  15. loop do
  16. print "#{i+=1}, "
  17. getchar
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement