xplorer2 HACK : Convert any menu item to a toolbar button !!
Moderators: fgagnon, nikos
-
snakebyte
- Gold Member

- Posts: 430
- Joined: 2003 May 07, 07:14
- Location: Seattle
Hotkeys.txt was generated using resource hacker.
Ctrl+End is generic windows list control command. This command is not in Hotkeys.txt as it is automatically handled by list control and xplorer2 is not handling it explicitly.
You can use scripting to send any hotkey to Xplorer2. Following example uses VBScript to send Ctrl+End but you could use Autohotkey or AutoIt3 as well.
1. Create an empty text file
2. Rename the file to use .vbs extension (say C:\temp\ctrlEnd.vbs)
3. Open it in notepad and paste following code in it
4. create a user command and add it to your toolbar
> "C:\temp\ctrlEnd.vbs"
5. Pressing toolbar button created above would send Ctrl+End to your active pane.
For further Sendkey syntax reference please see http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
Ctrl+End is generic windows list control command. This command is not in Hotkeys.txt as it is automatically handled by list control and xplorer2 is not handling it explicitly.
You can use scripting to send any hotkey to Xplorer2. Following example uses VBScript to send Ctrl+End but you could use Autohotkey or AutoIt3 as well.
1. Create an empty text file
2. Rename the file to use .vbs extension (say C:\temp\ctrlEnd.vbs)
3. Open it in notepad and paste following code in it
Code: Select all
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^{END}"
> "C:\temp\ctrlEnd.vbs"
5. Pressing toolbar button created above would send Ctrl+End to your active pane.
For further Sendkey syntax reference please see http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
Help! I'm an AI running around in someone's universe simulator.
-
kizer8
- Member

- Posts: 9
- Joined: 2008 Feb 19, 13:53
-
jmaynard
- Member

- Posts: 19
- Joined: 2008 Mar 28, 20:13
-
desslok
- Bronze Member

- Posts: 167
- Joined: 2008 Jan 16, 22:10
-
snakebyte
- Gold Member

- Posts: 430
- Joined: 2003 May 07, 07:14
- Location: Seattle
I think I know the problem. MenuHack exe was compiled with older version of autoit3 which has some issues in Vista. I've uploaded a newer version of this exe (main page link updated). Let me know if this one works for you.jmaynard wrote:I can't get this to work!
>"E:\Tools\Xplorer2\MenuHack.exe" 32840 does nothing
It does nothing with other ID numbers as in the start of this thread
if I remove the 32840 then I get the dialog box (so the path is correct).
any ideas (other than remove Vista)???
thanks
Help! I'm an AI running around in someone's universe simulator.
-
jmaynard
- Member

- Posts: 19
- Joined: 2008 Mar 28, 20:13
-
snakebyte
- Gold Member

- Posts: 430
- Joined: 2003 May 07, 07:14
- Location: Seattle
-
jmaynard
- Member

- Posts: 19
- Joined: 2008 Mar 28, 20:13
-
jmaynard
- Member

- Posts: 19
- Joined: 2008 Mar 28, 20:13
-
jmaynard
- Member

- Posts: 19
- Joined: 2008 Mar 28, 20:13
-
fastlane
- Member

- Posts: 32
- Joined: 2010 May 08, 19:20
-
snakebyte
- Gold Member

- Posts: 430
- Joined: 2003 May 07, 07:14
- Location: Seattle
This is a simple command line tool which tells X2 which command to execute. I can't think of any other additions to it.
The only change that I have made was to recompile it with latest the version of AutoIt3. The link in the original post has been updated.
TheMenu_Commands.txt file has not been updated in a while. I think I will update it and also include the version number of X2 I used to generate it.
You can also get the new missing command IDs from the User Manual that Narayan/Nikos are updating with every X2 release.
The only change that I have made was to recompile it with latest the version of AutoIt3. The link in the original post has been updated.
TheMenu_Commands.txt file has not been updated in a while. I think I will update it and also include the version number of X2 I used to generate it.
You can also get the new missing command IDs from the User Manual that Narayan/Nikos are updating with every X2 release.
Help! I'm an AI running around in someone's universe simulator.
-
garp99
- New Member
- Posts: 6
- Joined: 2008 Nov 19, 10:35
This is great.
One thing I find missing for the one-click user command button is being able to do multiple steps at once,
similar to how Menu++ can handle it. The thing I don't want a new menu, just a click on 2-3 specific filters I use.
Example: Ctrl-H, *DTS*.mkv, Click ok
Can this be done with MenuHack?
One thing I find missing for the one-click user command button is being able to do multiple steps at once,
similar to how Menu++ can handle it. The thing I don't want a new menu, just a click on 2-3 specific filters I use.
Example: Ctrl-H, *DTS*.mkv, Click ok
Can this be done with MenuHack?
-
snakebyte
- Gold Member

- Posts: 430
- Joined: 2003 May 07, 07:14
- Location: Seattle
Sorry for the late reply. I don't visit this forum often.
MenuHack can only execute single X2 commands. If you want to run multiple X2 commands from toolbar, you can write a simple vbscript or autohotkey script with all the actions you want to execute. Create a user command to execute that script and then add it to your toolbar.
MenuHack can only execute single X2 commands. If you want to run multiple X2 commands from toolbar, you can write a simple vbscript or autohotkey script with all the actions you want to execute. Create a user command to execute that script and then add it to your toolbar.
Help! I'm an AI running around in someone's universe simulator.