강좌 / 팁

소프트웨어 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 - - -
650 소프트웨어| 백신 Trust Port 6개월 프로모션, Webroot 6개월 프로모션 ... [5] sous_la_pl 4899 3 11-11
649 소프트웨어| VMware workstation 사용법(본문 수정-2) [76] 고양이2 14943 30 11-14
648 소프트웨어| 한컴오피스 2014 업데이트 설정하는 법 [7] 유기농초코 11535 2 11-17
647 소프트웨어| StrokesPlus 창닫기/탭닫기 조정 스크립트 [2] 유리얼음 5030 2 11-19
» 소프트웨어| StrokesPlus 창닫기/탭닫기 조정 스크립트(수정본) [2] 유리얼음 4280 3 11-19
645 소프트웨어| 압축파일 바로 열기(아직도 모르시는 분들을 위하여) [17] suk 8513 9 11-19
644 소프트웨어| KMSv6 Linux Bootable ISO 의 사용(추가) [5] 링고스타 7563 3 11-20
643 소프트웨어| 한컴오피스 2014 홈에디션 MLP 정품 다운로드 방법 [7] 일교차 18619 1 11-20
642 소프트웨어| 안드로이드폰에서 구동하는 KMS에뮬 [11] 링고스타 14652 10 11-20
641 소프트웨어| 오토핫키, 스크롤 가속도 주기 스크립트 유리얼음 4473 3 11-21
640 소프트웨어| 트루이미지(Acronis True Image) 추가본(본문 수정2) [81] 고양이2 9602 32 11-22
639 소프트웨어| 포토샵 기술 326가지(이미지파일) [18] DOS 11729 11 11-23
638 소프트웨어| 비트디펜더 토탈 시큐리티 6개월 프로모션 [6] sous_la_pl 5041 5 11-23
637 소프트웨어| 트루이미지(Acronis True Image) 추가본②(본문 수정) [91] 고양이2 9135 62 11-26
636 소프트웨어| 바이두 직접 공유를 위한 링크 생성 [10] 배짱이 7054 3 11-29
635 소프트웨어| [이벤트 종료] CyberGhost 5 VPN 12개월 키 받고, 토렌트 i... [8] sous_la_pl 6451 4 12-01
634 소프트웨어| 램디스크(Ram Disk) 만들기 - 본문 수정 [60] 고양이2 9444 50 12-02
633 소프트웨어| 리얼텍 유선,무선인터넷 끊김현상 해결하기. [9] 컴도깨비 13320 2 12-03
632 소프트웨어| Kingsoft Office "Online Templates"탭 없이 시... 명품도라지 3384 1 12-05
631 소프트웨어| 오브젝트독(Object Dock) 이용하기 - (본문 수정) [37] 고양이2 5842 27 12-07
XE1.11.6 Layout1.4.8