AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error while compiling

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
clang1234



Joined: 11 May 2008
Posts: 4

PostPosted: Sun May 11, 2008 1:50 pm    Post subject: Error while compiling Reply with quote

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
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Sun May 11, 2008 1:53 pm    Post subject: Reply with quote

unbelievable bug! Can't compiler after one
Back to top
clang1234



Joined: 11 May 2008
Posts: 4

PostPosted: Sun May 11, 2008 3:20 pm    Post subject: Reply with quote

n-l-i-d wrote:
unbelievable bug! Can't compiler after one


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
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Sun May 11, 2008 3:24 pm    Post subject: Reply with quote

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

PostPosted: Sun May 11, 2008 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
meter



Joined: 12 Jul 2006
Posts: 29

PostPosted: Mon May 12, 2008 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
clang1234



Joined: 11 May 2008
Posts: 4

PostPosted: Mon May 12, 2008 11:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group