Page 2 of 2

Posted: Thu Jan 06, 2005 8:02 pm
by feyd
me thinks it's user permissions... make sure the exe has "interactive with desktop" rights.

Posted: Thu Jan 06, 2005 8:03 pm
by markl999
And the command prompt version shows 'test' as a valid window title to grab?

Posted: Thu Jan 06, 2005 8:16 pm
by Todd_Z
yes - the exact same command in the cmd prompt works

Posted: Thu Jan 06, 2005 8:20 pm
by markl999
Hmm, not sure then. In *nix it would be easy to debug as you could assume the web user id and run it, but in windows i'm not sure.
The method does work as i'm using it for around 500 screenshots per day (don't ask why i'm using PHP for this and not some Delphi, C# app .. i just am ;)).
If i remember correctly, when i first did this the only decent debug method i had was trial and error (in the PHP code) until i hit upon the exact method that worked, which was the command i originally posted (in my case) .. i can't think of anything more constructive than hit and hope right now :o

Posted: Thu Jan 06, 2005 8:26 pm
by markl999
I just noticed you said,
No matching window found for "test"\r
Was the \r actually in the error?

Posted: Thu Jan 06, 2005 9:04 pm
by Todd_Z
Yea - im just posting what it says in the error_log

Posted: Thu Jan 06, 2005 9:06 pm
by markl999
Hmm, ok, i just wouldn't have expected a raw \r to appear in there unless it was also in the PHP code, but i never use the error log so .. *shrug* :o