Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;Icon used in the script: http://findicons.com/icon/163998/script?id=165382
- ;;Script written by BatchHacker
- ;;Usage: Insert the Code below in an "compiler.ahk" file, please make sure that you have autohotkey + the compiler installed.
- ;; Drag and drop your *.ahk Script ON the compiler.ahk(This file) it should create an .exe file.
- ;;
- IfNotExist,%A_AppData%\comp\icon.ico
- goto DLIco
- RB:
- IfNotExist,C:\Program Files (x86)\AutoHotkey\Compiler\Ahk2Exe.exe
- goto CF32
- compbinpath=C:\Program Files (x86)\AutoHotkey\Compiler\Ahk2Exe.exe
- goto Run
- CF32:
- IfNotExist,C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe
- goto NotInstalled
- compbinpath=C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe
- Run:
- run, %compbinpath% /in "%1%" /icon "%A_AppData%\comp\icon.ico"
- Return
- NotInstalled:
- MsgBox,0,Error,fast2exe,Compiler not found.
- ExitApp
- DLIco:
- FileCreateDir, %A_AppData%\comp
- UrlDownloadToFile, http://pastebin.com/raw.php?i=3dpkPJjK, %A_temp%\tmp.ini
- IniRead, ICOPath, %A_temp%\tmp.ini, Icons, ICO
- FileDelete, %A_temp%\tmp.ini
- UrlDownloadToFile, %ICOPath%, %A_AppData%\comp\icon.ico
- goto RB
Advertisement
Add Comment
Please, Sign In to add comment