转载

ida 设置颜色

#---------------------------------------------------------------------
# Colour test
#
# This script demonstrates the usage of background colours.
#
# Author: Gergely Erdelyi <[email protected]>
#---------------------------------------------------------------------
 
# Set the colour of the current segment to BLUE
SetColor(here(), CIC_SEGM, 0xc02020)
# Set the colour of the current function to GREEN
SetColor(here(), CIC_FUNC, 0x208020)
# Set the colour of the current item to RED
SetColor(here(), CIC_ITEM, 0x2020c0)
# Print the colours just set
print "%x" % GetColor(here(), CIC_SEGM)
print "%x" % GetColor(here(), CIC_FUNC)
print "%x" % GetColor(here(), CIC_ITEM)
Python>help(SetColor)
Help on function SetColor in module idc_bc695:

SetColor(ea, what, color)
SetColor(here(), CIC_ITEM, 0xc02020)
SetColor(here(), CIC_SEGM,0x208020)
SetColor(here(), CIC_FUNC,0x2020c0)

ida 设置颜色
ida 设置颜色

Python>SetColor(here(), 4, 0xc02020)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "E:\ida7\IDA 7.0\python\idc_bc695.py", line 418, in SetColor
    def SetColor(ea, what, color): return set_color(ea, what, color)
  File "E:\ida7\IDA 7.0\python\idc.py", line 8199, in set_color
    raise ValueError, "'what' must be one of CIC_ITEM, CIC_FUNC and CIC_SEGM"
ValueError: 'what' must be one of CIC_ITEM, CIC_FUNC and CIC_SEGM

相关文章:

  • 2021-11-08
  • 2021-06-17
  • 2021-12-07
  • 2021-12-14
  • 2022-02-03
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-07-02
  • 2021-07-20
  • 2021-08-29
相关资源
相似解决方案