According to the instructions in the scripting guide you should be able to set the position of the Audio Player in a track using the Player.Position() method. However, when I try this from VBScript I get an error message saying that the object has no such a method.
Here is the code I'm using:
Sub Forward1Second()
Set Player = CreateObject("dbPowerAMP.Multiplayer")
Player.FilePlaying = "C:\AllDocs\PETER\Research\CubaHeights\52residents _sideB.ogg"
Player.Pause = True
Position& = Player.Position
Position = Position + 1000
Call Player.Position(Position)
Player.Pause = False
End Sub
The reason I am writing this code is that I am currently busy transcribing some research interviews, and I would like to be able to control the dBPowerAmp Audio Player from within Microsoft Word. I have a standard keyboard with no special keys, but I want to bind keys to macros such as the one above in Word in order to have specific functions (e.g. pause/unpause and skip forward 1 second / skip backwards 1 second).
I also tried using Player.Position = Position, but that seems to do nothing.
Thanks for any advice!
Peter
Here is the code I'm using:
Sub Forward1Second()
Set Player = CreateObject("dbPowerAMP.Multiplayer")
Player.FilePlaying = "C:\AllDocs\PETER\Research\CubaHeights\52residents _sideB.ogg"
Player.Pause = True
Position& = Player.Position
Position = Position + 1000
Call Player.Position(Position)
Player.Pause = False
End Sub
The reason I am writing this code is that I am currently busy transcribing some research interviews, and I would like to be able to control the dBPowerAmp Audio Player from within Microsoft Word. I have a standard keyboard with no special keys, but I want to bind keys to macros such as the one above in Word in order to have specific functions (e.g. pause/unpause and skip forward 1 second / skip backwards 1 second).
I also tried using Player.Position = Position, but that seems to do nothing.
Thanks for any advice!
Peter
Comment