NadOo Posted March 9, 2007 Share Posted March 9, 2007 I have wrote a script with GUI and complied it to exe file, I can run it correctly by double clicking it in the windows explorer. Now I have another situation to ues the exe file, that is: I have a windows service running with the system account, and alow service to interact with desktop. The service can call and run other program correctly, but when I use it to call and run the AutoIt complied exe file, I can see nothing in the deskop and in the task manager, what is the problem? who can help me? Thanks! Link to comment Share on other sites More sharing options...
Triblade Posted March 9, 2007 Share Posted March 9, 2007 Ive done some service research not to long ago. From your text I understand that u start a service that starts your own program. From what I understand is that programs started as a service can't show gui's. Maybe the program inbetween rigs your prog so that it can't show gui's as well... Try to service-start an .bat that calls your program. My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
NadOo Posted March 9, 2007 Author Share Posted March 9, 2007 Hi Triblade, Thanks for your quickly reply! I'm very sorry for my poor English. Now I have found my problem: My complied script file is a.exe , and it has a configuration file named a.ini. I make the script to show nothing when the configuration file is missed. the problem is when the windows service program call and run a.exe, the a.exe program can't find the configuration file , but in fact the configuration file is in the same folder with a.exe. I know what the problem is , but I don't know why it can't find the ini file. Why? Link to comment Share on other sites More sharing options...
ChrisL Posted March 9, 2007 Share Posted March 9, 2007 Hi Triblade, Thanks for your quickly reply! I'm very sorry for my poor English.Now I have found my problem:My complied script file is a.exe , and it has a configuration file named a.ini. I make the script to show nothing when the configuration file is missed.the problem is when the windows service program call and run a.exe, the a.exe program can't find the configuration file , but in fact the configuration file is in the same folder with a.exe.I know what the problem is , but I don't know why it can't find the ini file. Why?Change the line in your script for reading the ini file to IniRead(@scriptdir & "\myfile.ini", etc, etc,) [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
NadOo Posted March 12, 2007 Author Share Posted March 12, 2007 Yes! Now it worked. Thank you very much! Link to comment Share on other sites More sharing options...
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