Page 1 of 1

[Request] Script button for 'Save Current Page as Image'

Posted: Tue Jul 27, 2010 10:27 pm
by Victor Delta
Hi

Can anyone please help me with a script button for the above, which would be very useful.

Thanks,

V

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Tue Jul 27, 2010 10:45 pm
by bigC
This option is already available under the file menu.

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Wed Jul 28, 2010 12:24 pm
by Victor Delta
Yes, that's right. It's a facility I use quite frequently (one of the many reasons I like Avant so much) and so I was hoping to create a button which will make it even easier to use in future. Hence the request.

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Wed Jul 28, 2010 8:58 pm
by bigC
I gotcha now. Unfortunatly, I don't think thats possible to acheive with the addon system.

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Wed Jul 28, 2010 10:26 pm
by Victor Delta
:( Thanks, but that's a real shame. I thought scripts could do virtually anything in Avant, especially something that appears to be relatively simple such as calling up an existing menu item. Am I missing something here?

V

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Thu Jul 29, 2010 2:12 am
by André
The scripts are actually rather limited. There's pure JavaScript and can only interact with the webpage, not with the Avant interface.

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Sun Dec 05, 2010 8:57 pm
by Victor Delta
Given the new shortcuts on Build 126 [including Save Current Page as Image(Shift+Ctrl+A)] does this mean that a button to do this might now be possible...?

V

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Mon Apr 18, 2011 5:13 pm
by sulpherdragon
Yeah, but you're going to have to trust an executable to press them.

I've made the script with AutoHotKey.

Just throw the executable into a folder and point a command addon to it.
This wont work in Orca - those shortcuts don't exist.

Throw the SCA.exe into your windows folder.
And embed the addon into Avant.

If you want to change the location of the SCA.exe it should be modified in the addon as well.
SCA.exe just presses Shift+Ctrl+A for you, so I wouldn't really advise clicking on it outside of Avant.

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Tue Apr 19, 2011 6:10 pm
by Victor Delta
sulpherdragon, many thanks for that.

I've imported the .aba file and put the exe file in a folder (and changed the address in the addon settings). However, running it doesn't seem to work, not even when i double click on the exe file.

Do I need to have AutoHotKey installed?

V

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Thu Apr 21, 2011 9:31 am
by sulpherdragon
Hi Victor,
hmm that's odd...
It should work. Double check you have the path correct. It also only works in Avant, not Orca.
Clicking on the addon wont do anything because Avant needs to be in focus for the commands to do anything, you don't need to have AutoHotKey installed either.
I will examine the issue and see if I can come up with a solution...

Re: [Request] Script button for 'Save Current Page as Image'

Posted: Thu Apr 21, 2011 5:36 pm
by Victor Delta
Thanks. Path double checked, and I'm certainly using Avant (build 131). Button is doing something as I get a momentary glimpse of the hourglass cursor, but that's it. Whereas clicking on Shift+Ctrl+A (or even the easier Ctrl+Shift+A) brings up the Save As dialogue box.