Jump to content


Photo

Newbie Help


  • Please log in to reply
2 replies to this topic

#1 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 25 May 2008 - 08:56 AM

Hey all,

I've got an idea for a plugin that I want tpo make, but at the moment I don't have a clue how to do anything of it. My Python skills are somewhat limited - I have done it before, but I can't really remember much of it, so I'm treating it as learning anew.

What I need is some pointers as to how to do a couple of things. I'm hoping that these are (very) simple, as they seem it in my head, and I'm trying to ask as little as needed to get myself a foothold. I intend to make major advances later but here goes.

I want a plugin to list all files in a directory. I intend to edit this later so it will only list files with specific endings/extensions, and to be a chooseable folder, but for the moment all I need is a hardcoded folder for all files.

The other thing I need is to know how to perform actions when selecting the items. For this I basically want to add the file path & name to a text file. Again seems simple to me, its just how to make the onclick event I need.

If anyone can help me with these I'd bve extremely grateful, and hopefully it will help me get a foothold into creating some kickass plugins.

Cheers guys

#2 nuka1195

nuka1195

    X-S Expert

  • Members
  • PipPipPip
  • 639 posts

Posted 25 May 2008 - 03:01 PM

look thru the plugin maker script in the scripting svn for a way to list a directories contents. to be able to perform an action when an item is selected, you need to set the url back to the plugin with the needed parameters.

http://xbmc-scriptin...../Plugin Maker

#3 Stefan Leroux

Stefan Leroux

    X-S X-perience

  • Members
  • PipPip
  • 307 posts
  • Location:Scotland, UK
  • Xbox Version:v1.3
  • 360 version:v1 (xenon)

Posted 25 May 2008 - 04:42 PM

That soyunds like it will help perfectly. cheers nuka1195 biggrin.gif




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users