steliyan
Joined: 20 Apr 2007 Posts: 31
|
Posted: Mon Sep 08, 2008 2:32 pm Post subject: #Include - unexplainable behaviour (for me) |
|
|
I have AutoHotkey v1.0.47.06. I have this lines in autohotkey.ini:
| Code: | #NoEnv
#Persistent
#NoTrayIcon
#SingleInstance Force
#Include Scripts\volume.ahk
#Include Scripts\programs.ahk
#Include Scripts\misc.ahk |
Eveything working as it's supposed, but if I include misc.ahk, before volume.ahk, volume.ahk doesn't work at all, the other 2 scripts run just fine.
Volume script is here.
Misc script:
| Code: | ;Command Prompt paste (Ctrl + V)
#IfWinActive, ahk_class ConsoleWindowClass
^v::SendInput, {RAW}%Clipboard%
#IfWinActive
;Total Commander new file
#IfWinActive, ahk_class TTOTAL_CMD
f8::Send, +{F4}
#IfWinActive
;mIRC Close Tab (Ctrl + W)
SetTitleMatchMode, 2
#IfWinActive, mIRC - [
^w::Send, ^{F4}
#IfWinActive |
And programs script look like that (don't think it has something to do with the problem):
| Code: | DetectHiddenWindows, On
SetTitleMatchMode, RegEx
SetTitleMatchMode, Fast
;Function to run program
RunProgram(Class, Path, WorkingDir = "", Exclude = "")
{
IfExist, %Path%
IfWinNotExist, ahk_class %Class%,, %Exclude%
Run, %Path%, %WorkingDir%
WinActivate
Return
}
;Total Commander (WinKey + E)
#e::RunProgram("TTOTAL_CMD", "D:\Installed\totalcmd\TOTALCMD.EXE", "D:\Installed\totalcmd\")
;Firefox (Ctrl + Alt + F)
^!f::RunProgram("MozillaUIWindowClass", "C:\Program Files\Mozilla Firefox\firefox.exe", "C:\Program Files\Mozilla Firefox\", "Downloads")
;some other programs..
;Screenshot (fullscreen) (Ctrl + Printscreen)
^printscreen::Run, D:\Installed\cap.exe /fs /cursor /f="C:\Documents and Settings\steliyan\Desktop\f_.png" /time /del="_" |
|
|