강좌 / 팁

소프트웨어 StrokesPlus 창닫기/탭닫기 조정 스크립트(수정본)

2013.11.19 15:26

유리얼음 조회:4280 추천:3

글로벌 액션하고, 익스용 액션하고 분리해서..

인터넷옵션창이나, 팝업창, 추가관리기능창 등등 새끼 창들도 제스처 하나로

닫을수 있게 수정해보았습니다..

아래 게시글에서는 되는줄 아랐는데 안되서-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

=========================================================================================================

번호 제목 글쓴이 조회 추천 등록일
[공지] 강좌 작성간 참고해주세요 gooddew - - -
2237 소프트웨어| 바이두 직접 공유를 위한 링크 생성 [10] 배짱이 7054 3 11-29
2236 윈 도 우| Windows 8.1 표시언어의 추가와 변경 설정방법 [10] k-style 5945 2 11-29
2235 소프트웨어| 트루이미지(Acronis True Image) 추가본②(본문 수정) [91] 고양이2 9136 62 11-26
2234 윈 도 우| OEM XP 선택해서 설치하기 [8] gooddew 8404 6 11-25
2233 윈 도 우| 윈도우8.1 에서 ipTIME 유무선공유기 192.168.0.1 접속이 ... [1] 우주선 10587 5 11-25
2232 기 타| GVLK키 모음 [7] DarknessAn 12554 8 11-24
2231 소프트웨어| 비트디펜더 토탈 시큐리티 6개월 프로모션 [6] sous_la_pl 5041 5 11-23
2230 소프트웨어| 포토샵 기술 326가지(이미지파일) [18] DOS 11729 11 11-23
2229 윈 도 우| GPT 디스크에 VHD사용하기 [5] 카멜 5903 2 11-22
2228 소프트웨어| 트루이미지(Acronis True Image) 추가본(본문 수정2) [81] 고양이2 9604 32 11-22
2227 기 타| 공유기로 KMS인증을 받아봅시다 [12] DarknessAn 13531 4 11-21
2226 소프트웨어| 오토핫키, 스크롤 가속도 주기 스크립트 유리얼음 4473 3 11-21
2225 윈 도 우| 윈도우7 처럼 윈도우8.1 종료 및 재시작, 로그아웃 [4] 난라이도 8897 1 11-20
2224 소프트웨어| 안드로이드폰에서 구동하는 KMS에뮬 [11] 링고스타 14652 10 11-20
2223 소프트웨어| 한컴오피스 2014 홈에디션 MLP 정품 다운로드 방법 [7] 일교차 18619 1 11-20
2222 소프트웨어| KMSv6 Linux Bootable ISO 의 사용(추가) [5] 링고스타 7563 3 11-20
2221 소프트웨어| 압축파일 바로 열기(아직도 모르시는 분들을 위하여) [17] suk 8513 9 11-19
» 소프트웨어| StrokesPlus 창닫기/탭닫기 조정 스크립트(수정본) [2] 유리얼음 4280 3 11-19
2219 윈 도 우| Win 8.1 인터넷 익스플로러 11의 유투브 호환성 문제 해결법 [4] 일교차 8690 1 11-19
2218 소프트웨어| StrokesPlus 창닫기/탭닫기 조정 스크립트 [2] 유리얼음 5030 2 11-19
XE1.11.6 Layout1.4.8