PB嵌入webkitx支持F12调试模式

 

//============================================================
// 事件: vu_emr_hiemr_webkitx::onkeypress()
//------------------------------------------------------------
// 版本: BS-EMR5.6 SP3持续改进->BS病历适配
//------------------------------------------------------------
// 描述: 快捷键功能处理:比如打开调试工具和刷新当前页面等功能每个页面都会用到
//------------------------------------------------------------
// 参数:
// value long modifiers
// value long windowskeycode
//------------------------------------------------------------
// 返回: (None)
//------------------------------------------------------------
// 作者: 日期: 2022-07-20 09:38
//============================================================

long ll_keycode,ll_modifiers
ll_keycode = windowskeycode
ll_modifiers = modifiers
// and ll_modifiers = 12
choose case true
//F12打开浏览器调试工具
case ll_keycode = 123
//============================================================
// Script: vu_emr_hiemr_webkitx::onkeypress()事件
// Reason: BS-EMR5.6 SP3持续改进->webkitx版本升级兼容,升级到V4 15752版本后参数改变了
// Modified By: lizh Date: 2023-06-01 22:10
//------------------------------------------------------------
//this.showdevtools(0)
try
this.showdevtools(0)
catch (oleruntimeerror ex)
try
this.uo_web4.webkitx.object.showdevtools(0,0,0)
catch (oleruntimeerror ext)
messagebox("提示","无法打开开发者工具")
end try
end try
//============================================================

//F11自定义调试处理
case ll_keycode = 122
this.event ue_debug()
//F5刷新页面
case ll_keycode = 116
this.reload(1)
end choose

侵权联系删除!


已有 0 条评论

    欢迎您,新朋友,感谢参与互动!