 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
clang1234
Joined: 11 May 2008 Posts: 4
|
Posted: Sun May 11, 2008 1:50 pm Post subject: Error while compiling |
|
|
I have been using a set of scripts for a while now and I really like them. Today I decided to try and add some more, but I didn't find any ones that I liked.
When I went back to try and re-compile my script, I get an error which says "Error opening the destination file".
I am using the latest version of AHK. There is no other .exe file in this folder of the same name.
I've tried restarting, uninstalling and reinstalling. Any help would be appreciated because I miss my scripts. The reason I would like to have an executable is because I autostart the script with my computer, so I just load the script into my startup programs list.
I am using Windows Xp Home Service Pack 3.
And this is the script I'm trying to compile.
| Code: | #NoTrayIcon
#SingleInstance force
#KeyHistory 0
;Notepad++
#n::Run Notepad++
;Skype
#s::
IfWinExist, ahk_class tSkMainForm.UnicodeClass
{
WinActivate
return
}
else
{
run Skype
return
}
;Firefox
#i::
IfWinExist, ahk_class MozillaUIWindowClass
{
WinActivate
return
}
else
{
run Firefox
return
}
;Gmail
#m::
IfWinExist, ahk_class MozillaUIWindowClass
{
WinActivate
run http://mail.google.com/mail/
return
}
else
{
run Firefox
run http://mail.google.com/mail/
return
}
;Play/Pause
sc122::
DetectHiddenWindows,On
IfWinExist, ahk_class WMPlayerApp
{
PostMessage, 0x111, 32808, 0,, ahk_class WMPlayerApp
return
}
else
{
ControlSend, ahk_parent, {space}, iTunes ahk_class iTunes
return
}
;Previous
sc110::
DetectHiddenWindows,On
IfWinExist, ahk_class WMPlayerApp
{
PostMessage, 0x111, 32810, 0,, ahk_class WMPlayerApp
return
}
else
{
ControlSend, ahk_parent, ^{left}, iTunes ahk_class iTunes
return
}
;Next
sc119::
DetectHiddenWindows,On
IfWinExist, ahk_class WMPlayerApp
{
PostMessage, 0x111, 32811, 0,, ahk_class WMPlayerApp
return
}
else
{
ControlSend, ahk_parent, ^{right}, iTunes ahk_class iTunes
return
}
;B3 122 d 3.75 G Play/Pause
;B1 110 d 1.67 Q Previous
;B2 124 d 0.86 J Stop
;B0 119 d 0.94 P Next
;FF 112 Home |
|
|
| Back to top |
|
 |
n-l-i-d Guest
|
|
| Back to top |
|
 |
clang1234
Joined: 11 May 2008 Posts: 4
|
Posted: Sun May 11, 2008 3:20 pm Post subject: |
|
|
| n-l-i-d wrote: | | A script cannot be compiled if it's compiled exe with the same name is already running, stop the exe first. |
The old .exe is no longer running. In fact the old .exe has been deleted. |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Sun May 11, 2008 3:24 pm Post subject: |
|
|
| Do you compile directly to the AutoStart folder? Try compiling to another destination, and copying afterwards. |
|
| Back to top |
|
 |
clang1234
Joined: 11 May 2008 Posts: 4
|
Posted: Sun May 11, 2008 5:56 pm Post subject: |
|
|
| No I'm compiling to the My Documents folder. I also tried to move the file just now and compile it in another directory, and I got the same error. |
|
| Back to top |
|
 |
meter
Joined: 12 Jul 2006 Posts: 29
|
Posted: Mon May 12, 2008 10:11 am Post subject: |
|
|
Are you using AVG Anti-Virus by any chance? I had the same problem. Disabling realtime scanning fixed the problem. See my post here. _________________ -Meter |
|
| Back to top |
|
 |
clang1234
Joined: 11 May 2008 Posts: 4
|
Posted: Mon May 12, 2008 11:13 am Post subject: |
|
|
Wow. Thank you so much. That was exactly the problem. I went and added the Autohotkey compiler path to the exclusions list in AVG and all the problems went away.
Thanks again! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|