andyvl Posted August 28, 2007 Posted August 28, 2007 Have a question. When I run my script (via au3 file) my script works without any errors. When I run my script via the builded exe I got line0 (c:\documents.....) $mainwindow = guicreate("window", 310, 500, $ds_setforeground, $ws_ex_dlgmodalframe) $mainwindow = guicreate("window", 310, 500, ^ErrOR Error: variable used without being declared what's wrong? Why does the au3 file work and the exe not and how can I solve this?
jpm Posted August 28, 2007 Posted August 28, 2007 Perhaps I would have understand the other way around when referencing the include files. can you post a more complete script so we can help you. The building of the exe incorporate inside the exe the include file so you should not have any problem.
andyvl Posted August 28, 2007 Author Posted August 28, 2007 Here is the au3 file. I have put the line processcheck($capspath) as comment now. cause it uses a whitelist of processes (the rest is killed)blackandwhite.au3
jpm Posted August 28, 2007 Posted August 28, 2007 Here is the au3 file.I have put the line processcheck($capspath) as comment now.cause it uses a whitelist of processes (the rest is killed)Thanks where do I find? #include <ServiceControl.au3>
andyvl Posted August 28, 2007 Author Posted August 28, 2007 I got it from somewhere here on the forum. but to make life easy, I will repost it in hereServiceControl.au3
herewasplato Posted August 28, 2007 Posted August 28, 2007 I got it from somewhere here on the forum.but to make life easy, I will repost it in herePerhaps it came from the FAQ:Q4. How can I run my script as a service?http://www.autoitscript.com/forum/index.php?showtopic=37289:-) [size="1"][font="Arial"].[u].[/u][/font][/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now