본문 바로가기

기술팁/PC 팁6

오토핫키 실행 안될때, 명령어 하나씩 실행 안할때 중간중간 하나씩 빼먹고 실행안될때 , 짜증난다. 아마 윈도우에서 보안문제로 거르는것 같다. 해당 폴더 및 실행파일을 찾아 속성을 누른다. 관리자 권한으로 이프로그램 실행을 체크 한다. 2019. 11. 1.
오토핫키 RegExMatch 간단 사용법 RegExMatch - 문자열에서 특정문자 찾는 함수 board="hello hallo5356333rencongitu5322333" fg := RegExMatch( board , "hallo(.*)6333 " , var) 출력 var1=535 (var이 아닌 var1에 값이 저장된다.) board="hello hallo5356333rencongitu5322333" fg := RegExMatch( board , "53(.*?)333 " , var) 출력 var1=56 (첫번째 일치되는 값 출력) board="hello hallo5356333rencongitu5322333" fg := RegExMatch( board , "53(.*)333 " , var) 출력 var1=5622 (일치되는 모든값 출력) 2019. 10. 31.
오토핫키 이미지서치 imageserch F3:: { imagesearch,x,y,0,0,1920,1080,awr.png if(ErrorLevel = 0) { Mouseclick,left,x+10,y+10 } } F3키 누르면 실행, 모니터 화면 기준 가로 : 0~1920, 세로 : 0~1080 좌표안에 3.png(사진클립파일)와 일치하는 부분이 있다면 일치되는 좌표값을 x,y 변수에 입력됨(왼쪽상단좌표) 만약 사진클립 파일과 일치하는 부분 있으면, (ErrorLevel = 0) 이 되는데, 일치된다면 마우스를 왼쪽 버튼 클릭한다. 사진 파일 왼쪽 상단이 기준이다. 따라서 10을 더해서 사진 내부를 클릭한다. 2019. 10. 29.
오토핫키 시리얼통신 예제 port.ahk ;################### Serial_Port_Console_ReadFile.ahk ################### ; 8/11/09 ; Assembled, tested (on WinXP), and debugged by aobrien with help from ; other AHK forum members (especially Lexikos) and threads. ; ; This script is based upon dll structures that are built into the ; Microsoft Windows environment. This script is ugly (not very readable), ; because, it was written for d.. 2019. 10. 29.