toralf-
I was originally using a small cmd line app called 'clip2jpg.exe' that was posted by someone on forum (i believe it was bobo actually..)-- but for some reason I can't seem to find the original post now. All it did was convert contents of clipboard to filename you specify. Then when I decided to do the partial snapshot- I decided to use the cmd line options of irfanview.
http://www.irfanview.com/
Heres what I have in this script (there is plenty to cleanup & refine-- but it works..

)
Code:
;//////////////////// SCREENSHOT CAMERA /////////////////////////
; CUSTOMIZE PATH TO WHERE YOU HAVE IRANVIEW IS INSTALLED...
irfanviewPATH=C:\Program Files\IrfanView\i_view32.exe
; FOLDER TO SAVE JPG'S IN..
FOLDER=%A_ScriptDir%
; 1 FOR WINDOW & 0 FOR FULLSCREEN SNAPSHOTS
CAPTUREtype=0
;// WINDOW-SCREENSHOT (WIN+SUBTRACT ON NUMBERPAD..) //
#NumpadSub::
Gosub, SCREENSHOTprep
; Run i_view32.exe to trim screenshot that has been dumped to clipboard..
RunWait, `"%irfanviewPATH%`" /clippaste /convert=`"%FOLDER%\%PHOTONAME%.jpg`", , hide
SCREENSHOTcleanup:
PHOTONAME=
return
;------------------------------------------------------------------------------------
SCREENSHOTprep:
IfNotExist, %irfanviewPATH%
Goto, PROGRAMdoesntEXIST
; takes screenshot...
If CAPTUREtype=1
Send,!{PRINTSCREEN}
If CAPTUREtype=0
Send,{PRINTSCREEN}
; determines unique filename..
PHOTONAME=1
Loop,
{
IfNotExist, %FOLDER%\%PHOTONAME%.JPG
Break
IfExist, %FOLDER%\%PHOTONAME%.JPG
{
PHOTONAME++
Continue
}
}
return
;------------------------------------------------------------------------------------
;//// HOTKEY FOR CUTTING SECTION OF SCREEN (SHIFT+LEFT CLICK/DRAG) ////
Alt & LButton::
CoordMode, Mouse, Screen
If GETTINGarea<>1
{
GETTINGarea=1
MouseGetPos, Sxpos, Sypos
SetTimer, SCREENclipper, 10
Gosub, CREATEhighlightAREA
Hotkey, Alt & LButton UP, On
return
}
return
Alt & LButton UP::
If GETTINGarea=1
{
GETTINGarea=
Hotkey, Alt & LButton UP, Off
SetTimer, SCREENclipper, Off
Gui, 13:Destroy
ControlClick , , , , Left, 1, U
;msgbox, cutting section of screen..`nX=%Sxpos%, Y=%Sypos%`nWidth=%Expos%`nHeight=%Eypos%
Gosub, TAKEscreenshotAREA
return
}
return
;////////////////////////////////////////////////////////////////////////////////////
;// WINDOW AREA HIGHLIGHTING BOX //
CREATEhighlightAREA:
Gui, 13:+owner +AlwaysOnTop
Gui, 13:Color, 808080
Gui, 13:+Lastfound ; Make the GUI window the last found window.
WinSet, TransColor, 808080 120
Gui, 13:-Caption +Border
Gui, 13:Show, X%Sxpos% Y%Sypos% h0 w0, --[Highlighting Section Of Screen For Screen Capture]--
Return
;--------------------------------------------------
; TIMER FOR CUTTING WINDOW AREA FOR SCREENSHOT..
SCREENclipper:
CoordMode, Mouse, Screen
MouseGetPos, Expos, Eypos
EnvSub, Expos, %Sxpos%
EnvSub, Eypos, %Sypos%
WinMove, --[Highlighting Section Of Screen For Screen Capture]--,, %Sxpos%, %Sypos%, %Expos%, %Eypos%
return
;--------------------------------------------------
;// CREATING PARTIAL WINDOW SCREENSHOT.. //
TAKEscreenshotAREA:
TAKEscreenshotAREA=1
Gosub, SCREENSHOTprep
RunWait, `"%irfanviewPATH%`" /clippaste /crop=(%Sxpos%`,%Sypos%`,%Expos%`,%Eypos%)
/convert=`"%FOLDER%\%PHOTONAME%.jpg`", , hide
;msgbox, cutting section of screen..`nX=%Sxpos%, Y=%Sypos%`nWidth=%Expos%`nHeight=%Eypos%
Goto, SCREENSHOTcleanup
PROGRAMdoesntEXIST:
Msgbox, I'm sorry. Irfanview doesn't exist!
Exitapp
;///////////////////////// END OF SCREENSHOT CAMERA /////////////////////////////////
webber-
Quote:
In the autocomplete, if more than one word has similar initial characters, is it possible to show a list of terms and allow user to select choice ? Making it more like intellisense ?
Currently I have it set up to only show one match at a time-- & pressing & releasing left/right shift scrolls up and down through other matches. I have toyed around w/ revamping it though.. & have considered having option to set how many matches you want to be able to see at a time. I am also planning on having better options for importing words to dictionary & ability to allow different wordlists and/or combinations of wordlists for specific windows. Right now I'm working on improving editor- & adding a bunch of new commands for use w/ hotkey macros.
Thanks for the feedback!