C
C#3d ago
ILikeCats!

get playing track title

if i have some app playing music on my computer (NO API IN THE APP) can i get the song name from windows NPSMLib HAS NO documentation or else i would just use it
19 Replies
jcotton42
jcotton423d ago
@ILikeCats! are you referring to https://github.com/ADeltaX/NPSMLib ?
GitHub
GitHub - ADeltaX/NPSMLib: A NowPlayingSessionManager wrapper librar...
A NowPlayingSessionManager wrapper library - used for controlling SMTC apps (e.g. Groove Music, Movies & TV, etc...) - ADeltaX/NPSMLib
ILikeCats!
ILikeCats!OP3d ago
yes
jcotton42
jcotton423d ago
Well, while there's not super formal docs, there are docs on the types and members it seems. Also, full on example programs, looks like.
ILikeCats!
ILikeCats!OP3d ago
i cant find anything
jcotton42
jcotton423d ago
NPSM_CLI in that github repo.
ILikeCats!
ILikeCats!OP3d ago
o huh how do i mark this as solved
jcotton42
jcotton423d ago
$close
MODiX
MODiX3d ago
If you have no further questions, please use /close to mark the forum thread as answered
ILikeCats!
ILikeCats!OP3d ago
hey wait it dont work i litarly copy pasted the whole thing and PrintCurrentSession() througs an exception
jcotton42
jcotton423d ago
what exception?
ILikeCats!
ILikeCats!OP3d ago
System.NullReferenceException: 'Object reference not set to an instance of an object.' on line> var mediaDetails = src.GetMediaObjectInfo(); wait mab i'm doing something wrong leme check oh wait it works now
jcotton42
jcotton423d ago
$close ?
MODiX
MODiX3d ago
If you have no further questions, please use /close to mark the forum thread as answered
ILikeCats!
ILikeCats!OP3d ago
what bot
jcotton42
jcotton423d ago
the command reference is clickable
ILikeCats!
ILikeCats!OP3d ago
the app did not respond
jcotton42
jcotton423d ago
ah
ILikeCats!
ILikeCats!OP3d ago
No description
Unknown User
Unknown User2h ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?