Jump to content
Sign in to follow this  
Guest rathore

A Better Approach

Recommended Posts

Guest rathore

tested!... this is definitely a better approach

this script will install a hotkey ctrl+1 in textpad that'll run any script that's currently loaded, be it .ahk / .aut / .au3 or even .bat or .cmd.

based on info here

here's the .au3 code:

RegWrite("HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\0","Properties","REG_BINARY",'000000005680000046000000')
RegWrite("HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\0","MenuText","REG_SZ",'Run Script')
RegWrite("HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\0","Command","REG_SZ",@ComSpec)
RegWrite("HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\0","Parameters","REG_SZ",' /c start $DosFile')
RegWrite("HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\0","Folder","REG_SZ",'$FileDir')
RegWrite("HKEY_CURRENT_USER\Software\Helios\TextPad 4\Tools\0","RE","REG_SZ",'')
Edited by rathore

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.