def ColorCompare(self):
DEBUG_PRINT( "in ColorCompare")
if self.colorsnapshot=={}:
return
else:
for ea in self.colorsnapshot.keys():
ea_currentcolor = idc.GetColor(ea,idc.CIC_ITEM)
# print 'ea ' + hex(ea) + 'pre color'+ hex(self.colorsnapshot[ea]) + ' current color' + hex(ea_currentcolor)
if self.colorsnapshot[ea] != ea_currentcolor:
if ea == self.lastnode_ea:
continue
g_ColorSnapshot.data[ea] = ea_currentcolor
# print 'different happen ' + hex (ea)
g_ColorSnapshot.Save()
# for ea in g_ColorSnapshot.data.keys():
# idc.Message( hex(ea) + ' ' )
self.colorsnapshot = {} # may not be useful
return
评论列表
文章目录