Chuck Norris says you must have this.....or else

For all your scripting needs. You can share bat/cmd/js/vba files here.
kashyyyk
EGG
Posts: 13
Joined: September 4th, 2016, 1:54 pm

Chuck Norris says you must have this.....or else

Postby kashyyyk » September 4th, 2016, 7:13 pm

I had installed traBpUkciP wiki search and had run across this site http://www.icndb.com/api/ that allows you to pull jokes from their site. I don't know python and looking at his and a couple examples on the web, I was able to get it to work :D .

the python script goes into a file I had named chucknorris.py I couldn't attach it, so the code is in the spoiler.
► Show Spoiler


looking at the site you could change the name or use the random url and change your command to Tell me a joke or something like that.

in Jarvis shell I used
your command- tell me about chuck norris
response- {{!Action!}}
action- -ret"python" "%AppData%\LINKS\Customization\Scripts\chucknorris.py" [Set("value", "{that}")]

in action be sure to set the location where you put the python file correctly. Now i did set up python on my system per traBpUkciP post http://forum.ai-dot.net/viewtopic.php?f=10&t=5257. That is about all the help I can provide on python.

I hope you enjoy this!

User avatar
traBpUkciP
LINKED
Posts: 131
Joined: May 15th, 2016, 11:13 pm

Re: Chuck Norris says you must have this.....or else

Postby traBpUkciP » September 5th, 2016, 10:16 am

Awesome!! I can't wait to try this out later. Great job Kashyyyk :)

A way to attach the file would be to put it in a zip file and attach that instead. That's how I get around it.

Edit: Works perfect :D Such a fun script, good job!

P.S. The [Set("", "")] statement in the Action column can be removed as it's essentially only used for variable dictation. In this case the command is always the same; therefore [Set("", "")] is not needed.

Sincerely,
traBpUkciP

Zunair
Site Admin
Posts: 2352
Joined: January 11th, 2014, 12:29 am

Re: Chuck Norris says you must have this.....or else

Postby Zunair » September 5th, 2016, 9:48 pm

cool...

here is an alternative ;)

Add following in social commands:
► Show Spoiler



Here's some explanation on it.

Joogee
TADPOLE
Posts: 69
Joined: June 22nd, 2016, 4:08 pm

Re: Chuck Norris says you must have this.....or else

Postby Joogee » September 8th, 2016, 10:29 pm

Zunair

The Xpath function works great. Thank you. It is always great experience to learn something from you.

Zunair
Site Admin
Posts: 2352
Joined: January 11th, 2014, 12:29 am

Re: Chuck Norris says you must have this.....or else

Postby Zunair » September 8th, 2016, 11:35 pm

Thanks for confirming...
I think wiki has ton of stuff.. just gota figure out what's what...

Sent from my SGH-T889 using Tapatalk

Joogee
TADPOLE
Posts: 69
Joined: June 22nd, 2016, 4:08 pm

Re: Chuck Norris says you must have this.....or else

Postby Joogee » September 9th, 2016, 3:33 pm

I have looked over WIKI daily because It doesn't have much readings. It is hard to understand.
I added Mouse event commands to keyboard command. Each command has acted weird to me.
Can you please give me some hints about how to use it?

kashyyyk
EGG
Posts: 13
Joined: September 4th, 2016, 1:54 pm

Re: Chuck Norris says you must have this.....or else

Postby kashyyyk » September 9th, 2016, 6:52 pm

Thanks, it worked for me too. it seems to be easier and offer a lot more possibilities.

Zunair wrote:cool...

here is an alternative ;)

Add following in social commands:
► Show Spoiler



Here's some explanation on it.

Zunair
Site Admin
Posts: 2352
Joined: January 11th, 2014, 12:29 am

Re: RE: Re: Chuck Norris says you must have this.....or else

Postby Zunair » September 10th, 2016, 10:41 pm

Joogee wrote:I have looked over WIKI daily because It doesn't have much readings. It is hard to understand.
I added Mouse event commands to keyboard command. Each command has acted weird to me.
Can you please give me some hints about how to use it?

Whick wiki are you using? Can u ppst a link n tell me where u got the link from?

Thanks

Sent from my SGH-T889 using Tapatalk

Joogee
TADPOLE
Posts: 69
Joined: June 22nd, 2016, 4:08 pm

Re: Chuck Norris says you must have this.....or else

Postby Joogee » September 11th, 2016, 8:10 pm

http://jarvis.ai-dot.net/documentation/ ... Change_Log

I found it here. Is it something to be updated in the higher version?

Zunair
Site Admin
Posts: 2352
Joined: January 11th, 2014, 12:29 am

Re: Chuck Norris says you must have this.....or else

Postby Zunair » September 11th, 2016, 11:22 pm

K ya thays the latest one.. have u been through the FAQ? And functions?

Sent from my SGH-T889 using Tapatalk


Return to “Scripting”

Who is online

Users browsing this forum: No registered users and 1 guest