Script or command line

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
vali_ics
Posts: 5
Joined: Mon Apr 21, 2014 3:40 pm

Script or command line

Post by vali_ics » Wed May 20, 2015 10:38 am

I should use a script or a direct command line for this macro:

I have a input dialog text to input what i want to search on google chrome.
Now i can get it to work but i don't know if it's okay like this or should i use a Python Script ?

Code: Select all

https://www.google.ro/#q="{((eg.event.string).partition('.')[2]).replace(' ', '+')}"

Code: Select all

var = eg.event.string
var = var.partition('.')[2]
InputFinish = var.replace(' ','+')
And 1 more question, if i make a script like the above one, i should use a eg.globals.NameVariable to acces it on another macro ?
Thanks.

Post Reply