Creating Bookmark in FF

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Creating Bookmark in FF

by Toonces on Sat Feb 08, 2014 12:47 pm

I'm new to iMacros, but so far I've not been able to find the answer. I apologize if it's blatantly obvious and I'm just missing things.

I'd like the macro to be able to bookmark the current page to a specific bookmark folder.

How can I do this?
Toonces
 
Posts: 3
Joined: Sat Feb 08, 2014 12:43 pm

Re: Creating Bookmark in FF

by chivracq on Sat Feb 08, 2014 4:23 pm

I would think it is not possible, unless iMacros will be able able to produce a "Ctrl^d" that the Browser will intercept and understand, but then I'm very doubtful if you'll manage to specify a specific Folder.

With Firefox, you can use the EVENT Mode which is able to trigger Keystrokes.

Maybe something like this will work:
Code: Select all
EVENT TYPE=KEYPRESS SELECTOR=* Char="d" MODIFIERS="ctrl"


Have a look at this Thread for more info:
CTRL-A not getting recorded
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6473
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Creating Bookmark in FF

by chivracq on Sat Feb 08, 2014 6:46 pm

OK, after a bit of Testing,
Code: Select all
EVENT TYPE=KEYPRESS SELECTOR=* Char="d" MODIFIERS="ctrl"

does trigger the 'Bookmark this Page' Dialog, but then I can't find a way to interact with it, in Record nor in Replay Mode...

SELECTOR then needs a Name to respond to Tab(9)/Enter(13)/Alt^t/Change the name, etc...
And the Record Mode doesn't record anything...

ONDIALOG doesn't do anything.

!EXTRACTDIALOG is not supported in Firefox...

X/Y doesn't work either...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6473
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Creating Bookmark in FF

by Toonces on Sun Feb 09, 2014 9:24 am

Thanks, that got me further but as chivracq, the process dies there.

For the time being, I've managed to work around the issue with an add-on for executing external applications and AutoIt. Not an optimal solution, though it should be sufficient for my needs. I'll continue to see if I can refine things, but I can at least go about doing what I was looking to do.

The assistance is appreciated.
Toonces
 
Posts: 3
Joined: Sat Feb 08, 2014 12:43 pm

Re: Creating Bookmark in FF

by chivracq on Sun Feb 09, 2014 10:13 am

Which Add-on...?
(And decompiling that Add-on could give me some ideas...!)

I only looked at pure iMacros ways to do it, maybe there is a way to do it from JavaScript, that would be a path to explore...

Bookmarks in Firefox are saved in some sqlite Object, I think, and I would be surprised if there is not a way to manipulate those Objects from JavaScript, eventually using some external Libraries...

Other path to explore, I remember Tom from TechSupport posting a few months ago a Msg about some way to communicate with the Firefox DOM, maybe that could bring stg interesting...
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6473
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)

Re: Creating Bookmark in FF

by Toonces on Tue Feb 11, 2014 12:08 pm

It's called simply "External Application Buttons". It runs a compiled AutoIt application, which executes a key combination using Quicklinks to bookmark. Unfortunately Firefox intercepts he key combinations before it gets to Quicklinks.

https://addons.mozilla.org/en-US/firefo ... on-button/
https://addons.mozilla.org/en-US/firefo ... k/?src=api
Toonces
 
Posts: 3
Joined: Sat Feb 08, 2014 12:43 pm

Re: Creating Bookmark in FF

by chivracq on Tue Feb 11, 2014 6:11 pm

Toonces wrote:It's called simply "External Application Buttons". It runs a compiled AutoIt application, which executes a key combination using Quicklinks to bookmark. Unfortunately Firefox intercepts he key combinations before it gets to Quicklinks.

https://addons.mozilla.org/en-US/firefo ... on-button/
https://addons.mozilla.org/en-US/firefo ... k/?src=api


OK, thanks a lot, that already gives me some ideas, but I'll need to do some Testing/Exploring/Experimenting, I've started to experiment with AutoIt very recently only some 2 weeks ago (twice playing with it for a few hours...). And I'm usually quite creative with my Solutions, so we'll see what comes out...! :oops:
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6473
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to General Support & Discussions

Who is online

Users browsing this forum: Baidu [Spider] and 7 guests

-->