I'm writing an IDC script which accepts a structure and does some processing. Currently, I have to call it by typing structure names. What I want is to make it use the structure under cursor in "Structures" window so I can save a lot of typing. Is there any way to do this?
ScreenEA(). It returns the address in "Disassembly" window instead of a structure id.
IDAPython code is also acceptable.