Creat a master File or Iclude File

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Thais
Posts: 39
Joined: Mon Sep 24, 2012 7:33 pm

Creat a master File or Iclude File

Post by Thais » Sun Jan 31, 2016 6:10 pm

Hi,

I have a lot of generique function developped in Javascript and used for iMacros Macro
For the moment I have to copy each funtion in the macro file in order to use it and I want to know if it's possible to have an "include file", as it exist in other langage ?

Exemple becasue my english is not so good :oops:

Code: Select all

main.js :
alert(SayHello("Barack Obama"))

Include_Function.js
SayHello(TheName)
{
          return "Hello, my name is " & TheName
}

Is it possible ?

For information :
Mac Os 10.6.8
iMacros 8.9.6
Firefox 43.0.4

Thanks by advance
and sorry for my english, I am a french girl ....

Thais
Mac Os : 10.13.3 (17D102)
Firefox : 48.0.2
iMacros for Firefox : 8.9.7
chivracq
Posts: 9291
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Creat a master File or Iclude File

Post by chivracq » Mon Feb 01, 2016 1:12 am

Thais wrote:Hi,

I have a lot of generique function developped in Javascript and used for iMacros Macro
For the moment I have to copy each funtion in the macro file in order to use it and I want to know if it's possible to have an "include file", as it exist in other langage ?

Exemple becasue my english is not so good :oops:

Code: Select all

main.js :
alert(SayHello("Barack Obama"))

Include_Function.js
SayHello(TheName)
{
          return "Hello, my name is " & TheName
}

Is it possible ?

For information :

Code: Select all

Mac Os 10.6.8
iMacros 8.9.6
Firefox 43.0.4
Thanks by advance
and sorry for my english, I am a french girl ....

Thais
I hope you make less Typos in your Code than in your Thread Title, Runtime Engines are very stupid... It would be useful if you could correct your Thread Title to get it found by the Forum Search Engine for other Users, nobody is going to search the Forum with "creat + iclude"...

But I guess this is what you are looking for (from a simple Search on the Forum with "include")...:
- Include javascript files (solution)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply