Search found 223 matches

by sancarn
05 Jun 2019, 20:40
Forum: Ask For Help
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 267

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
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 267

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
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 267

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
Topic: Library - Preserve autoexecute section? Topic is solved
Replies: 10
Views: 267

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
Topic: CLR compiling - continuation section tricks
Replies: 5
Views: 391

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
Topic: TreeView Large Icons - Is it possible? Topic is solved
Replies: 3
Views: 112

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
Topic: TreeView Large Icons - Is it possible? Topic is solved
Replies: 3
Views: 112

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: 101
Views: 9470

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: 101
Views: 9470

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: 101
Views: 9470

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: 101
Views: 9470

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: 101
Views: 9470

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
Topic: UIA Automation - Inspect.exe for AHK
Replies: 9
Views: 3830

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
Topic: Why can AHK inject functions into IE such that they can be called from JS so easily?
Replies: 0
Views: 358

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
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 142
Views: 43592

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
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 142
Views: 43592

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
Topic: ObjRegisterActive
Replies: 43
Views: 14478

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
Topic: Acc library: Ideas for new functions.
Replies: 6
Views: 765

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
Topic: Acc library: Ideas for new functions.
Replies: 6
Views: 765

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...
by sancarn
22 Dec 2017, 04:26
Forum: Scripts and Functions
Topic: AccV2
Replies: 24
Views: 2768

Re: AccV2

Because of this topic and because I had the time I tried to complete my scripts in regard to the basic features. I'm still not interested enough to do further development, but I want to share what I have so far. Maybe you or someone else is interested in using (parts) of the code and will save some...

Go to advanced search