Python Carbon.Evt() Examples
The following are 17
code examples of Carbon.Evt().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
Carbon
, or try the search function
.
Example #1
Source File: getch.py From wfuzz with GNU General Public License v2.0 | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #2
Source File: getch.py From douban.fm with MIT License | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #3
Source File: console.py From Carnets with BSD 3-Clause "New" or "Revised" License | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #4
Source File: getch.py From EasY_HaCk with Apache License 2.0 | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #5
Source File: getch.py From POC-EXP with GNU General Public License v3.0 | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #6
Source File: getch.py From rshell with MIT License | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0]==0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #7
Source File: getch.py From NoobSec-Toolkit with GNU General Public License v2.0 | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #8
Source File: getch.py From NoobSec-Toolkit with GNU General Public License v2.0 | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #9
Source File: getch.py From MellPlayer with MIT License | 6 votes |
def __call__(self): import Carbon if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask return '' else: # # The event contains the following info: # (what,msg,when,where,mod)=Carbon.Evt.GetNextEvent(0x0008)[1] # # The message (msg) contains the ASCII char which is # extracted with the 0x000000FF charCodeMask; this # number is converted to an ASCII character with chr() and # returned # (what, msg, when, where, mod) = Carbon.Evt.GetNextEvent(0x0008)[1] return chr(msg & 0x000000FF)
Example #10
Source File: getch.py From rshell with MIT License | 5 votes |
def __init__(self): import Carbon Carbon.Evt #see if it has this (in Unix, it doesn't)
Example #11
Source File: getch.py From MellPlayer with MIT License | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)
Example #12
Source File: getch.py From POC-EXP with GNU General Public License v3.0 | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)
Example #13
Source File: getch.py From NoobSec-Toolkit with GNU General Public License v2.0 | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)
Example #14
Source File: getch.py From EasY_HaCk with Apache License 2.0 | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)
Example #15
Source File: console.py From Carnets with BSD 3-Clause "New" or "Revised" License | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)
Example #16
Source File: getch.py From NoobSec-Toolkit with GNU General Public License v2.0 | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)
Example #17
Source File: getch.py From douban.fm with MIT License | 5 votes |
def __init__(self): import Carbon Carbon.Evt # see if it has this (in Unix, it doesn't)