Hi everyone!
First off, I'm a real newbie to scripting, so please forgive any mistakes I make.
Anyways, I discovered AutoHotkey about a week ago, and put it on my home computer. Trouble is, most of my work is on multiple computers (I find myself hitting the hotkeys for my home pc, and when it doesn't work, I get sad).
So I tried to make AHK portable...and all I really need is for it to open up my folders
(eg: #f::Run L:\School\AP Biology\)
However, when I go to another computer, it says "blah blah cannot find etc."
Code:
; My Scripts (mribeiro)
; --------------------------------------------------------------------------
; Minimize
!F2:: WinMinimize, A
; Maximize/Restore
!F3::
WinGet MX, MinMax, A
If MX
WinRestore A
Else WinMaximize A
return
; Window Always on Top
#q::Winset, Alwaysontop, , A
; CapsLock Alt-Tab
#InstallKeybdHook
#Persistent
#HotkeyInterval,100
CapsLock::
{
send,{lalt down}{tab}
sleep 10
send, {lalt up}
Return
}
; Portable
; HOTKEYS QUICK REFERENCE
; --------------------------------------------------------------------------
; ! Alt
; ^ Ctrl
; + Shift
; # Winkey
; PATHS IN THE KEYDRIVE
; --------------------------------------------------------------------------
; PROGRAMS DIRECTORY X:\Storage\Apps
; SAMPLE PROGRAM PATH X:\Storage\Apps\FirefoxPortable\FirefoxPortable.exe
; AUTOHOTKEY ENGINE X:\Storage\Apps\AutoHotkey\AutoHotkey.exe
; AUTOHOTKEY SCRIPT X:\Storage\Apps\AutoHotkey\mribeiro-portable.ahk
; DOCUMENTS DIRECTORY X:\School
; EXTERNAL SCRIPTS TO INCLUDE
; --------------------------------------------------------------------------
; A file with many long scripts and threads can be difficult to maintain.
; You can save long scripts as separate ahk files in the same directory
; as the main script, and call them by means of the directive #Include.
#Include %A_ScriptDir%
#Include WindowManipulation.ahk
; RUN USB APPLICATIONS
; --------------------------------------------------------------------------
; Paths below are relative to the directory of the script, (see variable
; %A% at the top). The string in the second parameter of Run is the working
; directory. Not all programs need this, but some do. Include it to be safe.
#z::Run, L:\Storage\Apps\FirefoxPortable\FirefoxPortable.exe
; OPEN A DIRECTORY IN THE USB Drive
; --------------------------------------------------------------------------
#f::Run, L:\School ; Open X:\School in default file manager.
(BTW I copied part of this script:
http://kikizas.net/en/usbapps.ahk.html)
Is there anything I can do to make it work?
Please help
Thanks