Looking for autohotkey assistance and TMT5
#1
Hi All
In trying to get my system to perform automatically I am trying to incorporate certain automations.

Here´s the deal.
I have TMT5 and I want it to play back 3D MKV files as an external player.
And that is working, thanks to @blurays codes. But I have to do some of the steps manually Sad

So what i need autohotkey to do is the following, based on this hardware.
nVidia GT 430 hdmi 1.4 3D capable, but only if I enable stereoscopic 3d in the driver.
This can be done by a shortcut and works manually, but I want it to be automated.

An AHK script should be running in the background monitoring if TMT5 is running, if it is detected, then it should flick the enable 3d switch and then wait....
When TMT5 then closes, it should flilck the disable 3D switch and sit idle, until next time TMT5 is launched.

Now can this be done ?

Here´s my own ahk thought, and it does not work only a thought example, needs the occcasional "loop" and "sleep" and what have you Smile

IfWinExist, Arcsoft TotalMedia Theatre 5 For Windows Media center
{
run C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
}
Process, wait, uMCEDVDPLayer5.exe
{
run C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
}


Or maybe this, still missing "loop" and "sleep" or ..?

IfWinExist, Arcsoft TotalMedia Theatre 5 For Windows Media center
run C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe /enable
WinWait, Arcsoft TotalMedia Theatre 5 For Windows Media center
WinWaitClose
C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe /disable
Reply
#2
Code:
Loop
{
Sleep 1000 ; delay of one second
Process, exist, tmt5.exe ; check for tmt5. replace with actual process name from task manager.
If (ErrorLevel >= 1) ;if process tmt5.exe exists
run "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
}
Reply
#3
(2012-10-19, 13:54)baijuxavior Wrote:
Code:
Loop
{
Sleep 1000 ; delay of one second
Process, exist, tmt5.exe ; check for tmt5. replace with actual process name from task manager.
If (ErrorLevel >= 1) ;if process tmt5.exe exists
run "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
}

Thanks
I See the point... Smile
But I would also like the script to monitor when tmt5 quits, and then flick the "disable" switch afterwards.
See my edited post above Smile
Reply
#4
Loop
{
Sleep 1000 ; delay of one second
Process, exist, tmt5.exe ; check for tmt5. replace with actual process name from task manager.
If (ErrorLevel >= 1) ;if process tmt5.exe exists
run "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
else
run "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /diable
}

This will send enable or disable signal every one second. A more refined approach will be

Code:
Global status = 0 ; disabled
Loop
{
Sleep 1000 ; delay of one second
Process, exist, tmt5.exe ; check for tmt5. replace with actual process name from task manager.
If (ErrorLevel >= 1) and staus = 0 ;if process tmt5.exe exists and 3d disabled
    {
        run "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /enable
        status = 1
    }
else
    { If status = 1
        {
            run "C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvstlink.exe" /disable
            status = 0
        }
    }
}
Reply
#5
Amazing, simply amazing.
Thanks a bunch !!!
Reply

Logout Mark Read Team Forum Stats Members Help
Looking for autohotkey assistance and TMT50