From 8971a84514e2232ef6b207c7fc405436c5bb8c8c Mon Sep 17 00:00:00 2001 From: vCaesar Date: Fri, 12 May 2017 21:12:06 +0800 Subject: [PATCH] Add arr and Update version --- robotgo.go | 2 +- window/arr.h | 26 ++++++++++++++++++++++++++ window/goWindow.h | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 window/arr.h diff --git a/robotgo.go b/robotgo.go index 6d5c7bf..a2fe991 100644 --- a/robotgo.go +++ b/robotgo.go @@ -52,7 +52,7 @@ import ( ) const ( - version string = "v0.43.0.306, Matterhorn Alps!" + version string = "v0.43.0.314, Matterhorn Alps!" ) // GetVersion get version diff --git a/window/arr.h b/window/arr.h new file mode 100644 index 0000000..26bc835 --- /dev/null +++ b/window/arr.h @@ -0,0 +1,26 @@ +// #include +// #include +// #include + +struct Arr{ + int len; + int cnu; + char** pName; + int *pId; +}; + +// int init_Arr(struct Arr *pArray, int len){ +// pArray->pName = (char**)malloc(sizeof(char*)*len); +// pArray->pId = (int*)malloc(sizeof(int)*len); +// if(NULL == pArray->pName){ +// printf("false \n"); +// return 1; +// }else{ +// pArray->len = len; +// pArray->cnu = 0; +// printf("true %d \n", pArray->len); +// return 0; +// } + +// return 0; +// } \ No newline at end of file diff --git a/window/goWindow.h b/window/goWindow.h index 616e764..973f537 100644 --- a/window/goWindow.h +++ b/window/goWindow.h @@ -32,7 +32,7 @@ void aCloseWindow(void){ CloseWin(); } -bool aSetHandle (uintptr handle){ +bool aSetHandle(uintptr handle){ bool hwnd = setHandle(handle); return hwnd; }