Hey guys, first off, the script:
Ok, when I run it, for the life of me, I either screw up the hash itself, or can't recall the key cause it cant convert the string to an integer, in this case, 0x13. Furthermore, is it possibly an error with the I's in the Win32API?
Thanks
Code:
#==============================================================================#
# Script: Keyboard Input #
#------------------------------------------------------------------------------#
# Author: Zanifer #
# Version: 1.0 #
#==============================================================================#
module Input
Keyboard = {}
Keyboard["Pause"] = 0x13
module_function
def Triggered?(Keyboard.keys)
Win32API.new("user32","GetAsyncKeyState",['I'],'I').call(Keyboard.keys)
end
end
if Input.Triggered?('Pause')
p 'Hello World!'
end
Ok, when I run it, for the life of me, I either screw up the hash itself, or can't recall the key cause it cant convert the string to an integer, in this case, 0x13. Furthermore, is it possibly an error with the I's in the Win32API?
Thanks