Commit Graph

482 Commits

Author SHA1 Message Date
vcaesar
5cb95037c5 optimize code not defer and remove useless code 2019-01-25 12:56:10 -04:00
vcaesar
cf48f5ee8a Update version 2019-01-16 10:40:25 -04:00
vcaesar
8d458b66a5 add mul scale func and optimize code 2019-01-09 13:24:06 -04:00
vcaesar
7e017b4cb4 Update version 2019-01-07 13:08:13 -04:00
vcaesar
ad85cfd792 add drag mouse other button support 2018-12-27 12:44:38 -04:00
vcaesar
0a380045a3 add keyTap run error return support and update godoc 2018-12-27 12:33:39 -04:00
vcaesar
e5d5f106b5 add check mouse button func and simplify mouse func code 2018-12-27 12:21:50 -04:00
vcaesar
6b083e7666 update version and optimize code 2018-12-26 12:55:17 -04:00
vcaesar
e1214bf111 add AddEvent() key "cmd" support 2018-12-13 11:16:49 -04:00
vcaesar
f71b00e6b9 add millisleep func and update godoc 2018-12-12 16:58:23 -04:00
vcaesar
54f78e2aa8 update code style and remove useless code 2018-12-11 14:04:28 -04:00
vcaesar
87e23b9adf optimize and clearer keytap code 2018-12-11 13:12:16 -04:00
vcaesar
477fc947e1 add GetColors func return string 2018-11-25 10:50:57 -04:00
vcaesar
adf02582ab update godoc and code style 2018-11-14 12:07:26 -04:00
vcaesar
402e93514c add new window10 zoom ratio 2018-10-26 12:06:34 -04:00
vcaesar
e2fd078da8 Fixed bitmapClick() parameter bug 2018-10-19 11:19:38 -04:00
vcaesar
a1c3f77e0c optimize and clean keyToggle code 2018-10-11 13:07:21 -04:00
vcaesar
5633fcf698 Update CHANGELOG.md 2018-10-09 12:50:32 -04:00
vcaesar
21426f901e Update godoc 2018-10-09 10:56:30 -04:00
vcaesar
cdabf53fd5 Update version 2018-10-09 10:49:08 -04:00
vcaesar
68ba8e8aaa Simplify SaveCapture code 2018-10-07 13:00:16 -04:00
vcaesar
1e7434c6e8 update dockerfile to go1.11.1 2018-10-02 10:21:35 -04:00
vz
2928787f51
update godoc 2018-10-02 10:08:19 -04:00
vz
51a2394a94
update godoc 2018-10-02 09:05:57 -04:00
redstarcoder
ea1166564a Update FindIds doc and only set name once in loop 2018-10-01 15:39:47 -04:00
vcaesar
f3a5747ac2 add FindCBitmap func support 2018-09-30 09:41:35 -04:00
vcaesar
7278a22ca6 update version 2018-09-20 12:05:04 -04:00
vcaesar
75b468839f split func and remove dep 2018-09-16 19:51:21 -04:00
vcaesar
7d4573cdd4 update godoc 2018-09-14 17:35:42 -04:00
vcaesar
9175329c2d update godoc 2018-09-14 17:32:31 -04:00
vcaesar
0c375882f0 update godoc 2018-09-14 09:42:43 -04:00
vcaesar
ca463c32cd update godoc 2018-09-14 07:40:58 -04:00
vcaesar
fa7fc547ce update and fixed godoc 2018-09-10 13:54:35 -04:00
vcaesar
3d2ef162e6 update godoc and clearer parameter name 2018-09-10 13:39:09 -04:00
vcaesar
76898b335b update code name style 2018-09-04 14:02:27 -04:00
vcaesar
c4e7fbb392 update set handle by pid and add get handle mdata by pid 2018-08-28 09:16:25 -04:00
vcaesar
a6799263b5 add close window example and add set handle by pid func 2018-08-25 09:51:38 -04:00
vcaesar
727ab062fb update close_window() allow by pid 2018-08-23 12:06:42 -04:00
vcaesar
873e9d30dc update getTitle func and .h name 2018-08-21 12:47:31 -04:00
vcaesar
245f48f4f2 Update README.md 2018-08-15 07:22:13 -04:00
vcaesar
cea1b340d7 update code style and move scale to win_sys 2018-08-14 07:18:14 -04:00
vcaesar
2a813b1e31 update version number 2018-08-13 11:09:07 -04:00
vcaesar
8f8937daad add internalGetBounds and x11 getXidFromPid to GetBounds 2018-08-13 09:57:24 -04:00
vcaesar
e1769c70dc update set handle return and add getBounds func [ci skip] 2018-08-13 09:11:45 -04:00
vcaesar
8a91b0e572 move some pub method and rename some c_func 2018-08-12 08:51:36 -04:00
vcaesar
01bee868bb v0.50.0 is released! 2018-08-08 09:43:46 -04:00
vcaesar
2fbd770917 add simple ocr support 2018-08-08 09:19:17 -04:00
vcaesar
4d8b9903c4 Update README.md [add freeBitmap example] 2018-08-03 11:51:28 -04:00
vcaesar
72b9657ffa update free bitmap godoc 2018-08-03 11:45:09 -04:00
vcaesar
8319573011 update version and fix README.md link 2018-08-03 08:08:11 -04:00
vcaesar
814c5e6980 fix float args and update examples [add freeBitmap and update findColor] 2018-08-03 07:10:04 -04:00
vcaesar
c6d60bd3f2 optimize findColor and uniform API with findBitmap [ci skip] 2018-08-03 06:46:08 -04:00
vcaesar
030b3ada1e update macos .a downgrade to 10.10 just warning not exit [fix #102, #128, #134] 2018-08-02 12:54:42 -04:00
vcaesar
585c303c30 update findBitmap and findColor default tolerance 0.5 to 0.01
[improve accuracy]
2018-07-31 13:17:30 -04:00
vcaesar
2e9399a05f add more Window example 2018-07-30 01:23:58 +08:00
vcaesar
e4a8b1f854 simplified max and min window api 2018-07-30 00:57:31 +08:00
vcaesar
409c2361f3 add max and min go func 2018-07-29 23:56:28 +08:00
vcaesar
b5f3ccb41f update getPid type to int32 2018-07-29 23:33:19 +08:00
vcaesar
69b4f4210f update var code style 2018-07-29 18:53:30 +08:00
vcaesar
44a2fc533b automatic free internal bitmap 2018-07-28 23:32:43 +08:00
vcaesar
111d1badb1 just free internal bitmap and add bitmapStr example 2018-07-28 23:07:40 +08:00
vcaesar
5ab8d85856 remove old useless code 2018-07-28 20:58:58 +08:00
vcaesar
6a062c7f90 automatic free internal bitmap 2018-07-28 19:24:49 +08:00
vcaesar
ff8cd7b142 fixed findBitmap and findPic memory leak 2018-07-28 18:55:03 +08:00
vcaesar
126392f38b fmt code and updata pkg 2018-07-24 22:53:16 +08:00
vcaesar
d1ea0fd81b add Custom DPI Scaling support 2018-07-24 21:26:53 +08:00
vcaesar
794cbf87ad update version and godoc 2018-07-21 19:42:06 +08:00
vcaesar
e3833dda5e add scale default value 2018-07-20 18:29:06 +08:00
vcaesar
2348a44ad6 remove duplicate code 2018-07-20 00:14:21 +08:00
vcaesar
de187609d7 update code style use if not try 2018-07-20 00:06:34 +08:00
vcaesar
4705619e99 update mouse click and fix moveClick and movesClick args 2018-07-19 23:55:40 +08:00
vcaesar
cd0c3ed6d8 update godoc and version 2018-07-10 23:13:27 +08:00
vcaesar
186df36c2c update active pid try to fix #140 2018-07-10 20:02:18 +08:00
vcaesar
9c2797ade0 fix dpi spell 2018-07-09 23:33:59 +08:00
vcaesar
62b865dbef add get Scale and GetScaleSize func 2018-07-09 23:29:27 +08:00
vcaesar
ec82b0fd15 add get primary display DPI scale factor fix #129, #135 2018-07-09 22:52:55 +08:00
vcaesar
962a413203 update godoc and README.md 2018-07-06 19:29:38 +08:00
vcaesar
3dce490b76 update typestr, godoc and version 2018-06-18 21:13:34 +08:00
vcaesar
fdddd73837 add bitmap to CBitmap func 2018-06-16 19:17:06 +08:00
vcaesar
96c089b3dc update mouse toggle 2018-06-07 23:36:29 +08:00
vcaesar
12b92368c0 update keytap func 2018-05-31 00:05:07 +08:00
vcaesar
e99cfb6e93 update find every bitmap func 2018-05-30 23:56:04 +08:00
vcaesar
52a7bb04d0 optimize bitmap code 2018-05-30 23:52:09 +08:00
vcaesar
dd31f29ad5 update savebitmap code 2018-05-30 23:39:53 +08:00
vcaesar
974dbcfc15 update open and save bitmap 2018-05-22 20:48:57 +08:00
vcaesar
5e6a6187de update and fmt code style 2018-05-06 18:04:31 +08:00
vcaesar
1f95f5f2ae update code and update some name 2018-04-30 23:38:34 +08:00
vcaesar
08341cc1aa Update CHANGELOG.md 2018-04-27 18:50:37 +08:00
vcaesar
a2645bafeb Update version 2018-04-27 18:03:16 +08:00
vcaesar
94423c71ec update some var name and merge some func 2018-04-26 22:39:31 +08:00
vcaesar
35215c9e70 optimize code func args 2018-04-22 23:55:49 +08:00
vcaesar
f5216aa9dc optimize code and update godoc 2018-04-22 23:34:04 +08:00
vcaesar
b618176823 update code and version 2018-04-20 23:19:22 +08:00
vcaesar
1b6fc08b8a add micro sleep time 2018-04-20 23:04:40 +08:00
vcaesar
fda0ba08a3 add linux typestr utf support 2018-04-20 22:38:40 +08:00
vcaesar
722b2b07e0 update godoc and deprecated GetBHandle 2018-04-11 21:14:57 +08:00
vcaesar
5957e315c9 update activePid allow Windows via hwnd 2018-04-11 21:07:17 +08:00
vcaesar
bec5c1e9c3 update and optimize func 2018-04-10 20:33:04 +08:00
vcaesar
d54cbecb37 update ci and add func internalFindBitmap 2018-04-10 20:06:03 +08:00
vcaesar
f6cd1d99dd update examples 2018-04-09 17:45:07 +08:00
vcaesar
cc49c369c7 update godoc and fmt code 2018-04-09 17:39:47 +08:00
vcaesar
b99914bc5e add find image by path 2018-04-09 17:34:02 +08:00
vcaesar
26e0b82abc update work path 2018-04-02 19:16:54 +08:00
vcaesar
8865d93a65 update pkg and version 2018-03-24 21:15:21 +08:00
vcaesar
15afbb6132 add func microsleep and update 2018-03-12 23:05:40 +08:00
vcaesar
600734c884 remove travis ci 1.8.x 2018-03-06 20:44:40 +08:00
vcaesar
39e40cddf9 add more open bitmap func 2018-03-06 17:40:01 +08:00
vcaesar
bdcad6d55d fmt go code 2018-02-25 15:54:12 +08:00
vcaesar
0b6a81e6f0 update godoc and examples and fix 2018-02-25 15:43:29 +08:00
vcaesar
0a93336c11 add scroll mouse support x, y 2018-02-25 15:22:52 +08:00
vcaesar
7ae127373e update getportion param to go type 2018-02-13 19:07:35 +08:00
vcaesar
0eda71b5e5 add get image size func 2018-02-13 18:56:57 +08:00
vcaesar
3c5e8caf89 add AddEvent "space" fix #110 2018-02-07 20:16:12 +08:00
vcaesar
9412f8be63 add move smooth return 2018-02-06 21:32:39 +08:00
vcaesar
1b840c8102 update move smooth fix #96 2018-02-06 18:21:08 +08:00
vcaesar
3c4a887903 Update Kill, README.md and examples 2018-02-03 17:42:38 +08:00
vcaesar
007a4d2ba6 update godoc 2018-02-03 17:32:21 +08:00
vcaesar
8a94d16c46 fmt and update keytoggle code 2018-02-03 16:24:49 +08:00
vcaesar
e0f9739fa2 update godoc 2018-02-03 16:15:57 +08:00
vcaesar
5b62cac9bc update and unify copyright year 2018-02-02 00:07:44 +08:00
vcaesar
83dcf38788 fix clipboard golint 2018-02-01 22:03:57 +08:00
vcaesar
b50a1410a1 fixed a mistake 2018-01-29 20:25:42 +08:00
vcaesar
9503875953 add esc support fix #105 2018-01-27 18:36:16 +08:00
vcaesar
b9836d769a update examples and remove useless function 2018-01-27 01:28:02 +08:00
vcaesar
401c700580 Update version 2018-01-25 22:27:56 +08:00
vcaesar
4cef045d73 Release 0.48.0 2018-01-25 21:24:39 +08:00
vcaesar
a8e57bc169 change some code style 2018-01-21 22:21:16 +08:00
vcaesar
065d1acc2b change some code style 2018-01-21 21:56:33 +08:00
vcaesar
a2ac46c3be add more examples 2018-01-18 21:39:27 +08:00
vcaesar
4ff2a48182 update godoc and paste string name 2018-01-17 19:06:23 +08:00
vcaesar
e1444437c2 add sleep and update README.md 2018-01-16 19:31:19 +08:00
vcaesar
5005c38b4f add utf-8 support 2018-01-16 18:01:19 +08:00
vcaesar
8733401ce5 add bitmap click and movesClick func 2018-01-13 21:49:13 +08:00
vcaesar
852a213e1c fix find bitmap float args 2018-01-09 20:30:25 +08:00
vcaesar
9f0400167b update bitmap name and add count of bitmap 2018-01-08 21:58:08 +08:00
vcaesar
aa247025d2 add more key listen 2018-01-06 18:15:50 +08:00
vcaesar
0feb5ee1b1 add active window by name 2018-01-04 20:01:45 +08:00
vcaesar
97f54f7f3d add count bitmap color func 2018-01-02 21:31:33 +08:00
vcaesar
6434928f2d fix some range and update c name 2017-12-30 17:49:15 +08:00
vcaesar
df79f9793b update some c name and fmt code 2017-12-29 20:24:47 +08:00
vcaesar
4af3883371 update screen and event c name 2017-12-29 20:18:28 +08:00
vcaesar
fc9bb0f605 update window and bitmap c name 2017-12-29 19:52:42 +08:00
vcaesar
182d9a9803 update key toggle and update keyboard c name 2017-12-29 19:36:08 +08:00
vcaesar
d238461afa update move mouse smooth and update mouse c name 2017-12-29 19:20:22 +08:00
vcaesar
b8413f7bd4 add tochar bitmap and gostring, update godoc and fmt code 2017-12-27 19:24:16 +08:00
weilong
379e12d968 change TostringBitmap return Fixed #93 2017-12-27 17:53:45 +08:00
vcaesar
4f85eb5056 add more color processing and conversion 2017-12-25 17:05:10 +08:00
vcaesar
bb7518a04a add ToMMRGBHex convert color hex 2017-12-25 00:53:22 +08:00
vcaesar
eb425d7652 update godoc and fmt code 2017-12-25 00:42:41 +08:00
vcaesar
08e95ff4d4 fix godoc error 2017-12-25 00:38:33 +08:00
weilong
43f7b348b5 use CBitmap covert to C.MMBitmapRef Fixed #90 2017-12-25 00:02:16 +08:00
vcaesar
633665224b add CBitmap and more examples 2017-12-24 23:01:22 +08:00
weilong
b5676fa258 add func ToBitmap Fixed #90 2017-12-24 20:48:35 +08:00
weilong
b35fdf1711 FindColorCS add param tolerance Fixed #84 2017-12-24 14:54:14 +08:00
vcaesar
883e9c24a9 fix keytap some error and fmt code 2017-12-24 02:07:41 +08:00
vcaesar
214ac59298 update keyboard code and add key delay 2017-12-24 01:56:02 +08:00
vcaesar
b55f438c1b add get pixel color return hex 2017-12-23 23:38:35 +08:00
vcaesar
7a1ffa66a9 update code and add func PointInBounds 2017-12-20 23:01:56 +08:00
vcaesar
15478423d7 remove robot examples 2017-12-13 22:15:27 +08:00
vcaesar
a7f2f933e1 Add SaveCapture, remove robot and add SaveCapture examples 2017-12-13 22:10:56 +08:00
vcaesar
d64394dfd6 Release 0.47.0 2017-12-12 18:47:25 +08:00
vcaesar
ebee256da1 Update version and add CODEOWNERS 2017-12-11 23:37:01 +08:00
vcaesar
a263c09d03 Update circle to 2.0 2017-12-11 23:12:56 +08:00
vcaesar
3eee78dbe7 Update README.md and godoc 2017-12-09 02:32:23 +08:00
vcaesar
efe8a698d3 Update README.md 2017-12-09 02:22:06 +08:00
vcaesar
95b90c19c9 Add mac deps and Update README.md, png_io, cgo link 2017-12-09 02:16:26 +08:00
vcaesar
3b959e4676 Add win32 deps and Update README.md 2017-12-08 23:47:07 +08:00
vcaesar
ad631a1f96 add windows dependency 2017-12-08 16:17:41 +08:00
vcaesar
bec112817b add FindColorCS, CHex type and update findcolor, code 2017-12-02 22:19:07 +08:00
vcaesar
18029106ac add kill the process 2017-11-29 16:22:16 +08:00
vcaesar
816bfeaba9 update CHANGELOG.md 2017-11-21 19:29:22 +08:00
vcaesar
453375cb59 update and fmt code 2017-11-20 22:03:30 +08:00
vcaesar
97a368ff0d update png io and clink 2017-11-20 21:40:15 +08:00
vcaesar
3bf311f348 add windows deps 2017-11-20 18:07:20 +08:00
vcaesar
10cf69cd93 Update README.md 2017-11-17 22:38:38 +08:00
vcaesar
37a19570e2 Update version 2017-11-10 21:30:11 +08:00
vcaesar
7dfebac8b9 rename BCaptureScreen and update code 2017-11-09 22:40:58 +08:00
vcaesar
f112ab1abc add no bitmap in master 2017-11-05 14:16:35 +08:00
vcaesar
02ca8ea6fe add more find bitmap 2017-11-04 21:57:09 +08:00
vcaesar
b8e7e584a7 add bitmap string func 2017-10-28 21:41:20 +08:00
vcaesar
5afcb0af9c Update examples 2017-10-20 15:32:34 +08:00
vcaesar
ea0b910646 Add find some color 2017-09-14 23:02:43 +08:00
vcaesar
6d2317ee69 Add getcolor and Update examples 2017-09-14 22:47:21 +08:00
vcaesar
979a569eda Update bitmap 2017-09-14 21:44:06 +08:00
vcaesar
d520880502 Update examples 2017-09-07 21:42:11 +08:00
vcaesar
7ecdc2b938 Update findbit api to classics 2017-08-24 21:31:42 +08:00
vcaesar
b19aa2cffa Update version 2017-08-24 20:55:25 +08:00
vcaesar
ca3c7a6c9b Update and fix bitmap 2017-08-24 20:34:45 +08:00
vcaesar
4c9ee3ff34 Fix move mose args 2017-08-12 18:42:19 +08:00
vcaesar
474f19b407 Update docs 2017-08-03 22:43:21 +08:00
vCaesar
6c8fdb8c48 Update docs 2017-07-25 23:16:24 +08:00
vCaesar
6e3a4db36a Update pid type and fix windows err 2017-07-13 22:40:56 +08:00
vCaesar
fc6720ac70 Add Active func 2017-07-13 22:02:27 +08:00
vCaesar
debec4a237 Update README.md and FindIds 2017-07-04 20:19:39 +08:00
vCaesar
e7e29b5f3f Update CHANGELOG.md 2017-07-02 12:52:25 +08:00
vCaesar
2c870bb7a0 Add README.md and update version 2017-07-02 12:01:07 +08:00
vCaesar
7ac679bf89 Fix godoc error 2017-07-02 11:53:31 +08:00
vCaesar
add045bd57 Update the code style 2017-07-01 20:24:35 +08:00
vCaesar
a3b40df21a Add more process func and vendor.json 2017-07-01 19:21:06 +08:00
vCaesar
44578aad48 Update freebitmap and rename some c func 2017-06-29 23:06:25 +08:00