소프트웨어 StrokesPlus 창닫기/탭닫기 조정 스크립트(수정본)
2013.11.19 15:26
글로벌 액션하고, 익스용 액션하고 분리해서..
인터넷옵션창이나, 팝업창, 추가관리기능창 등등 새끼 창들도 제스처 하나로
닫을수 있게 수정해보았습니다..
아래 게시글에서는 되는줄 아랐는데 안되서-0-;;;;;
팟플레이어 같은 경우도 옵션창이나, 열기창, 다른 응용프로그램들의 열기창, 저장창 설정창 등도
제스처 하나로 작동합니다.. 역시 마우스 제스처가 시작되는 곳 바로 아래 있는 프로그램에 작동합니다..
====================================================================================================
아래는 글로벌 액션에 등록
--------------------------
local iHandle= acGetParentWindowByPoint(gsx, gsy)
local iTorrent = acGetExecutableName(iHandle, nil, nil)
acActivateWindow(iHandle, nil, nil, 0)
acSendKeys("%{F_4}")
acDelay(200)
if acGetClassName(acGetForegroundWindow(), nil, nil) == "Shell_TrayWnd" or iTorrent == "utorrent.exe" then
acSendKeys("%{ESC}")
end
============================================================================================================
아래는 IE용 액션에 등록
--------------------------
local iHandle= acGetParentWindowByPoint(gsx, gsy)
acActivateWindow(iHandle, nil, nil, 0)
if acGetClassName(iHandle, nil, nil) ~= "IEFrame" then
acSendKeys("%{F_4}")
else
acSendKeys("^{F_4}")
end
if acGetClassName(acGetForegroundWindow(), nil, nil) == "Shell_TrayWnd" then
acSendKeys("%{ESC}")
end
================================================================================================================
여튼 저렇게 등록하면 하나의 제스처로 (저는 ↓이거 하나로 모든 창을 닫음)
거의 모든창을 닫을수 있습니다....
아래는 제가 쓰는 스크립트(참고용)...
해상도 기준, 프라세스로 종료할 프로그램, 익스에서 탭하나 남을때 alt+f4로 종료하기가 추가되어 있습니다..
=========================================================================================================
글로벌용
-----------------
local iHandle= acGetParentWindowByPoint(gsx, gsy)
acActivateWindow(iHandle, nil, nil, 0)
if acGetClassName(iHandle, nil, nil) == "QWidget" then
acTerminateProcess(iHandle, nil, nil)
else
local iTorrent = acGetExecutableName(iHandle, nil, nil) --토렌트 종료전에 등록해놔야
acSendKeys("%{F_4}")
acDelay(200)
if acGetClassName(acGetForegroundWindow(), nil, nil) == "Shell_TrayWnd" or iTorrent == "utorrent.exe" then
acSendKeys("%{ESC}")
end
end
===========================================================================================================
익스용
---------------------
local iHandle= acGetParentWindowByPoint(gsx, gsy)
acActivateWindow(iHandle, nil, nil, 0)
if acGetClassName(iHandle, nil, nil) ~= "IEFrame" then
acSendKeys("%{F_4}")
elseif acGetWindowBottom(acFindWindow("Shell_TrayWnd"), nil, nil) == 900 then
if acGetPixelBByPoint(1020, 28) == 251 then
acSendKeys("%{F_4}")
else
acSendKeys("^{F_4}")
end
elseif acGetPixelBByPoint(860, 28) == 251 then
acSendKeys("%{F_4}")
else
acSendKeys("^{F_4}")
end
=========================================================================================================
댓글 [2]
-
542 2013.11.19 16:44 -
유리얼음 2013.11.19 17:00
가능합니다.. 마우스 커서는 해당그림 위에서 제스처 그리세요.(제스처 시작위치만 그림위이면 됨)
===================================================================================================
acMouseClick(gsx, gsy, 0, 1, 1) --오른쪽버튼을 누름
acDelay(200) -- 오른쪽메뉴 나올때까지 0.2초 대기, 0.2초안에 안뜨면 실행안됨..시스템 여건에따라 조정해야함
acSendKeys("s")-- 오른쪽메뉴중 다른이름으로 저장하기 선택(s는 익스구요 크롬은v네요)
acDelay(500) --대화상자 나올때깢. 0.5초대기 마찬가지로 0.5초안에 안뜨면 실행안됨. 시스템여건에 따라 조정해야함
acSendKeys("%s") -- 저장할 폴더를 선택하고자할경우는 삭제하세여, 삭제안하면 디폴트폴더에 저장됨===============================================================================================
창뜰때까지 대기타는 방식이 좀 초보적이라 ㅈㅅ ;;;;;
저도 스트로크플러스를 좀 까다로와서 이것저것 만져보고있는 중인데요..
"이미지를 다른 이름으로 저장"을 스트로크 플러스로 구현이 가능할까요?