Search found 709 matches

by malcev
03 Jan 2019, 14:42
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function

Helgef, Can You convert your function for ahk v1?
Thank You!
by malcev
02 Jan 2019, 17:43
Forum: Ask For Help
Topic: WinHttp Error
Replies: 4
Views: 885

Re: WinHttp Error

Server have changed protocol.
by malcev
30 Dec 2018, 10:21
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function

Helgef, may be this information and your examples will be useful here?
https://autohotkey.com/docs/commands/DllCall.htm#struct
by malcev
29 Dec 2018, 13:18
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function

It does not return error, but result structure is corrupted: https://docs.opencv.org/2.4/modules/core/doc/old_basic_structures.html#IplImage width := 100 height := 100 DllCall("LoadLibrary", "Str", "opencv_core2413.dll", "Ptr") VarSetCapacity(cvsize, 8, 0) NumPut(width, cvsize, 0, "int") NumPut(heig...
by malcev
29 Dec 2018, 12:25
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function

This code does not work: width := 100 height := 100 window := "test" DllCall("LoadLibrary", "Str", "opencv_core2413.dll", "Ptr") DllCall("LoadLibrary", "Str", "opencv_highgui2413.dll", "Ptr") VarSetCapacity(cvsize, 8, 0) NumPut(width, cvsize, 0, "int") NumPut(height, cvsize, 4, "int") pimg := DllCal...
by malcev
29 Dec 2018, 12:02
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function

But if I have this structure (4 elements "doubles")?
double d0,
double d1 = 0,
double d2 = 0,
double d3 = 0
by malcev
29 Dec 2018, 11:54
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function (Feature Request)

Therefore the correct variant to send copy of structure is code by swagfag ? VarSetCapacity(cvsize, 8, 0) NumPut(100, cvsize, 0, "int") NumPut(100, cvsize, 4, "int") msgbox % DllCall("opencv_core2413.dll\cvCreateImage", "int64", cvsize, "int", IPL_DEPTH_8U := 8, "int", channels := 2, "Cdecl Ptr") ms...
by malcev
29 Dec 2018, 11:10
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Re: Passing structure to function (bug?)

Why Autohotkey can not pass copy of structure directly as it does autoit?
https://www.autoitscript.com/autoit3/do ... llCall.htm
* Add * to the end of another type to pass it by reference. For example "int*" passes a pointer to an "int" type.
May be move this topic to feature request?
by malcev
29 Dec 2018, 08:42
Forum: Ask For Help
Topic: Passing structure to function
Replies: 41
Views: 7297

Passing structure to function

I can not pass structure pointer to function: https://docs.opencv.org/2.4/modules/core/doc/old_basic_structures.html#createimage CreateImage Creates an image header and allocates the image data. C: IplImage* cvCreateImage(CvSize size, int depth, int channels) Python: cv.CreateImage(size, depth, chan...
by malcev
26 Dec 2018, 15:48
Forum: Ask For Help
Topic: AccessibleObjectFromWindow does not execute method accFocus in Firefox
Replies: 11
Views: 2207

Re: AccessibleObjectFromWindow does not execute method accFocus in Firefox

As I understand when You performing accFocus on an object You should expect getting IDispatch Interface: https://autohotkey.com/board/topic/77303-acc-library-ahk-l-updated-09272012/#entry493735 I also tried to test it with ComObjQuery - the same result. f11:: Acc := Acc_ObjectFromWindow(WinExist("A"...
by malcev
24 Dec 2018, 08:39
Forum: Ask For Help
Topic: AccessibleObjectFromWindow does not execute method accFocus in Firefox
Replies: 11
Views: 2207

AccessibleObjectFromWindow does not execute method accFocus in Firefox

If We run https://www.google.com in Firefox, then place mouse in front of goole search input and press f11, then we will get focused control from AccessibleObjectFromPoint function, but we will not get focused control from AccessibleObjectFromWindow function. f11:: Acc := Acc_ObjectFromPoint() GoSub...
by malcev
19 Dec 2018, 16:43
Forum: Ask For Help
Topic: ActiveX Download
Replies: 4
Views: 696

Re: ActiveX Download

I did not work with several redirects, but I think that You can read all response headers and manually navigate to the redirected page.
by malcev
19 Dec 2018, 15:17
Forum: Ask For Help
Topic: ActiveX Download
Replies: 4
Views: 696

Re: ActiveX Download

I can't use WinHTTP Com Object because I always get an error about TLS
Use Msxml2.XMLHTTP object.
by malcev
18 Dec 2018, 15:46
Forum: Ask For Help
Topic: ActiveX : How to evaluate Javascript?
Replies: 21
Views: 3787

Re: ActiveX : How to evaluate Javascript?

SKAN , You have to do it like this: MsgBox % eval("window.btoa('Suresh');") ; Should be U3VyZXNo eval(exp) { oHTML := ComObjCreate("HTMLfile") oHTML.write("<meta http-equiv='X-UA-Compatible' content='IE=edge'>") ; documentmode IE11 oHTML.write("<body><script>document.body.innerText=" exp "</script>...
by malcev
17 Dec 2018, 15:06
Forum: Ask For Help
Topic: getting a link's URL or the content of a tooltip
Replies: 11
Views: 2724

Re: getting a link's URL or the content of a tooltip

While testing I notice that this situation is only with object pane, therefore I modify function like this: f1:: MsgBox % GetTextUnderMouse() GetTextUnderMouse() { Acc := Acc_ObjectFromPoint(child) try value := Acc.accValue(child) if Not value try value := Acc.accName(child) if (Acc.accRole(child) =...
by malcev
16 Dec 2018, 09:15
Forum: Ask For Help
Topic: getting a link's URL or the content of a tooltip
Replies: 11
Views: 2724

Re: getting a link's URL or the content of a tooltip

It is interesting for me is it possible with acc always get info under cursor. Your last improved function works good, but it is no so fast, therefore I think it is better to modify it like this: And it does not work with chrome "Bookmark this page icon" - it shows wrong element, also it does not wo...
by malcev
15 Dec 2018, 23:15
Forum: Ask For Help
Topic: getting a link's URL or the content of a tooltip
Replies: 11
Views: 2724

Re: getting a link's URL or the content of a tooltip

Thank You.
It does not work with chrome bookmarks bar.

Go to advanced search