5import isystem.connect
as ic
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 ideCtrl = ic.CIDEController(connMgr)
17 print(f
"Is message box hook enabled: {ideCtrl.isMsgBoxHookOn()}")
19 print(
"Enabling message box hook...")
20 ideCtrl.setMsgBoxHook(
True)
22 print(
"Setting message box hook mode to 'ic.CIDEController.HOOK_ALL`...")
23 ideCtrl.setMsgBoxHookMode(ic.CIDEController.HOOK_ALL)
24 print(f
"\tEnabled: {ideCtrl.isMsgBoxHookOn()}")
26 print(
"Disabling message box hook...")
27 ideCtrl.setMsgBoxHook(
False)
30if __name__ ==
"__main__":