Search found 32 matches

by RazorHalo
17 Feb 2020, 23:31
Forum: Ask For Help
Topic: AhkThread() from inline code vs separate file
Replies: 3
Views: 1672

Re: AhkThread() from inline code vs separate file

Ah Ok, I see now. For some reason I was thinking that AhkThread() treated the script file it created the thread from like it was part of the main code, just as if it had been inline code, not a completely separate script.
by RazorHalo
17 Feb 2020, 21:35
Forum: Ask For Help
Topic: AhkThread() from inline code vs separate file
Replies: 3
Views: 1672

AhkThread() from inline code vs separate file

Is there some difference for commands used on threads created with inline code vs separate script file? In the examples functions like Alias() and CritialObject() work fine when using a thread created within the main script project1:={Key:"this is a test"} cObj := CriticalObject(project1) threadD :=...
by RazorHalo
17 Feb 2020, 17:25
Forum: Ask For Help
Topic: ObjShare() example Topic is solved
Replies: 3
Views: 2246

Re: ObjShare() example Topic is solved

Thanks HotKeyIt, I did not realize that syntax was different.

I can't seem to find reference to that in the docs...is that just for _H specific functions called from within AhkThread()?
by RazorHalo
17 Feb 2020, 01:59
Forum: Ask For Help
Topic: ObjShare() example Topic is solved
Replies: 3
Views: 2246

ObjShare() example Topic is solved

First time trying out AutoHotKey_H v1 to see if the Multi-Threading will help my script. Reading the docs it seems pretty simple to use ObjShare() to be able to access my class method from the thread started with AhkThread() . I have been trying everything I can think of for hours now and I can't ev...
by RazorHalo
14 Apr 2019, 00:17
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

Ok well, I found the problem. I actually wasn't passing the Pointer to the graphicspath to the GDip_IsVisiblePathPoint Function. I was using OnMessage(0x200, "OnWM_MOUSEMOVE") to continuously detect where the mouse was and didn't realize that when running the hit test from that function I had not de...
by RazorHalo
13 Apr 2019, 21:02
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

It could be, I've tried updating some of them that are used in this sample script Gdip_StartPathFigure Gdip_ClosePathFigure Gdip_AddPathLine and it works now on x32 but only if I also take out the RotateAtCenter Function, I'm pretty sure its because that function uses the function Gdip_GetPathWorldB...
by RazorHalo
13 Apr 2019, 17:00
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

Thanks swagfag! I see now what I was missing. so now I have this: ;##################################################################################### ; HitTest Function by RazorHalo ;##################################################################################### Gdip_IsVisiblePathPoint(pPat...
by RazorHalo
13 Apr 2019, 15:25
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

I'm now trying to do a hit test to see if the mouse is inside that graphics path using the GDI+ function "GdipIsVisiblePathPoint" https://docs.microsoft.com/en-us/previous-versions//ms535573(v=vs.85) And have wrote the wrapper as: Gdip_IsVisiblePathPoint(pPath, x, y, pGraphics) { Ptr := A_PtrSize ? ...
by RazorHalo
13 Apr 2019, 13:28
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

It's seems to be failing for you when trying to create the layered Gui but I don't see why. I've looked at a couple of examples of creating a layered Gui to the drawing on and don't see anything out of place there...
by RazorHalo
13 Apr 2019, 12:01
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

iPhilip As posted, the sample script generates an error. What is the error your getting? I'm using the Gdip_All.ahk file from the first post of this thread and only the functions defined within the sample script itself as far as I can tell. On my system it generates a Gui with a rotating square in ...
by RazorHalo
13 Apr 2019, 00:22
Forum: Ask For Help
Topic: Rotating a Graphics Path in GDI+ Topic is solved
Replies: 3
Views: 662

Re: Rotating a Graphics Path in GDI+ Topic is solved

I have figured it out. It turns out I was using A_PtrSize ? "UPtr*" : "UInt*" with the asterisk when it should have been A_PtrSize ? "UPtr" : "UInt" I have posted the completed Matrix functions and sample script in the GDI+ main thread here https://www.autohotkey.com/boards/viewtopic.php?f=6&t=6517&...
by RazorHalo
13 Apr 2019, 00:15
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

Thanks guys, after playing around for a few hours I was able to get it working. Here are the GDip Matrix functions I wrapped for the rotations and a sample script to see it implemented. The thing that got me stuck the most was not realizing the order the transformations were applied with the MatrixO...
by RazorHalo
12 Apr 2019, 01:20
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 365
Views: 123669

Re: GDI+ standard library 1.45 by tic

Hi All, I was wondering if using DllCall can we only access the Functions of GDI+ or is there also a way to use it's methods. I want to rotate a graphicspath on the center of its bounding rectangle and it would be a lot easier if I could use the RotateAt method. It looks to me like I can only access...
by RazorHalo
09 Apr 2019, 22:10
Forum: Ask For Help
Topic: Rotating a Graphics Path in GDI+ Topic is solved
Replies: 3
Views: 662

Re: Rotating a Graphics Path in GDI+ Topic is solved

I have read that post. I have searched for quite a while but not found an answer. That post uses RotateWorldTransfom,which will rotate the entire layered window and all the graphics paths that are drawn on it. I have displayed several shapes with graphics paths and used RotateWorldTransform function...
by RazorHalo
09 Apr 2019, 20:02
Forum: Ask For Help
Topic: Rotating a Graphics Path in GDI+ Topic is solved
Replies: 3
Views: 662

Rotating a Graphics Path in GDI+ Topic is solved

Been stumped on this for a few days now, I'm just trying to rotate a Graphics path in GDI+. I can't seem to do it. I know I can use Gdip_RotateWorldTransform but that rotates all my graphics paths. I just want to rotate one. I have studied the MSDN docs on the Graphics Transform methods and think th...
by RazorHalo
06 May 2018, 23:29
Forum: Ask For Help
Topic: Receive web API call with AHK
Replies: 4
Views: 963

Re: Receive web API call with AHK

I have done up my tutorial which can be found here https://autohotkey.com/boards/viewtopic ... 93#p216793
by RazorHalo
06 May 2018, 23:27
Forum: Tutorials
Topic: Podio Web API Tutorial
Replies: 0
Views: 2510

Podio Web API Tutorial

I have been working with Podio to organize the shop i work at and have needed it to do things automatically and have ways to create, modify and delete items in it which can't be accomplished with its own web interface. Some things could be done with it's Globiflow integration, but that is another ac...
by RazorHalo
13 Apr 2018, 16:55
Forum: Ask For Help
Topic: Receive web API call with AHK
Replies: 4
Views: 963

Re: Receive web API call with AHK

Thanks BoBo. That's what I was looking for. Development is coming along quite well now. Podio seems to be a great platform and has a lot of capability even with their free plan. I use it to organize everything at my work and wanted to automate a bunch of stuff. I ended up using AHksock as there is v...
by RazorHalo
28 Mar 2018, 00:08
Forum: Ask For Help
Topic: Receive web API call with AHK
Replies: 4
Views: 963

Receive web API call with AHK

I am using AHK to interact with Podio for organizing my work projects. I can send WinHTTP requests and get data back no problem. Podio allows you to use hooks to automatically send data out when Podio item are created/updated/deleted etc. The hooks are sent out to any URL you specify. I would like t...
by RazorHalo
06 Sep 2017, 22:55
Forum: Scripts and Functions
Topic: [Class] ImageButton
Replies: 132
Views: 53970

Re: [Class] ImageButton

Hi, I'm using the ImageButton Class with icons that have a transparent background. It works flawlessly. But now I'm using it in conjunction with the FileInstall method to used image resources in the compiled script as described in this thread. https://autohotkey.com/boards/viewtopic.php?f=5&t=4990&h...

Go to advanced search