undead Posted January 2, 2006 Share Posted January 2, 2006 so my problem look like that: i wrote autorestart program for some aplication and it works cool ... it restart dedicatedapp after setted by user time etc ... it works great when it is run from directory or from shortscut. But when i add it into startup and after pc starts and run my compiled script problem look like that: script run and kills dedicated application after some miliseconds ... i dunno why. All is setted ok on @scriptdir etc. Some1 had probs like that too ? Link to comment Share on other sites More sharing options...
nfwu Posted January 2, 2006 Share Posted January 2, 2006 (edited) I used to have this problem in version 1.7 of Wood's Gadgets. then i created an script that would load the actual app: Run("main.exe", @ScriptDir) Exit Short, simple, but useful Put this in the same directory as your script (here called "main.exe") then call this during startup. btw, i loaded the app from the startup registry and not the startup folder Edited January 2, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
undead Posted January 2, 2006 Author Share Posted January 2, 2006 hmm i dont want add any more files to ma app :/ it have only one file and thats why it is so cool Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 2, 2006 Moderators Share Posted January 2, 2006 Not so cool if it don't work Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
nfwu Posted January 2, 2006 Share Posted January 2, 2006 Not so cool if it don't work agree, i do TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
undead Posted January 2, 2006 Author Share Posted January 2, 2006 problem solved Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 2, 2006 Moderators Share Posted January 2, 2006 Out of common courtesy we generally post our solutions, so that others that do a search on the forum, and stumble across this thread, though they may be happy to see that you found your solution, it doesn't help them in their current venture. I had revised your code a bit, I believe it was a simple syntax error on line 28, but made a bit more failsafe just in case. If this wasn't the issue (a syntax error), would be nice to see what it was . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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