最近研究cef,想用hook的方式,通过按键 F12 调取出DevTools,最后发现

查看 25|回复 2
作者:fuckphper   
最近研究cef,想用hook的方式,通过按键 F12 调取出DevTools,最后发现,调试日志输出都是正确的,但是调试窗口确怎么也出不了,请问大哥们,这一般是哪里的问题呢?
钉钉版本[i]
以下为调试输出的日志:
00000060        23.97530556        [26004] [detours] DLL_PROCESS_ATTACH        
00000061        23.97532082        [26004] [detours] InstallHook         
00000062        23.97541046        [26004] [detours] Found cef_browser_host_create_browser        
00000063        23.97546959        [26004] [detours] DetourTransactionCommit succeeded        
00000096        57.08570862        [26004] [detours] hook_cef_browser_host_create_browser         
00000097        57.08591843        [26004] [detours] Modifying get_keyboard_handler        
00000110        57.09153366        [26004] [detours] hook_cef_browser_host_create_browser         
00000111        57.09154510        [26004] [detours] Modifying get_keyboard_handler        
00000125        57.23833466        [26004] [detours] hook_cef_browser_host_create_browser         
00000126        57.23834991        [26004] [detours] Modifying get_keyboard_handler        
00000146        57.59994888        [26004] [detours] hook_cef_browser_host_create_browser         
00000147        57.59996033        [26004] [detours] Modifying get_keyboard_handler        
00000167        57.87770081        [26004] [detours] hook_cef_browser_host_create_browser         
00000168        57.87776184        [26004] [detours] Modifying get_keyboard_handler        
00000282        98.26816559        [26004] [detours] hook_cef_get_keyboard_handler         
00000283        98.27184296        [26004] [detours] hook_cef_get_keyboard_handler         
00000284        98.27185059        [26004] [detours] hook_cef_on_key_event         
00000285        98.27186584        [26004] [detours] F12 key pressed        
00000286        98.27188110        [26004] [detours] Calling show_dev_tools        
00000287        98.27188873        [26004] [detours] windowInfo: x = 200, y = 200, width = 1024, height = 768        
00000288        98.40160370        [26004] [detours] hook_cef_get_keyboard_handler         
00000289        98.40203094        [26004] [detours] hook_cef_get_keyboard_handler         
00000290        98.40203857        [26004] [detours] hook_cef_on_key_event         

想用, 按键

僅此而已。   

F12 只是浏览器的快捷键,这里并不是打开devtools 的快捷键
fuckphper
OP
  


僅此而已。 发表于 2025-6-11 16:41
F12 只是浏览器的快捷键,这里并不是打开devtools 的快捷键

我是hook 代码里,调用了按F12 启动devtools  调试窗口,调试日志也输出成功了,但是目前窗口没出现
您需要登录后才可以回帖 登录 | 立即注册

返回顶部