C
C#2w 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
jcotton422w 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!OP2w ago
yes
jcotton42
jcotton422w 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!OP2w ago
i cant find anything
jcotton42
jcotton422w ago
NPSM_CLI in that github repo.
ILikeCats!
ILikeCats!OP2w ago
o huh how do i mark this as solved
jcotton42
jcotton422w ago
$close
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered
ILikeCats!
ILikeCats!OP2w ago
hey wait it dont work i litarly copy pasted the whole thing and PrintCurrentSession() througs an exception
jcotton42
jcotton422w ago
what exception?
ILikeCats!
ILikeCats!OP2w 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
jcotton422w ago
$close ?
MODiX
MODiX2w ago
If you have no further questions, please use /close to mark the forum thread as answered
ILikeCats!
ILikeCats!OP2w ago
what bot
jcotton42
jcotton422w ago
the command reference is clickable
ILikeCats!
ILikeCats!OP2w ago
the app did not respond
jcotton42
jcotton422w ago
ah
ILikeCats!
ILikeCats!OP2w ago
No description
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?