Press enter command

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 12, 2007 7:38 am

That warning is triggered by the SetFocus line if the specified window does not exist. This means that when the SetFocus line is reached the window doesn't exist.

Suggests that after 20 seconds the window has gone away? So perhaps it is not needed.

What does Press Enter do? What are you wanting to press enter on? Because this error suggests that you don't want to press enter on the "Installing I:\Video\DeclicFX\2.hfz" window after all (which is the impression I'd got from your previous posts).

Has the first two lines of the script worked? Explain what happens. Remember we're blind. Tell us step by step. After the "Installing I:\Video\DeclicFX\2.hfz" has gone what window then appears? What are you intending to achieve with "Press Enter"?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Ianw
Junior Coder
Posts: 26
Joined: Mon Jan 29, 2007 8:37 pm
Location: UK

Post by Ianw » Mon Feb 12, 2007 11:21 am

>That warning is triggered by the SetFocus line if the specified window does not exist.
>This >means that when the SetFocus line is reached the window doesn't exist.

The window does exist, I inserted the screen shot to indicate that the text in the script matches exactly the text on the titlebar of the window.
>-----------------------------

>Suggests that after 20 seconds the window has gone away? So perhaps it is not needed.

Nope, the Window hasn't gone away.
-------------------------

>What does Press Enter do? What are you wanting to press enter on? >Because this error
>suggests that you don't want to press enter on the "Installing I:\Video\DeclicFX\2.hfz"
>window after all (which is the impression I'd got from your previous posts).

When a file has been processed and it's installation is finished, that is, " Installation Complete " is indicated in the ExecuteFile window, I would like Press Enter to remove that window.
In the full script there will be 101 of them.
BTW, the HFZ is a Pinnacle Compression program for these Hollywood transitions, similar to zip.
-----------------------------

>Has the first two lines of the script worked? Explain what happens. >Remember we're blind.
>Tell us step by step. After the "Installing I:\Video\DeclicFX\2.hfz" has >gone what window then appears?
>What are you intending to achieve with "Press Enter"?

In XP this is the script.
The wait>6 was determined by trial and error to wait a second after

the Installation completed was shown and Press Enter was started.
Press Enter removes the ExecuteFile window thus leaving the screen blank. The script continues with the remaining files.

ExecuteFile>I:\Programs Video\Studio 9\Hollywood FX Effects\Declic FX\1.hfz
Wait>6
Press Enter

In Vista that script works up to Press Enter, but Press Enter does not work, the Executefile window remains onscreen.
However, the script continues to process the files but all the executeFile windows are open.
All 101 of them. I have to manually Press Enter 101 times.

-------------------------------
OK. Last evening I tried these.

ExecuteFile>I:\Video\DeclicFX\1.hfz
Wait>4
SetFocus>Installing I:\Video\DeclicFX\1.hfz
Press Enter

The ExecuteFile window appears, it finishes the installation, the window remains on screen and the error "Specified Window etc" as in the screen shot appears, neither goes away.

As I type this both are on screen.
I Press the Enter key manually and the warning window that states the window doesn't exist goes away.
Then there is only the ExecuteFile window on the screen, I manually

Press enter, then the Start Menu appears, just like when I click the left mouse on it to access a file.
I manually Press Enter and nothing happens, both remain on screen. Selecting one at a time and manually pressing enter removes them.

-----------
ExecuteFile>I:\Video\DeclicFX\2.hfz
WaitWindowOpen>Installing I:\Video\DeclicFX\2.hfz
Wait>44
SetFocus>Installing I:\Video\DeclicFX\2.hfz
Press Enter
Message>One is done
Wait>2
ExecuteFile>I:\Video\DeclicFX\3.hfz
WaitWindowOpen>Installing I:\Video\DeclicFX\3.hfz
Wait>
SetFocus>Installing I:\Video\DeclicFX\3.hfz
Press Enter
Message>Two is done

The ExecuteFile window appears for the file 2hfz file
It remains onscreen.
The MSched icon in the sys. tray is blinking, so it's working.
Nothing else is happening. No other window appears.
I put in the Message> to indicate the process of the script,
it doesn't appear.
2 minutes have elapsed so I right clicked on the sys tray to stop it.
---------------

This next one gives the exact same result as that one just above this one.
I gave this one 4 minutes.

Let>WF_TYPE=2
ExecuteFile>I:\Video\DeclicFX\5.hfz
WaitWindowOpen>Installing I:\Video\DeclicFX\5.hfz
Wait>4
SetFocus>Installing I:\Video\DeclicFX\5.hfz
Press Enter
Message>5 done
Wait>2
Let>WF_TYPE=2
ExecuteFile>I:\Video\DeclicFX\6.hfz
WaitWindowOpen>Installing I:\Video\DeclicFX\6.hfz
Wait>4
SetFocus>Installing I:\Video\DeclicFX\6.hfz
Press Enter
Message>6 done
Wait>2

--------------------------------------
Yesterday evening I "messed" around with combinations of all ofthe above, but, as I know very little about programming I had no success.

I fully accept your point about your working blind & I apologise for not expalining things a lot clearer. I know how it is.
Many thanks
Ianw

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 12, 2007 11:29 am

Ok, so the window IS on the screen but strangely SetFocus is not finding it. Either we have the window title slightly wrong (could there be an extra space somewhere, or a punctuation or case issue we are missing?) or maybe it is a child window or something like that ...

I fear we could spend the next 6 months throwing questions back and forth here and getting nowhere. :? I think the best thing would be if I hook up to your desktop and look at it in person. Feel free to give me a call and we'll sort it out. Phone numbers on the contact page.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Ianw
Junior Coder
Posts: 26
Joined: Mon Jan 29, 2007 8:37 pm
Location: UK

Post by Ianw » Mon Feb 12, 2007 2:20 pm

mtettmar wrote: I fear we could spend the next 6 months throwing questions back and forth here and getting nowhere. :? I think the best thing would be if I hook up to your desktop and look at it in person. Feel free to give me a call and we'll sort it out. Phone numbers on the contact page.
A very good idea indeed, and just as you say, you really need to see for yourself what is going on.

See my PM please.
Last edited by Ianw on Mon Feb 12, 2007 2:27 pm, edited 1 time in total.
Many thanks
Ianw

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 12, 2007 2:22 pm

I think it will be much quicker just to hook up and view your desktop. We should be able to sort it in a few minutes. Just give me a call whenever is convenient.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Ianw
Junior Coder
Posts: 26
Joined: Mon Jan 29, 2007 8:37 pm
Location: UK

Post by Ianw » Mon Feb 12, 2007 2:28 pm

That was quick, OK.

Ignore PM.

Can you let me know either here or in a PM what I need to do to setup the PC to enable hooking up, please. And when I get that sorted I'll give you a call, I don't want to wait 'till we are about to hookup & I have difficulty getting setup, you'll now know I haven't done this at any time.
thanks.
Many thanks
Ianw

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 12, 2007 2:40 pm

Nothing. Just phone me! :-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Feb 12, 2007 6:08 pm

In case anyone is wondering, we sorted it - there turned out to be two spaces between the word Installing and the filename in the title bar. Sorted with the View System Windows tool. Improved the script for reliability and added a loop for multiple iterations of different files.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Ianw
Junior Coder
Posts: 26
Joined: Mon Jan 29, 2007 8:37 pm
Location: UK

Post by Ianw » Mon Feb 12, 2007 8:08 pm

I just came in to post a similar one.

I also want to express publicly my appreciation and gratefull thanks to Marcus for his help. The support here is easily the best I have had.

The extra space in question was a hard one to have caught, it looked just like a single space.

Well done Marcus.
Many thanks
Ianw

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts