AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Decompile (Exe2Ahk) option in Explorer context menu

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Serenity



Joined: 08 Nov 2004
Posts: 978

PostPosted: Tue Dec 20, 2005 12:02 am    Post subject: Decompile (Exe2Ahk) option in Explorer context menu Reply with quote

Here's a registry key that allows you to decompile an .exe with Exe2Ahk via the Explorer context menu. The key installs at HKEY_CLASSES_ROOT\exefile so it will only show in the menu for .exe files. You will need to download Exe2Ahk and modify the path to the executable in order for this to work.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\decompile]
@="Decompile (Exe2Ahk)"

[HKEY_CLASSES_ROOT\exefile\shell\decompile\command]
@="\"x:\\AutoHotkey\\Exe2Ahk.exe\" \"%1\""

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
BluEyedCollegeGuy
Guest





PostPosted: Sun Mar 04, 2007 11:33 am    Post subject: Regkey Reply with quote

Thank you very much for the code bit. It works beautifully.

You might want to tell people that the registry key you created will only work on Windows XP or 2000. If they take your code snippet, save it as a .reg file then double click it, the registry is automatically updated. (Change the filepath from x to whatever first).

If you want this code to work on Windows NT, you need to change the code "Windows Registry Editor Version 5.00" to "REGEDIT4".
Back to top
AHKnow*
Guest





PostPosted: Mon Mar 05, 2007 1:19 am    Post subject: Reply with quote

This is great.

Should be considered as a possible option in the official AutoHotkey package.
Back to top
Guest






PostPosted: Thu Nov 08, 2007 3:38 pm    Post subject: Reply with quote

I passworded my AHK file is there a way to add a password to this?
Back to top
DHMH
Guest





PostPosted: Sat Mar 29, 2008 3:25 pm    Post subject: Decompile in context menu WITH password Reply with quote

Yes! (my english isnīt good, so donīt worry about it! Very Happy )
Just create a registry file with this content:
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\decompile]
@="Decompile (Exe2Ahk)"

[HKEY_CLASSES_ROOT\exefile\shell\decompile\command]
@="\"c:\\Program Files\\AutoHotkey\\Exe2Ahk_gui.exe\" \"%1\""


Import it.
Now create another new file (an ahk script!!!) with this content:
Code:
InputBox, password, Enter Password, (Leave this field blank if you donīt set a password), hide
runwait, "%A_ScriptDir%\exe2ahk.exe", %1% %password%
ExitApp

Compile it and rename it to exe2ahk_gui.exe!
Now you can choose from the context menu of an exe file "Decompile (Exe2Ahk)! Very Happy [/quote]
Back to top
guest123
Guest





PostPosted: Wed May 07, 2008 12:12 am    Post subject: what if Reply with quote

I receive a windoze "access is denied" error every time I try to use this decompile tool, even on non password protected .exes created by myself?

I really need to get this to work, a guy who used to work for our company created a very useful AHK macro with a GUI over several weeks, now we need to make minor alterations to it and we can't turn it into an AHK!

Say if I cant get this to work I really will need some help making a new macro tool to copy and paste lists of names and dates of birth! It was just copy and paste - tab to next field and repeat, but I have never used AHK until two days ago!

At least the "steal GUI" tool worked for me, now I just have to assign commands to buttons...somehow. Unless I can get decompile to work.


Sorry for going off topic....help?
Back to top
SMOKE 1990



Joined: 12 Feb 2008
Posts: 50

PostPosted: Sun Jul 20, 2008 6:59 pm    Post subject: Reply with quote

I dont understand how to make this work. I am not that very computer literate and am learning AHK and lost my source but still have the exe. How do i use this to decompile it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group