Projects STRLCPY aardwolf Commits ae767cad
🤬
  • ■ ■ ■ ■ ■ ■
    aardwolf/connection.py
    skipped 132 lines
    133 133   'VK_SCROLL' : 70,
    134 134   'VK_NUMLOCK' : 69,
    135 135   'VK_CAPITAL' : 58,
    136  - 'VK_PAUSE' : 57629,
     136 + 'VK_RCONTROL' : 57629,
    137 137   'VK_MULTIPLY' : 55,
    138 138   'VK_ADD' : 78,
    139 139   'VK_SUBTRACT' : 74,
    140 140   'VK_DIVIDE' : 57397,
    141 141   'VK_SNAPSHOT' : 84,
    142  - 'VK_RCONTROL' : 57373,
     142 + #'VK_RCONTROL' : 57373,
     143 + #'VK_PAUSE' : 57629,
    143 144   'VK_RMENU' : 57400,
    144 145   #'VK_DBE_NOCODEINPUT': 98, # except on KLID: 00000412 (ko)
    145 146   #'VK_DECIMAL' not found anywhere?
    skipped 916 lines
    1062 1063   if vk in self.__vk_to_sc:
    1063 1064   scancode = self.__vk_to_sc[vk]
    1064 1065   is_extended = True
    1065  - print('EXT')
    1066 1066   else:
    1067 1067   scancode = scancode_hint
    1068 1068   return await self.send_key_scancode(scancode, is_pressed, is_extended)
    skipped 137 lines
    1206 1206   return
    1207 1207   if indata.type == RDPDATATYPE.KEYSCAN:
    1208 1208   indata = cast(RDP_KEYBOARD_SCANCODE, indata)
     1209 + #right side control, altgr, and pause buttons still dont work well...
     1210 + #if indata.keyCode in [97]:
     1211 + # await self.send_key_virtualkey('VK_RCONTROL', indata.is_pressed, indata.is_extended, scancode_hint=indata.keyCode)
    1209 1212   if indata.vk_code is not None:
    1210 1213   await self.send_key_virtualkey(indata.vk_code, indata.is_pressed, indata.is_extended, scancode_hint=indata.keyCode)
    1211 1214   else:
    skipped 109 lines
  • ■ ■ ■ ■ ■ ■
    aardwolf/examples/aardpclient.py
    skipped 283 lines
    284 284   self._label_imageDisplay.setMinimumSize(1,1)
    285 285   self._label_imageDisplay.show()
    286 286  
     287 + ## this is for testing!
    287 288   #def keyevent_to_string(self, event):
    288 289   # keymap = {}
    289 290   # for key, value in vars(Qt).items():
    skipped 52 lines
    342 343   if e.key() in self.__extended_rdp_keys.keys():
    343 344   ki.vk_code = self.__extended_rdp_keys[e.key()]
    344 345   
    345  - print('SCANCODE: %s' % ki.keyCode)
    346  - print('VK CODE : %s' % ki.vk_code)
     346 + #print('SCANCODE: %s' % ki.keyCode)
     347 + #print('VK CODE : %s' % ki.vk_code)
     348 + #print('TEXT : %s' % repr(e.text()))
    347 349   self.in_q.put(ki)
    348 350   
    349 351   def send_mouse(self, e, is_pressed, is_hover = False):
    skipped 76 lines
  • ■ ■ ■ ■ ■ ■
    aardwolf/vncconnection.py
    skipped 374 lines
    375 375   try:
    376 376   if vk is None:
    377 377   return await self.send_key_scancode(scancode_hint, is_pressed, is_extended, modifiers=modifiers)
    378  - print('Got VK: %s' % vk)
    379  - if vk is None:
    380  - print('Could not map SC to VK! SC: %s' % scancode_hint)
    381  - if vk is not None and vk in self.__vk_to_vnckey:
     378 + #print('Got VK: %s' % vk)
     379 + if vk in self.__vk_to_vnckey:
    382 380   keycode = self.__vk_to_vnckey[vk]
    383  - print('AAAAAAAA %s' % hex(keycode))
    384  - if keycode is None:
    385  - return await self.send_key_scancode(scancode_hint, is_pressed, is_extended, modifiers=modifiers)
     381 + return await self.send_key_char(keycode, is_pressed)
    386 382   else:
    387  - return await self.send_key_char(keycode, is_pressed)
     383 + return await self.send_key_scancode(scancode_hint, is_pressed, is_extended, modifiers=modifiers)
    388 384   except Exception as e:
    389 385   traceback.print_exc()
    390 386   return None, e
    skipped 438 lines
Please wait...
Page is in error, reload to recover