Search found 37 matches

by JoeSchmoe
17 Feb 2019, 12:03
Forum: Ask For Help
Topic: Array Concatenation Topic is solved
Replies: 9
Views: 834

Re: Array Concatenation Topic is solved

For the benefit of fellow archive searchers, here is a simple function I use: FirstArray := ["1.1", "1.2", "1.3"] SecondArray := ["2.1", "2.2", "2.3"] ArrayPush(FirstArray, SecondArray) For, key, val in FirstArray MsgBox, % key " is " val ArrayPush(ByRef Array1, Array2) { loop % Array2.length() ; it...
by JoeSchmoe
04 Dec 2018, 17:28
Forum: Ask For Help
Topic: Why are HWNDs converted to decimal?
Replies: 1
Views: 126

Why are HWNDs converted to decimal?

I use a lot of HWNDs to compare windows (ahk_id type stuff). Sometimes when I display the HWND via a tooltip it comes out in decimal and sometimes as Hex. For example, when I use Winget with the "List" command, I get hex. However, when I store the HWNDs in an object, they are converted to decimals. ...
by JoeSchmoe
04 Dec 2018, 14:56
Forum: Ask For Help
Topic: Check if a WinID is in a WinGroup Topic is solved
Replies: 2
Views: 164

Re: Check if a WinID is in a WinGroup Topic is solved

Thanks, jeeswg, I modified your code and it's working now! :dance:
by JoeSchmoe
03 Dec 2018, 16:47
Forum: Ask For Help
Topic: Check if a WinID is in a WinGroup Topic is solved
Replies: 2
Views: 164

Check if a WinID is in a WinGroup Topic is solved

Hello, folks...

I know the ahk_id of a window and I want to know if that window is in a specific ahk_group.

Is there a clever way to check?

Should "IfWinExist, ahk_ID %MyWinID% ahk_group %MyWinGroup%" work? It's not working for me. Wondering if I'm just missing something.

:?:
by JoeSchmoe
15 Mar 2018, 10:02
Forum: Ask For Help
Topic: Access Parent Instance Variables from a Nested Class
Replies: 5
Views: 290

Re: Access Parent Instance Variables from a Nested Class

The important point is that instantiating either of the two classes, doesn't imply an instance of the other. Hence, as hinted by nnnik , if the child needs a parent, the child needs to create it (the parent doesn't need to know :shh: ), or the parent needs to create a child and tell it (and then th...
by JoeSchmoe
16 Feb 2018, 15:50
Forum: Ask For Help
Topic: Access Parent Instance Variables from a Nested Class
Replies: 5
Views: 290

Access Parent Instance Variables from a Nested Class

Hello,

Is there a recommended way for a method in a nested class to access the properties of the parent object?

For example:

Code: Select all

class ClassName 
{
    InstanceVar := Expression
    class NestedClass
    {
    	Method()
    	{
        	; How do I access InstanceVar from here?
    	}
     }
}
by JoeSchmoe
11 Feb 2018, 23:11
Forum: Ask For Help
Topic: Running AHK via Task Scheduler with upgraded privileges
Replies: 2
Views: 186

Re: Running AHK via Task Scheduler with upgraded privileges

Thank you very much, Lexikos. It's nice to have such a clear answer. It looks like it is therefore impossible to get Autohotkey to run interactively with admin privileges form a non-admin account. I say this because the following post suggests to get admin privileges from a non-admin account, you ha...
by JoeSchmoe
09 Feb 2018, 13:09
Forum: Ask For Help
Topic: Running AHK via Task Scheduler with upgraded privileges
Replies: 2
Views: 186

Running AHK via Task Scheduler with upgraded privileges

Heya, folks. I've been running my "AlwaysRunning" script for years using Task Scheduler, but I've noticed that sometimes the icon doesn't appear in the task bar and sometimes other scripts can't find the AlwaysRunning window with WinExist. Has anyone else run AHK using Task Scheduler? If so, what se...
by JoeSchmoe
09 Feb 2018, 12:55
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 126
Views: 47860

Re: Get the URL of the current (active) browser tab

Thanks for continuing to maintain, ATNBueno. You're the best. :)
by JoeSchmoe
06 Jan 2018, 10:32
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 263
Views: 64145

Re: GDI+ standard library 1.45 by tic

Thanks
by JoeSchmoe
03 Jan 2018, 19:29
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 263
Views: 64145

Re: GDI+ standard library 1.45 by tic

Am I correct in understanding that everyone should use the mmikeww AHKv2-Gdip version? It seems to be the most compatible. (I actually use AHK 1.1)
by JoeSchmoe
03 Jan 2018, 19:26
Forum: Scripts and Functions
Topic: GDI+ standard library 1.45 by tic
Replies: 263
Views: 64145

Re: GDI+ standard library 1.45 by tic

just for reference for people reading: tic's original: https://github.com/tariqporter/Gdip/blob/master/Gdip.ahk Rseding's unicode and x64 Gdip_All fixes: https://www.dropbox.com/s/0e9gdfetbfa8v0o/Gdip_All.ahk AHK v2 version (now also backward compatible with v1 thanks to @nnnik): https://github.com...
by JoeSchmoe
28 Oct 2017, 18:19
Forum: Scripts and Functions
Topic: [Script] KeypressOSD - Display key press on screen
Replies: 613
Views: 67151

Re: [Script] KeypressOSD - Display key press on screen

Amazing work, Marius. Is there a way to configure the script so that it keeps special keys visible after you press another key? (The way it keeps other characters visible after you press another key?) I'd like to use this program to teach people how to optimally use their keyboard in technical compu...
by JoeSchmoe
31 Jan 2017, 14:51
Forum: Ask For Help
Topic: AHK Window is findable, but SendMessage (Send_WM_COPYDATA) sometimes fails
Replies: 0
Views: 211

AHK Window is findable, but SendMessage (Send_WM_COPYDATA) sometimes fails

Hello, Hello, I'm trying to use SendMessage to send messages from one AHK script to another. I'm using the classic Send_WM_COPYDATA code that maybe Chris wrote back in the day. It works most of the time, but sometimes SendMessage returns "Fail." Here's the code I'm using: HeyJarvis(Object) { TargetS...
by JoeSchmoe
05 Jul 2016, 19:37
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 126
Views: 47860

Re: Get the URL of the current (active) browser tab

I just want to say that I use some code based on this code every day. It works wonderfully!
by JoeSchmoe
27 Mar 2016, 18:38
Forum: Offtopic
Topic: AutoHotkey User Survey
Replies: 24
Views: 3833

Re: AutoHotkey User Survey

I loved the survey and was happy to see that people were looking into it. Who wrote it?
by JoeSchmoe
27 Mar 2016, 18:33
Forum: Scripts and Functions
Topic: Columbus - a fast program launcher/searcher
Replies: 147
Views: 29885

Re: Columbus - a fast program launcher/searcher

I'm quite happy to see you still working on it as well, Run1e. Don't worry about doing what you need to do!
by JoeSchmoe
17 Mar 2016, 14:31
Forum: Ask For Help
Topic: [Solved:] {F8}{F8} as trigger
Replies: 2
Views: 294

Re: [Solved:] {F8}{F8} as trigger

Here is the most elegant solution I've found so far: F8:: If (A_PriorKey == "F8") { MsgBox, You pressed F8 twice in a row! } Return For A_PriorKey to be of use, the keyboard or mouse hook must be installed and key history must be enabled. They were enabled by default for me. Bonus: F8:: If (A_PriorK...
by JoeSchmoe
17 Mar 2016, 13:11
Forum: Ask For Help
Topic: [Solved:] {F8}{F8} as trigger
Replies: 2
Views: 294

Re: {F8}{F8} as trigger

ShadowKnight helpfully suggested the following solution, but I don't think it quite does what I was looking for: F8::RapidHotkey("actions") actions: MsgBox F8 has been pressed twice. return It requires the following library: https://autohotkey.com/board/topic/35566-rapidhotkey/ The current version o...
by JoeSchmoe
17 Mar 2016, 11:50
Forum: Ask For Help
Topic: [Solved:] {F8}{F8} as trigger
Replies: 2
Views: 294

[Solved:] {F8}{F8} as trigger

Hi folks, What is the best way to have {F8}{F8} as a trigger for a hotkey? I don't want the script to do anything unless F8 is pressed twice consecutively. However, whenever F8 is pressed consecutively (no matter what happens before or after) I want a specific gosub to be called immediately . It's n...

Go to advanced search