Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDA 7.0 Cann't normal use #9

Closed
ydc1992 opened this issue Sep 26, 2017 · 4 comments
Closed

IDA 7.0 Cann't normal use #9

ydc1992 opened this issue Sep 26, 2017 · 4 comments

Comments

@ydc1992
Copy link

ydc1992 commented Sep 26, 2017

output as below,SDK maybe modify, ctx is don't have form_title

Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 608, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 1063, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 1106, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 507, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 928, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 928, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 1141, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 422, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 368, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 312, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 261, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 1015, in update
if ctx.form_title[0:10] == "Pseudocode":
AttributeError: 'action_update_ctx_t' object has no attribute 'form_title'
Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/plugins\HexRaysPyTools\Actions.py", line 461, in update
idaapi.attach_action_to_popup(ctx.form, None, self.name)
AttributeError: 'action_update_ctx_t' object has no attribute 'form'

@igogo-x86
Copy link
Owner

igogo-x86 commented Sep 29, 2017

Hello! I'll fix it a little bit later.

Repository owner deleted a comment from ydc1992 Sep 29, 2017
@ydc1992
Copy link
Author

ydc1992 commented Dec 6, 2017

Hi , I find the change for IDA 7.0 API.

if ctx.form.type==ida.BWN_PSEUDOCODE:

and

idaapi.attach_action_to_pop(cxt.widget,None,self.name)

@rigmar
Copy link

rigmar commented Jan 20, 2018

Here is my fork with IDA 7.0 support. It was not tested enough and has differences from the original.
https://github.com/rigmar/HexRaysPyTools

@igogo-x86
Copy link
Owner

Now, it works for IDA 7.0 (and doesn't work for lower versions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants