Jump to content

A Better Approach


Guest rathore
 Share

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...