Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Portable AHK & AHKL custom .bat installer


  • Please log in to reply
17 replies to this topic
Zedcars
  • Members
  • 13 posts
  • Last active: Aug 25 2012 06:25 AM
  • Joined: 25 Aug 2012
Hi there,

I was wondering whether you could update the download links as they are dead?

This is exactly what I've been looking for.

noname
  • Members
  • 650 posts
  • Last active:
  • Joined: 12 Nov 2011
From the copy i have and use:


install_ahk.bat

@echo off
setlocal ENABLEEXTENSIONS

::===== SETUP ======================================

set PSTR=AutoHotKey
set PEXT=.ahk
set PEXE=%CD%\AutoHotkey.exe
set PIDIR=%CD%
set PICON=AutoHotKey.exe, 0

::==================================================
echo PIDIR: %PIDIR%
cls
echo %PSTR%
echo.
echo This will install %PSTR% handler in your system.
echo Press any key to continue or ^<Ctrl+C^> to stop installation.
echo.
pause >nul

echo. & echo. & echo.
echo Setting file association:
assoc %PEXT%=%PSTR%
echo.

echo Setting extension handler:
ftype %PSTR%="%PEXE%" "%%1" %%*
echo.

echo Setting file icon: %PICON%

echo Windows Registry Editor Version 5.00	 >set_icon.reg
echo [HKEY_CLASSES_ROOT\%PSTR%\DefaultIcon]	 >>set_icon.reg
echo @="%PIDIR:\=\\%\\%PICON%"				 >>set_icon.reg

regedit /s set_icon.reg
erase set_icon.reg


echo. & echo. & echo. & echo.
echo Installation complete.
echo Press any key to exit.
pause >nul
echo.&echo Created by majkinetor.
ping -n 2 127.0.0.1 >nul
exit


install_ahkl.bat



@echo off
setlocal ENABLEEXTENSIONS

::===== SETUP ======================================

set PSTR=AutoHotKey_L
set PEXT=.ahkl
set PEXE=%CD%\AutoHotkey.exe
set PIDIR=%CD%
set PICON=AutoHotKey.exe, 0

::==================================================
echo PIDIR: %PIDIR%
cls
echo %PSTR%
echo.
echo This will install %PSTR% handler in your system.
echo Press any key to continue or ^ to stop installation.
echo.
pause >nul

echo. & echo. & echo.
echo Setting file association:
assoc %PEXT%=%PSTR%
echo.

echo Setting extension handler:
ftype %PSTR%="%PEXE%" "%%1" %%*
echo.

echo Setting file icon: %PICON%

echo Windows Registry Editor Version 5.00 >set_icon.reg
echo [HKEY_CLASSES_ROOT\%PSTR%\DefaultIcon] >>set_icon.reg
echo @="%PIDIR:\=\\%\\%PICON%" >>set_icon.reg

regedit /s set_icon.reg
erase set_icon.reg


echo. & echo. & echo. & echo.
echo Installation complete.
echo Press any key to exit.
pause >nul
echo.&echo Created by majkinetor.
ping -n 2 127.0.0.1 >nul
exit

winXP  and ahk unicode


SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
Thanks kaiba :)
kWo4Lk1.png