Muyfa666 Posted December 4, 2012 Posted December 4, 2012 Sorry to post more than 1 question at the time, but I hope to learn fast. I want ACDSee 15 to open and directly close when I start Windows. I want this because the first time the program launches, it takes some time. After being opened once, it opens much faster until reboot. Basically, I want the program to open itself to be loaded in the cache and then close. I've looked at ProcessExists and ProcessClose, but I don't think I can use them. This start/close script can only be run once, I'd rather not have it timed, so if I have a compiled .exe in the autostart, won't it close my program every time i try to open it?
tp9191 Posted December 4, 2012 Posted December 4, 2012 use Run and Processclose on the program, compile it to exe, and put a shortcut to that exe in your startup folder? it's newbish but it should work
Muyfa666 Posted December 4, 2012 Author Posted December 4, 2012 I kind of got it going, but not by detecting the process, but rather with a timeout. Is there no "cleaner" way to do it?
Muyfa666 Posted December 4, 2012 Author Posted December 4, 2012 ShellExecute("D:ProgramACD SystemsACDSee15.0ACDSee15.exe") ProcessWait("ACDSee15.exe") ProcessClose("ACDSee15.exe") This doesn't work. I presume it has with the delay to do. But I was hoping the use this command to wait for the process. But maybe thats not at all how it works?
tp9191 Posted December 4, 2012 Posted December 4, 2012 i'm not familiar with the program but how about a winwaitactive before the process close?
Muyfa666 Posted December 6, 2012 Author Posted December 6, 2012 ShellExecute("D:ProgramACD SystemsACDSee15.0ACDSee15.exe") ProcessWait("ACDSee15.exe") WinActivate("ACDSee15.exe") ProcessClose("ACDSee15.exe") Nothing really seems to happen with this...
Developers Jos Posted December 6, 2012 Developers Posted December 6, 2012 What about you tell us what is working and what not and whether or not the script finishes without closing ACD15? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
TheSeeker Posted December 6, 2012 Posted December 6, 2012 You can pause the script for some two seconds and then check with Processexists(). If it does then go ahead and close it. That may be little better. I have also experienced this type of problem with Processwait() and apparently adding a little delay time sometimes solves the problem. "Let me win[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;], [/color]but if I cannot[color=rgb(68,68,68);font-family:arial, sans-serif;font-size:small;] win, let me be brave in the attempt"[/color]
aleph01 Posted December 6, 2012 Posted December 6, 2012 Doesn't something as simple as this work? RunWait ("D:ProgramACD SystemsACDSee15.0ACDSee15.exe") Sleep(1000) ProcessClose("ACDSee15.exe") Meds. They're not just for breakfast anymore.
Muyfa666 Posted December 6, 2012 Author Posted December 6, 2012 I've decided to give up on this. Not for the the script programming, but for the program itself is lousy. I'm gonna stick with ACDSee Classic to avoid issue. Thanks everyone for the help.
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