Search found 224 matches

by sancarn
21 Jun 2019, 11:19
Forum: General Discussion
Topic: WebView2
Replies: 15
Views: 9200

WebView2

Exciting times:

https://docs.microsoft.com/en-us/microsoft-edge/hosting/webview2/reference/iwebview2webview

This extends IUnknown and therefore in theory it's an ActiveX control! I.E. Edge/Chromium GUI's embedded in AHK soon?!
by sancarn
05 Jun 2019, 20:40
Forum: Ask for Help (v1)
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 2163

Re: Library - Preserve autoexecute section? Topic is solved

This would trigger an error: #Warn _:=_ As would var2 := var1 , if var1 was not previously assigned. Handling #Warn is something worth considering if sharing your scripts widely. I.e. assigning variables, and using 'local' in functions, where appropriate, to avoid triggering #Warn errors. Thanks fo...
by sancarn
05 Jun 2019, 16:47
Forum: Ask for Help (v1)
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 2163

Re: Library - Preserve autoexecute section? Topic is solved

Hmm unfortunately a label can't point to a function, so if it was done like swagfag suggested the following wouldn't work: ;do stuff return #include CGUI.ahk someFunc(){ } So here's a quick hack which resolves the ahk error! Goto End_CGUI #NoEnv Class CGUI { ... ... ... } #include %A_LineFile%\..\gd...
by sancarn
05 Jun 2019, 15:25
Forum: Ask for Help (v1)
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 2163

Re: Library - Preserve autoexecute section? Topic is solved

Why do you want it at the top? Put it at the bottom, or use goto. Personally I always prefer to have all my includes at the top, mainly because that's how I'd do it in any other language (C/C#/Ruby/Node/Python/...). I assume others are the same. Anyway this is besides the point. The point is, the l...
by sancarn
05 Jun 2019, 13:25
Forum: Ask for Help (v1)
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 2163

Library - Preserve autoexecute section? Topic is solved

I'm trying to maintain the CGUI library for ahk. https://github.com/sancarn/CGUI One thing I noticed is that if you include CGUI at the top of your script like: #include CGUI.ahk ;do stuff return Your code simply doesn't execute. It will only execute if the include statement is present after the ret...
by sancarn
02 Jun 2019, 07:04
Forum: Scripts and Functions (v1)
Topic: CLR compiling - continuation section tricks
Replies: 6
Views: 2443

Re: CLR compiling - continuation section tricks

Cool stuff. IIRC you should use @"%var%" because I think the @ makes it a heredoc. See this example. This way it can easily deal with new lines and stuff :)
by sancarn
01 Jun 2019, 13:47
Forum: Ask for Help (v1)
Topic: TreeView Large Icons - Is it possible? Topic is solved
Replies: 3
Views: 1091

Re: TreeView Large Icons - Is it possible? Topic is solved

Huh... I swear I tried this already, but obviously not lol.

Thanks
by sancarn
01 Jun 2019, 12:41
Forum: Ask for Help (v1)
Topic: TreeView Large Icons - Is it possible? Topic is solved
Replies: 3
Views: 1091

TreeView Large Icons - Is it possible? Topic is solved

I've been browsing around for a while now... Have a bit of an issue where I find it difficult to see the tiny icons of the treeview in my AHK app. I have no idea how to make the icons bigger though and don't even know if it is possible?

Anyone have any ideas?
by sancarn
30 May 2019, 15:18
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 108
Views: 40438

Re: [Request]: Official Library & Wrapper

There's no point in having that if Lexikos has no intention of shipping AHK with a stdlib. A package manager fills that purpose to download and "install" whatever packages you want. I don't think we will ever get to the point of versioning packages like npm does. We just need a repository of code w...
by sancarn
30 May 2019, 13:01
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 108
Views: 40438

Re: [Request]: Official Library & Wrapper

To be fair, on reflection, my comment was also in regards of a package manager. A package manager would be an ideal work around but it looks like the thread author was talking about a standard compiled set of existing scripts which work well as a package. Unfortunately though I think most packages d...
by sancarn
30 May 2019, 02:53
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 108
Views: 40438

Re: [Request]: Official Library & Wrapper

You collected a lot of code in a repository in aspdm and then offered a static download to that. That's a nice collection of scripts. It is completely unrelated to what a package manager is though. In all fairness this thread isn’t about a package manager. It’s about a standard library. I.E. A libr...
by sancarn
28 May 2019, 18:01
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 108
Views: 40438

Re: [Request]: Official Library & Wrapper

So... we're going back to Github? :mrgreen: :thumbup: For what it's worth I think Tanks suggestion is going to be the easiest and simplest to execute: [ { "Author": "Author", "Thread URL": "Thread URL", "GitHub Zip": " GitHub Zip" }, { "Author": "Author", "Thread URL": "Thread URL", "GitHub Zip": "...
by sancarn
24 Oct 2018, 06:26
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 108
Views: 40438

Re: [Request]: Official Library & Wrapper

* Library should be hosted on GitHub * Library should have a support thread on the forum * Library should have general instruction readme on GitHub. * Library scripts should have links to the support thread and GitHub in header comments. Do at least this and i will set a cron job to use a page just...
by sancarn
15 Aug 2018, 11:13
Forum: Scripts and Functions (v1)
Topic: UIA Automation - Inspect.exe for AHK
Replies: 10
Views: 10403

Re: UIA Automation - Inspect.exe for AHK

Afraid not! I haven't worked on this in a while, let alone in AHK...
by sancarn
23 Jun 2018, 08:51
Forum: Ask for Help (v1)
Topic: Why can AHK inject functions into IE such that they can be called from JS so easily?
Replies: 0
Views: 819

Why can AHK inject functions into IE such that they can be called from JS so easily?

Hi all, So last week I posted this stackoverflow question . For those who don't already know you can inject AHK functions into Internet Explorer such that they can be called from JavaScript. An Example: #Persistent html = ( <html> <head> <script> document.setVar = function`(name,val`){ document[name...
by sancarn
28 May 2018, 12:13
Forum: Scripts and Functions (v1)
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 200
Views: 116058

Re: .NET Framework Interop (CLR, C#, VB)

Even more so, I figured out how to get members and get length etc. In a really nice way. Requires a few extra references but it is totally worth it: #include CLR.ahk C# = ( using System; //For Types using System.Windows.Forms; //For MessageBox using System.Reflection; //For BindingFlags using System...
by sancarn
28 May 2018, 10:35
Forum: Scripts and Functions (v1)
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 200
Views: 116058

Re: .NET Framework Interop (CLR, C#, VB)

@evilC I actually think it is not possible with how AHK currently sends variables to .NET (or with how .NET casts these to object). I made the following code: #include CLR.ahk C# = ( using System; //For Types using System.Windows.Forms; //For MessageBox using System.Runtime.InteropServices; //For Ma...
by sancarn
28 Mar 2018, 03:52
Forum: Scripts and Functions (v1)
Topic: ObjRegisterActive
Replies: 57
Views: 39632

Re: ObjRegisterActive

Does using ObjRegisterActive mean that now we can write AHK apps which can be controlled by COM by other programs written in other languages? Yes. It's easy to do from VBScript. However, it seems GetObject() requires a ProgID rather than a CLSID, so you need to register it in the registry. ' First ...
by sancarn
24 Dec 2017, 13:29
Forum: Ask for Help (v1)
Topic: Acc library: Ideas for new functions.
Replies: 6
Views: 2156

Re: Acc library: Ideas for new functions.

- I don't know if this is possible with either UI Automation or Acc, but one potential area of interest would be to be able to retrieve the left/right caret positions in a control/element, that way you could retrieve text before/in/after a selection, or text in a selection and a bit either side of ...
by sancarn
22 Dec 2017, 04:33
Forum: Ask for Help (v1)
Topic: Acc library: Ideas for new functions.
Replies: 6
Views: 2156

Re: Acc library: Ideas for new functions.

Would like to be able to get tooltip information when over a control and store it into a file. Something that would work over multiple applications, to include both Microsoft (Word, Notepad, Edge, etc...) and non-Microsoft apps (like Firefox, VLC, etc..). This would be great, although sadly I'm not...

Go to advanced search