kcvinu

Is it possible to run an exe or script when clicking Chrome's right click context menu item "Save Image As" ?

8 posts in this topic

Hi there,

I made a script to rename the default file of chrome's "Save As" window. default file name is "unnamed". And chrome will automatically replace that filename to "unnamed(1)" to "unnamed(99)". But after saving your 99th image, there is no automatic file naming. So i made a script for that. But i would like to run this script when i click on the "Save Image As" context menu item in chrome. Is it possible ? If so, then how. Thanks in advance.


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites



Why dont you make it already executed, sitting in the tray and listening for the event?

1 person likes this

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi topten,

As far as i know, if i start this script with windows, i need to write an infinite while loop and state a condition. If the condition is true, my function will work. But for that, i need to waste my processor power for all time by using an infinite loop. Am i right ?

Edited by kcvinu

My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

If you check other processes which exist on your computer- You will be surprised that hundreds of them exist on the computers of users and 90% of them are listenning to something. This should'nt affect the processor power much.

1 person likes this

Share this post


Link to post
Share on other sites

Hi JohnOne,

Yes.. i need to learn how to create my context menu entry in explorer and a web browser. Can you suggest some good examples ?


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

Hi topten,

So you mean adding one script with an infinite while loop won't be a problem ?. Then it's ok. I thought that doing such is a bad idea.


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

I would suggest to use IE.au3 library it is more flexible than chrome for learning. With that (IE) you can navigate onto webpage, read the contents of HTML and then parse the images on the website

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now