Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

   Join Now
  • 0
xessive99

Actions args

Question

Hi all,

I'm struggling to understand how to include an argument, for example.

addon://script.globalsearch

arg

arg

 

i would assume the arg would be the string being passed to global search. Does anyone have a working example please?

Thanks

 

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You are correct, the arguments are the string being passed.  The problem is that this doesn't really do anything for you as written.

The following would open Chrome in windows to the CV site:

command://C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
cinemavision.tv

Here are a few example action files:

https://cinemavision.tv/files/category/27-actions/

What do you want your action to do? 

 

Share this post


Link to post
Share on other sites
  • 0

Hi Matt, thanks for the reply. Yeah i read through the examples but nothing relating to arguments built into to kodi.

What i'd like to do ideally is on pause launch an action in kodi. Let's say open a video folder or file.

 

If that's not possible perhaps launch another addon such as advanced launcher but this is where i was struggling as i couldn't work out the syntax for the arguments.

i've tried args that are used in adv launcher such as :

<args>ActivateWindow(10025,&quot;smb://192.***.*.**/HomeServer/Videos/Movie Trailers/&quot;,return)</args>

but i just get invalid argument error.

 

Thanks again

Share this post


Link to post
Share on other sites
  • 0

The arg would just be:

ActivateWindow(10025,&quot;smb://192.***.*.**/HomeServer/Videos/Movie Trailers/&quot;,return)

If you are wanting to add trailers, why don't you just put them in the CV trailers folder or add a video to your sequence and have it pick a single video or randomly from the folder?

Share this post


Link to post
Share on other sites
  • 0

Perhaps i'm misunderstanding what the function can do then. Trailers are all good, working amazing.

What i was ultimately hoping to (within kodi, not external program) was on pause launch a 15 minute video as a intermission. My understanding is intermission is still not working within CV.

but then the actions could have lots of useful purposes, yet still i don't seem to be able to pass any argument to kodi (windows apps work). Maybe this is not possible.

When i run the search example from CV website, Global search opens, but doesn't pass the argument:

addon://script.globalsearch
hi

Above is what i'm testing - search opens but doesn't pass "hi". that's the bit I'm failing to grasp. Advanced launcher (or any other kodi addon) throws an error to the log Error Type: <type 'exceptions.ValueError'>.

 

Cheers

Share this post


Link to post
Share on other sites
  • 0

Ok, I get what you are after now.

I ran some tests and Hi is being passed to globalsearch.  I guess it no longer allows for variables to be passed to it this way.  That's a problem with the guide then.

The add-on Video Screensaver may be an option.  It gave me errors though, so I'm not sure if it is fully working or not.

I'll look into it further.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines and Terms of Use.