Search found 1291 matches

by Blackholyman
27 Apr 2021, 03:28
Forum: Tutorials (v1)
Topic: MS Office COM Basics
Replies: 116
Views: 195984

Re: MS Office COM Basics

When i tried this, it did work but .Cells still doesnt work but getting A1 contents works with the other calls xlApp := ComObjCreate("Excel.Application") ; Create an Excel application xlApp.Visible := true ; Optional. Just remember to close Excel at the end if it is not visible MyWorkbook := xlApp....
by Blackholyman
10 Jul 2020, 05:20
Forum: Ask for Help (v1)
Topic: Trying to Generate DCT Matrix of Size 4x4, but it seems im doing something wrong as the cos() function returns 0
Replies: 3
Views: 1626

Trying to Generate DCT Matrix of Size 4x4, but it seems im doing something wrong as the cos() function returns 0

hi im trying to make a dct matrix wikipedia: https://en.wikipedia.org/wiki/Discrete_cosine_transform video=>https://greencoin.life/how-to/calculate/dct-coefficients-with-example/CAn-FzQkGTA <= not the best video but hey! i've split up the exp to try and debug it and for now it seems that the issue i...
by Blackholyman
11 Jun 2020, 06:22
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

Hey Thank you malcev for that help I made the last few parts happen from there #NoEnv #Persistent #SingleInstance Force SetBatchLines, -1 #Include Lib\OpenCV.ahk ; #Include Lib\gdip.ahk file := "Images\shapes.jpg" ; Create OpenCV instance. cv := new OpenCV() ; Start up gdip If !pToken := Gdip_Startu...
by Blackholyman
09 Jun 2020, 07:32
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

Hi malcev After seeing your working example above i have gone over all my class methods/functions with a fine tooth comb and did find out why FindContours kept failing even after making the size and other small fixes your version: _cvFindContours(cvimage, cvstorage, ByRef cvfirst_contour, cvheader_s...
by Blackholyman
09 Jun 2020, 06:50
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

Hi @just me

i'm using 32-bit AHK/dlls
by Blackholyman
08 Jun 2020, 16:17
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

okay i fixed those two back :) In my tests everything up until cv.FindContours() seems to be working without any errors but i truly do not know if the pointer i seem to be getting from this pcontours := cv.CreateSeq(0, 64, 16, pstorage) is right or if the parameters i am passing to cv.FindContours()...
by Blackholyman
08 Jun 2020, 13:45
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

Thank you Helgef I have removed the & from the return of both Scalar() , RGB() and DllStructCreate_tagCvSeq that was the only places I found that issue... okay thanks for the help malcev for now i did this tagCvContour := {"Offsets":{"flags" : 0 ; "int flags;" ; sequence flags, including the sequenc...
by Blackholyman
08 Jun 2020, 11:47
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

Hi malcev Thanks for helping, really not good at this but I am hoping to somehow solve it with some help :) After reading this topic https://www.autohotkey.com/boards/viewtopic.php?t=60442 where you get help by a few other members like just me and Helgef I tried changing it to this FindContours( cvi...
by Blackholyman
08 Jun 2020, 07:53
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

Re: OpenCV help - find the contour of many shapes

Here is a script that create's the image used in the example and in my script above #singleinstance force #noenv WriteFile("shapes.jpg", shapes_jpg()) ;BinWrite("shapes.jpg", shapes_jpg()) gui, add, pic, x100, shapes.jpg gui, add, text, xm, The Image above was created by the script. gui, show,, by V...
by Blackholyman
08 Jun 2020, 07:53
Forum: Ask for Help (v1)
Topic: OpenCV help - find the contour of many shapes
Replies: 18
Views: 5032

OpenCV help - find the contour of many shapes

Hi Im trying to convert this autoit OpenCv example to autohotkey Here is my code up to now #NoEnv #Persistent #SingleInstance Force SetBatchLines, -1 #Include <OpenCV> ;#Include <gdip> ; Create a fully opaque red brush (ARGB = Transparency, red, green, blue) to draw a circle ; pBrush := Gdip_BrushCr...
by Blackholyman
16 Apr 2020, 16:14
Forum: Ask for Help (v1)
Topic: API or activate script from web?
Replies: 3
Views: 1069

Re: API or activate script from web?

One way to do it is to use an API like PushBullet https://www.autohotkey.com/boards/viewtopic.php?f=7&t=4842
by Blackholyman
10 Dec 2019, 07:47
Forum: Ask for Help (v1)
Topic: Convert .ahk to .dll Topic is solved
Replies: 21
Views: 7076

Re: Convert .ahk to .dll Topic is solved

I feel that this topic is filled with misunderstanding Im not sure if OP really has a need for a dll as to me it seems that he just wishes to include some other ahk code he made but his attempt to use include have not worked so he now believes that he needs to make it in to a dll OP that is not how ...
by Blackholyman
04 Oct 2019, 06:57
Forum: Ask for Help (v1)
Topic: pixelgetcolor to variable
Replies: 2
Views: 806

Re: pixelgetcolor to variable

PixelGetColor Is a command not a function

A command like that has the return as the first parameter

So in your posted code the variable color holds the returned color from 900,400
by Blackholyman
01 Oct 2019, 06:58
Forum: Ask for Help (v1)
Topic: Pasting strings does not always work
Replies: 16
Views: 3148

Re: Pasting strings does not always work

adding sleep after the key input send ^v Seems to always work, as the other parts of the code is controlled, only how long the program that gets the ctrl+v takes to process that input is unknown so a sleep there is the best option ^+F6:: ClipSaved := ClipboardAll Clipboard := "Some line of text to b...
by Blackholyman
01 Oct 2019, 05:48
Forum: Ask for Help (v1)
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 6716

Re: Interacting with IE with COM Interface and Java Script

What part of what i said was not part of fixing your issue?

You can not interact with the element without waiting -> not doing so will make your code fail

You need to act on the frame’s document -> in your case .contentDocument worked

But great you made it work...
by Blackholyman
30 Sep 2019, 04:36
Forum: Ask for Help (v1)
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 6716

Re: Interacting with IE with COM Interface and Java Script

Why i asked for all your code was that in one of your images you had sleep between the navigate and the element interaction but in your 4 lines of code you do not after a navigate event you have to wait for the document your navigating to load before trying to interact with any elements on the new d...
by Blackholyman
27 Sep 2019, 02:51
Forum: Ask for Help (v1)
Topic: Interacting with IE with COM Interface and Java Script
Replies: 24
Views: 6716

Re: Interacting with IE with COM Interface and Java Script

Script issues are easier to help with if we see all of your code and if we have access to the thing giving you issues in your case one line is most likely not the only part of the problem so maybe post more of your script, also without access to your page with the framed elements it is harder to giv...
by Blackholyman
05 Sep 2019, 07:24
Forum: Ask for Help (v1)
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 2383

Re: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInter

I did continue chipping away at this... and have made a version that works on my windows 10 build 1607 This is able to send a view/window of it's own process (AHK GUI) or of another process (tested with Notepad) to another virtual desktop #Persistent #SingleInstance, force #NoEnv ; Recommended for p...
by Blackholyman
02 Sep 2019, 04:52
Forum: Ask for Help (v1)
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 2383

Re: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInter

Thank you both for helping me with this #SingleInstance, force ; create a new virtual desktop with ctrl + win + d Gui, new, +hwndhwnd Gui, add, text,, let us try and move this window to another virtual desktop Gui, add, button, w100, Ok Gui, show return Cancel: ExitApp return buttonok: ; IVirtualDes...
by Blackholyman
02 Sep 2019, 02:00
Forum: Ask for Help (v1)
Topic: Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'
Replies: 6
Views: 2383

Getting '0xC0000005' = 'Access Violation' when trying to use 'CanViewMoveDesktops' from 'IVirtualDesktopManagerInternal'

Hi, I'm trying to move a top level window to another virtual desktop without switching virtual desktop (not to easy it seems) examples: ( VirtualDesktop.ps1 ) ( VirtualDesktop is C# wrapper for IVirtualDesktopManager on Windows 10. ) after finding those two examples above i continued searching the i...

Go to advanced search