Last active
September 18, 2020 07:14
-
-
Save w4kfu/1c1c636b568143469a615f156ac44cce to your computer and use it in GitHub Desktop.
Clear IDA output window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_ida69(): | |
major, minor = map(int, idaapi.get_kernel_version().split(".")) | |
return (major == 6 and minor >= 9) | |
def clear_output_window(): | |
# IDA 6.9 drop PySide in favor of PyQt5 | |
if is_ida69(): | |
from PyQt5 import QtGui, QtCore, QtWidgets | |
form = idaapi.find_tform("Output window") | |
w = idaapi.PluginForm.FormToPyQtWidget(form) | |
w.setFocus() | |
else: | |
from PySide import QtGui, QtCore | |
form = idaapi.find_tform("Output window") | |
w = idaapi.PluginForm.FormToPySideWidget(form) | |
w.setFocus() | |
idaapi.process_ui_action("msglist:Clear") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment