i can copy complete playlist along with path from the potplayer playlist using control+a
followed by control+alt+c
commands. potplayer is available at the following address
C:\Program Files (x86)\The Kmplayer\PotPlayerMini64.exe
.
Is it possible to grab text from the above player from emeditor macro code? Is it possible to send messages to external windows and from there get the text copied to emeditor?
I am not sure about the potplayer you are using. However, If you know the window title or class name of the window where you want to send the Ctrl+A and Ctrl+Alt+C keys, you can write a similar code like this:
wnd = shell.FindWindow( "", "potplayer window title" );
wnd.SetForeground();
shell.SendKeys( "^a" );
Sleep( 100 );
shell.SendKeys( "^%c" );
If you don't know the window title or class name, but running the app path "C:\Program Files (x86)\The Kmplayer\PotPlayerMini64.exe" activates the window, you can run this:
WshShell = new ActiveXObject( "WScript.Shell" );
WshShell.Run( "C:\\Program Files (x86)\\The Kmplayer\\PotPlayerMini64.exe" );
Sleep( 1000 );
shell.SendKeys( "^a" );
Sleep( 100 );
shell.SendKeys( "^%c" );
References