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

General questions about scripts and buttons should be asked here. Development scripts and buttons may also be posted for feedback.

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

Postby Victor Delta » Tue Jul 27, 2010 10:27 pm

Hi

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

Thanks,

V
Victor Delta
User avatar
Offline
Fan
Fan
 
Posts: 159
Joined: Thu Sep 18, 2003 10:28 pm
Location: Poole, UK
Windows Version: Windows 8.1
Avant Version: 2014 b7
Default engine: N/A
IE Version: IE 11
Skin: Office XP
Top

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

Post Reply #1 by bigC » Tue Jul 27, 2010 10:45 pm

This option is already available under the file menu.
bigC
User avatar
Offline
AvantGuard
AvantGuard
Avantus Maximus
 
Posts: 7239
Joined: Thu Jan 30, 2003 10:40 pm
Location: New York
Windows Version: 8.1
Avant Version: 2014 Build 7
Default engine: Firefox
IE Version: 11
Skin: Crystal
Top

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

Post Reply #2 by Victor Delta » Wed Jul 28, 2010 12:24 pm

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.
Victor Delta
User avatar
Offline
Fan
Fan
 
Posts: 159
Joined: Thu Sep 18, 2003 10:28 pm
Location: Poole, UK
Windows Version: Windows 8.1
Avant Version: 2014 b7
Default engine: N/A
IE Version: IE 11
Skin: Office XP
Top

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

Post Reply #3 by bigC » Wed Jul 28, 2010 8:58 pm

I gotcha now. Unfortunatly, I don't think thats possible to acheive with the addon system.
bigC
User avatar
Offline
AvantGuard
AvantGuard
Avantus Maximus
 
Posts: 7239
Joined: Thu Jan 30, 2003 10:40 pm
Location: New York
Windows Version: 8.1
Avant Version: 2014 Build 7
Default engine: Firefox
IE Version: 11
Skin: Crystal
Top

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

Post Reply #4 by Victor Delta » Wed Jul 28, 2010 10:26 pm

:( 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
Victor Delta
User avatar
Offline
Fan
Fan
 
Posts: 159
Joined: Thu Sep 18, 2003 10:28 pm
Location: Poole, UK
Windows Version: Windows 8.1
Avant Version: 2014 b7
Default engine: N/A
IE Version: IE 11
Skin: Office XP
Top

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

Post Reply #5 by André » Thu Jul 29, 2010 2:12 am

The scripts are actually rather limited. There's pure JavaScript and can only interact with the webpage, not with the Avant interface.
Formerly known as DrDrrae.
Image
I am not a member of the development team.
Please search the forum before posting questions.

Avant Force Wiki || Avant Force Blog
Desktop:
Intel C2Q Q9550 @ 3.7GHz || 8GiBs DDR2 800 @ 435MHz || Asus P5E
112 GiB SSD || 931 GiB HDD || 2x ATI 5770 in CrossfireX || Picture

NetBook:
ASUS Eee PC 1000HE || 1.66 GHz Atom N280 || 2 GiB DDR2 667 || 320 GiB HDD

NAS:
Intel E5200 @ 2.632 GHz || 4 GiB DDR2 800 @ 421 MHz || Foxconn G31MXP-K
5.45 TiB RAID 6
André
User avatar
Offline
Administrator
Administrator
Avantus Maximus
 
Posts: 5787
Joined: Sat Dec 14, 1901 3:19 am
Location: Baltimore and McHenry, Maryland, USA
Windows Version: Windows 7 x64
Avant Version:
Top

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

Post Reply #6 by Victor Delta » Sun Dec 05, 2010 8:57 pm

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
Victor Delta
User avatar
Offline
Fan
Fan
 
Posts: 159
Joined: Thu Sep 18, 2003 10:28 pm
Location: Poole, UK
Windows Version: Windows 8.1
Avant Version: 2014 b7
Default engine: N/A
IE Version: IE 11
Skin: Office XP
Top

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

Post Reply #7 by sulpherdragon » Mon Apr 18, 2011 5:13 pm

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.
Attachments
ShiftCtrlA.zip
(365.68 KiB) Downloaded 180 times
Image
sulpherdragon
User avatar
Offline
Contributor
Contributor
Avant Fanatic
 
Posts: 222
Joined: Sat Dec 15, 2007 9:51 pm
Windows Version: Windows 7
Avant Version: 2013 Build 23
Default engine: Firefox
IE Version:
Skin:
Top

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

Post Reply #8 by Victor Delta » Tue Apr 19, 2011 6:10 pm

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
Victor Delta
User avatar
Offline
Fan
Fan
 
Posts: 159
Joined: Thu Sep 18, 2003 10:28 pm
Location: Poole, UK
Windows Version: Windows 8.1
Avant Version: 2014 b7
Default engine: N/A
IE Version: IE 11
Skin: Office XP
Top

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

Post Reply #9 by sulpherdragon » Thu Apr 21, 2011 9:31 am

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...
Image
sulpherdragon
User avatar
Offline
Contributor
Contributor
Avant Fanatic
 
Posts: 222
Joined: Sat Dec 15, 2007 9:51 pm
Windows Version: Windows 7
Avant Version: 2013 Build 23
Default engine: Firefox
IE Version:
Skin:
Top

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

Post Reply #10 by Victor Delta » Thu Apr 21, 2011 5:36 pm

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.
Victor Delta
User avatar
Offline
Fan
Fan
 
Posts: 159
Joined: Thu Sep 18, 2003 10:28 pm
Location: Poole, UK
Windows Version: Windows 8.1
Avant Version: 2014 b7
Default engine: N/A
IE Version: IE 11
Skin: Office XP
Top


Return to Scripts and Buttons Development and Discussions



Who is online

Users browsing this forum: No registered users

ABPro style designed by Statm1