Giter Club home page Giter Club logo

Comments (7)

barn852 avatar barn852 commented on June 18, 2024 3

Thanks @subz390 for the idea of using AutoHotkey. I have modified it so the script changes png to jpg any time PasteIntoFile is executed. Maybe it is not the nicest solution, but it works. If you want to use it for other extension, just replace png/jpg accordingly.

#SingleInstance, Force
While 1{
  WinWaitActive ahk_exe PasteIntoFile.exe
  ControlGetText Val,Edit1,ahk_exe PasteIntoFile.exe
  If (Val="png")
    ControlSend Edit1,{Down},ahk_exe PasteIntoFile.exe
}

update1: changed the code, the previous did not work well
update2: I have just found eltos' fork that has a config to set the default image format. No need for the the ahk script.

from pasteintofile.

EslaMx7 avatar EslaMx7 commented on June 18, 2024

@liwenjing93 Thank you very much for your feedback!
I will make sure to have this issue fixed in the next release very soon.

from pasteintofile.

liwenjing93 avatar liwenjing93 commented on June 18, 2024

I will make sure to have this issue fixed in the next release very soon.
Thank you!!!

from pasteintofile.

edwardjohnson11 avatar edwardjohnson11 commented on June 18, 2024

Choosing a default would be great!

Additionally, would also be great if an underscore is used in the automatically generated file name, between the date and the time, so as to avoid hyperlink issues: 13-04-2020_21-38-23

from pasteintofile.

subz390 avatar subz390 commented on June 18, 2024

BUMP +1 on being able to set the default file extension.
For the majority of saving applications I choose jpg as it takes up less space.

from pasteintofile.

barn852 avatar barn852 commented on June 18, 2024

Yes, it would be so good to change or have option for default image format. I think most people use jpg for any kind of image, except for some specific purpose.

from pasteintofile.

subz390 avatar subz390 commented on June 18, 2024

For anyone who's interested here's an AutoHotkey script that'll send keyboard inputs to select the jpg save as extension and press enter.

  1. Install AutoHotkey
  2. Copy the script into a file with an .ahk extension and double click the file to run it.
  3. To start up with Windows put the file in the Windows startup folder.

For reference I've added the modifier keys in comments so you can set your key combination preference.

#SingleInstance, Force
SendMode Input ; Forces Send and SendRaw to use SendInput buffering for speed.
SetWorkingDir, %A_ScriptDir%
#MaxThreadsPerHotkey, 1 ; no re-entrant hotkey handling

; ! Alt
; + Shift
; ^ Ctrl
; ^+ Ctrl Shift

; ====================================================
; PasteIntoFile
; sets the save as extension to jpg
; Ctrl Shift j
#IfWinActive ahk_exe PasteIntoFile.exe
^+j::
    Send, {Tab}{Down}{Tab}{Tab}{Tab}{Tab}{Enter}
return

ahkinstructions

from pasteintofile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.