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 

Script won't compile to .EXE

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



Joined: 08 Aug 2008
Posts: 3

PostPosted: Fri Aug 08, 2008 6:03 pm    Post subject: Script won't compile to .EXE Reply with quote

I don't know if this is the right forum, or even an appropriate question to ask, but I thought I would try.

Me and my buddy have been creating a script for about a week now, and after working on it and perfecting it I tried to compile it into an .EXE.

The error it gives me when I try to output it is: Error Opening Destination File.

Here is the script:

Code:
Gui, Add, Picture,  w585 h220 x0 y0 , %A_ScriptDir%\Bot32\Start.png
Gui, Show, w585 h220, AIM Away Manager 1.0
Sleep, 2000
Goto, Manager1
Return

Manager1:
Gui, Destroy
Gui, Font, S9 CDefault, Verdana
Gui, Add, Text, x6 y6, Main:
Gui, Add, Text, x20 y30, Message 1:
Gui, Add, Edit, w200 h20 x+10 y27 vAway1
Gui, Add, Checkbox, x310 y32 vAway01
Gui, Add, Text, x20 y60, Message 2:
Gui, Add, Edit, w200 h20 x+10 y60 vAway2
Gui, Add, Checkbox, x310 y64 vAway02
Gui, Add, Text, x20 y90, Message 3:
Gui, Add, Edit, w200 h20 x+10 y90 vAway3
Gui, Add, Checkbox, x310 y94 vAway03
Gui, Add, Text, x20 y120, Message 4:
Gui, Add, Edit, w200 h20 x+10 y120 vAway4
Gui, Add, Checkbox, x310 y124 vAway04
Gui, Add, Text, x20 y150, Message 5:
Gui, Add, Edit, w200 h20 x+10 y150 vAway5
Gui, Add, Checkbox, x310 y154 vAway05
Gui, Add, Text, x330 y6, Options:
Gui, Add, Text, x350 y30, Seconds Between Rotation
Gui, Add, Edit, w40 h20 x+10 y30 vDelay
Gui, Add, Button, h30 x410 y70 Rotate, Rotate
Gui, Add, Button, h30 x145 y180, Add More Boxes
Gui, Font, S8 CBlack, Calibri
Gui, Add, Text, x393 y183 , AIM Away Manager 1.0
Gui, Font, S8 CBlack Italic, Calibri
Gui, Add, Text, x370 y196 , Created by BHead and Dcdude312
Gui, Show, w585 h220, AIM Away Manager 1.0
Menu, Tray, Add ; Separator
Menu, Tray, Add, Restore, Restore
Return

Restore:
Gui, Destroy
Goto, Manager1

ButtonRotate:
Gui, Submit
Goto, Start

ButtonAddMoreBoxes:
Gui, Submit
Goto, Manager2

Start:
Gui, Destroy
Loop,
{
Loop, %Away01%
{
Run aim:goaway?message=%Away1%
Sleep, %Delay%000
}
Loop, %Away02%
{
Run aim:goaway?message=%Away2%
Sleep, %Delay%000
}
Loop, %Away03%
{
Run aim:goaway?message=%Away3%
Sleep, %Delay%000
}
Loop, %Away04%
{
Run aim:goaway?message=%Away4%
Sleep, %Delay%000
}
Loop, %Away05%
{
Run aim:goaway?message=%Away5%
Sleep, %Delay%000
}
Loop, %Away06%
{
Run aim:goaway?message=%Away6%
Sleep, %Delay%000
}
Loop, %Away07%
{
Run aim:goaway?message=%Away7%
Sleep, %Delay%000
}
Loop, %Away08%
{
Run aim:goaway?message=%Away8%
Sleep, %Delay%000
}
Loop, %Away09%
{
Run aim:goaway?message=%Away9%
Sleep, %Delay%000
}
Loop, %Away010%
{
Run aim:goaway?message=%Away10%
Sleep, %Delay%000
}
}
Return

Manager2:
Gui, Destroy
Gui, Font, S9 CDefault, Verdana
Gui, Add, Text, x6 y6, Main:
Gui, Add, Text, x20 y30, Message 1:
Gui, Add, Edit, w200 h20 x+10 y27 vAway1
Gui, Add, Checkbox, x310 y32 vAway01
Gui, Add, Text, x20 y60, Message 2:
Gui, Add, Edit, w200 h20 x+10 y60 vAway2
Gui, Add, Checkbox, x310 y64 vAway02
Gui, Add, Text, x20 y90, Message 3:
Gui, Add, Edit, w200 h20 x+10 y90 vAway3
Gui, Add, Checkbox, x310 y94 vAway03
Gui, Add, Text, x20 y120, Message 4:
Gui, Add, Edit, w200 h20 x+10 y120 vAway4
Gui, Add, Checkbox, x310 y124 vAway04
Gui, Add, Text, x20 y150, Message 5:
Gui, Add, Edit, w200 h20 x+10 y150 vAway5
Gui, Add, Checkbox, x310 y154 vAway05
Gui, Add, Text, x20 y180, Message 6:
Gui, Add, Edit, w200 h20 x+10 y180 vAway6
Gui, Add, Checkbox, x310 y184 vAway06
Gui, Add, Text, x20 y210, Message 7:
Gui, Add, Edit, w200 h20 x+10 y210 vAway7
Gui, Add, Checkbox, x310 y214 vAway07
Gui, Add, Text, x20 y240, Message 8:
Gui, Add, Edit, w200 h20 x+10 y240 vAway8
Gui, Add, Checkbox, x310 y244 vAway08
Gui, Add, Text, x20 y270, Message 9:
Gui, Add, Edit, w200 h20 x+10 y270 vAway9
Gui, Add, Checkbox, x310 y274 vAway09
Gui, Add, Text, x18 y300, Message 10:
Gui, Add, Edit, w200 h20 x+5 y300 vAway10
Gui, Add, Checkbox, x310 y304 vAway010
Gui, Add, Text, x330 y6, Options:
Gui, Add, Text, x350 y30, Seconds Between Rotation
Gui, Add, Edit, w40 h20 x+10 y30 vDelay
Gui, Add, Button, h30 x410 y70 Rotate2, Rotate
Gui, Font, S8 CBlack, Calibri
Gui, Add, Text, x393 y293 , AIM Away Manager 1.0
Gui, Font, S8 CBlack Italic, Calibri
Gui, Add, Text, x370 y306 , Created by BHead and Dcdude312
Gui, Show, w585 h330, AIM Away Manager 1.0
Return

ButtonRotate2:
Gui, Submit
Goto, Start


GuiClose:
ExitApp
Esc::ExitApp


Any and all help will be greatly appreciated!

Thanks!

-BHead


Last edited by BHead on Fri Aug 08, 2008 9:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Aug 08, 2008 6:45 pm    Post subject: Reply with quote

That error is typical if the exe is still running. it can't compile on top of an already running exe file.
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
BHead



Joined: 08 Aug 2008
Posts: 3

PostPosted: Fri Aug 08, 2008 7:36 pm    Post subject: Reply with quote

What do you mean? There is no instance of the script running when I run Auto It to try to output it to .EXE.

It still gives me the same error when I try.
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Fri Aug 08, 2008 8:38 pm    Post subject: Reply with quote

Could be your antivirus, turn it off, compile script, turn it back on
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
BHead



Joined: 08 Aug 2008
Posts: 3

PostPosted: Fri Aug 08, 2008 9:05 pm    Post subject: Reply with quote

Still does same thing, I am using AVG Free Antivirus.
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Sat Aug 09, 2008 4:35 am    Post subject: Reply with quote

try renaming the file and compiling again?

what folder is the script in? Are you on Vista?
_________________

(Common Answers)
Back to top
View user's profile Send private message Visit poster's website
Sir Daniel
Guest





PostPosted: Sat Aug 09, 2008 7:57 pm    Post subject: Reply with quote

I just tried compiling it, and it worked perfectly. Are you using the "compile" option on the right-click menu or the "convert .ahk to .exe" option in the start menu? I've never had any luck with the first one. Confused
Back to top
clefairy
Guest





PostPosted: Sat Nov 08, 2008 1:25 pm    Post subject: I think I know Reply with quote

I just encountered the same problem. For me, it was a path issue. Make sure that the path where your script is located does not have spaces (i.e. c:\Documents and Settings\...)
Back to top
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Sat Nov 08, 2008 8:35 pm    Post subject: Reply with quote

encapsulate paths with spaces with " (i.e. "c:\Documents and Settings\...")
_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
mrmike



Joined: 20 Jan 2007
Posts: 9
Location: Wisconsin, USA

PostPosted: Sat Nov 08, 2008 10:44 pm    Post subject: Reply with quote

Open AVG User Interface (Right click systray icon)
Double Click Resident Shield
Uncheck Resident Shield active
Click Save changes
Close AVG User Interface

Reativate Resident Shield when done compiling.
Back to top
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7293
Location: Australia

PostPosted: Mon Nov 10, 2008 8:48 am    Post subject: Reply with quote

This happened to me when I "upgraded" to AVG 8. Deactivating Resident Shield did not make the slightest difference. I switched to another AV; problem solved.
Back to top
View user's profile Send private message Visit poster's website
kidmar



Joined: 04 Oct 2007
Posts: 69

PostPosted: Tue Nov 11, 2008 12:04 pm    Post subject: Reply with quote

I have exactly the same problem.

I use AVG Network Edition (works the same as the free one).
If I disable the Resident Shield everything works well.

As soon as I paid for that antivirus (or at least my company did Very Happy ) I've sent an email to their support service.
They told me that the only thing I can do is adding the ahk script path to the exception list of the Resident Shield.
It works but that's not what I want from a bought antivirus. This way a virus can attack that folder and I have to add any folder I use for ahk to the exception list...

If an admin or someone want to try to resolve this problem contacting AVG support service I can help you sending emails from my account. They usually reply in 1~3 hours. I really would like to resolve this problem but I don't know what to write them.
Maybe you have a more specific / technical mail to send them.
Back to top
View user's profile Send private message
bbint



Joined: 17 Sep 2008
Posts: 19

PostPosted: Sun Dec 07, 2008 8:43 pm    Post subject: Reply with quote

Sir Daniel wrote:
convert .ahk to .exe" option in the start menu


using that instead of the context menu fixed it for me
Back to top
View user's profile Send private message
Display posts from previous:   
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