StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
 All Forums
 General Discussion
 General Discussion
 "Save Image As" script

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
limitless1689 Posted - 05/11/2019 : 02:37:51
Can anyone help with creating this script?

The mouse hovers on an image in a browser and you draw the gesture and then the save image dialogue opens.
4   L A T E S T    R E P L I E S    (Newest First)
limitless1689 Posted - 05/25/2019 : 19:05:25
Thanks for the help.
Rob Posted - 05/11/2019 : 09:17:07
This should do it. Again, this is setup for Chrome, and wouldn't work if the "Save image as..." menu item isn't there or doesn't accept the letter v to invoke that menu item.
--Prevent mouse/keyboard input to prevent interfering with script
acConsumePhysicalInput(1)
--Move the mouse to where the gesture started
acMouseMove(gsx, gsy) 
--Click the right mouse button to open the context menu
acMouseClick(gsx, gsy, 0, 1, 1) 
--Pause for the menu
acDelay(100)
--Send the "V" key, which in Chrome selects the "Save image as..." menu item
acSendKeys("v")
--Stop blocking input
acConsumePhysicalInput(0)
Rob Posted - 05/11/2019 : 09:13:43
Ack, sorry! That script is for StrokesPlus.net. Hang on, let me install the old StrokesPlus and get that script together.
Rob Posted - 05/11/2019 : 09:12:06
This works for me in Chrome, but it relies on the right-click/context menu appearing when you right-click on the image. Other than using a browser plug-in, S+ can't execute commands within a web page.

//Prevent mouse/keyboard input to prevent interfering with script
sp.ConsumePhysicalInput(true);
//Move the mouse to where the gesture started
sp.MouseMove(action.Start);
//Click the right mouse button to open the context menu
sp.MouseClick(action.Start, MouseButtons.Right, true, true); 
//Pause for the menu
sp.Sleep(100);
//Send the "V" key, which in Chrome selects the "Save image as..." menu item
sp.SendVKey(vk.VK_V);
//Stop blocking input
sp.ConsumePhysicalInput(false);

StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000