Search found 76 matches

by coffee
22 Oct 2018, 01:15
Forum: Ask For Help
Topic: Anyone had success with compiling scripts in v2?
Replies: 10
Views: 208

Re: Anyone had success with compiling scripts in v2?

Use flipeador's ahk2exe remake and see if it works for you (if you can make out the spanish). He's a mod here on the forum. He has fincs' directives and a bunch of other stuff. Fincs' is basically vaporware at this point.
https://github.com/flipeador/Ahk2Exe
by coffee
21 Oct 2018, 20:56
Forum: AutoHotkey v2 Development
Topic: Bug: GuiCtrl.Pos[xyhw]
Replies: 13
Views: 526

Re: Bug: GuiCtrl.Pos[xyhw]

x.y[z] is the same as x[y,z] , which is not the same as x.y.z which is the same as (x.y).z . Basically, it means that when you do GuiCtrl.Pos['x'] you are treating the GuiCtrl object as if it was multidimensional, which it isn't, so there is an error. Example for custom properties, It is multidimen...
by coffee
10 Oct 2018, 09:55
Forum: Ask For Help
Topic: COM Javascript querySelector
Replies: 2
Views: 58

Re: COM Javascript querySelector

wb.querySelectorAll('[aria-label="Carrier"]').value := "DHL"
That wouldn't work even if there was no error since querySelectorAll returns a nodelist.

Are you using v2? Single quote characters only work in v2 as far as i'm aware. That may explain that image you attached.
by coffee
25 Sep 2018, 23:09
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 19
Views: 895

Re: Operators vs Methods

Uffffffffffff, what in gods name happened here... There is an equivalence between operators and methods. Nope, there isn't. I suppose the next statement is, there is an equivalence between operators and functions, there is an equivalence between operators and labels. Nope, there is not. That nope go...
by coffee
25 Sep 2018, 23:09
Forum: AutoHotkey v2 Development
Topic: Operators vs Methods
Replies: 35
Views: 820

Re: Operators vs Methods

Uffffffffffff, what in gods name happened here... There is an equivalence between operators and methods. Nope, there isn't. I suppose the next statement is, there is an equivalence between operators and functions, there is an equivalence between operators and labels. Nope, there is not. That nope go...
by coffee
25 Sep 2018, 19:43
Forum: Ask For Help
Topic: Alternatives to a very long sequence of if statements Topic is solved
Replies: 6
Views: 175

Re: Alternatives to a very long sequence of if statements Topic is solved

Sample, adjust for v1 as needed. shifted := 0 ;// Place the array outside of the hotkey, it is defined globally, once, ;// instead of repeatedly being defined every time you hit the hotkey. myArray := { "a": ["ā", "Ā"], "b": ["ḇ", "Ḇ"], "d": ["ḏ", "Ḏ"] } ; and so on--I don't feel like typing the who...
by coffee
25 Sep 2018, 08:56
Forum: Ask For Help
Topic: %USERPROFILE% variable
Replies: 3
Views: 83

Re: %USERPROFILE% variable

Pretty sure you only changed the location of the folder "desktop" and not of the user profile itself, or at least that's what you are showing in that image. %userprofile% = location of user's root folder, not the location of the subfolders. That's an environment variable, not much to do with autohot...
by coffee
23 Sep 2018, 21:12
Forum: Ask For Help
Topic: Named Loops
Replies: 5
Views: 142

Re: Named Loops

Read the continue and break pages and the examples.
by coffee
22 Sep 2018, 23:15
Forum: Ask For Help
Topic: Enter a series of dates using a looped script
Replies: 2
Views: 56

Re: Enter a series of dates using a looped script

Keep the dates in raw form (YYYYMMDDHH24MISS). Then do the calculations using DateAdd function. Only use formattime when you need to show/export/send them. edit: Turns out there's no DateAdd in v1. It seems you can do time calculations with the very descriptively named "EnvAdd" command. But the same...
by coffee
22 Sep 2018, 22:33
Forum: Ask For Help
Topic: Need help to stop a loop
Replies: 1
Views: 48

Re: Need help to stop a loop

Code: Select all

^j::
	do:=1
	While (do)
	{
		; Do stuff
	}
	return

^k::do:=0
by coffee
22 Sep 2018, 14:39
Forum: AutoHotkey v2 Development
Topic: A_ variables
Replies: 27
Views: 2368

Re: A_ variables

A_ScriptName defaults to filename + ext at startup. But A_ScriptName != filename. A_ScriptName is a user writable variable, it can be set to anything you want. A_ScriptNameNoExt becomes 100% senseless if user writes their own value to A_ScriptName. So A_ScriptName now has my custom name, and A_Scrip...
by coffee
14 Aug 2018, 20:57
Forum: AutoHotkey v2 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 42
Views: 1213

Re: NumOp/StrOp (with respect to !=/!==)

If you want to overhaul the fundamentals of expressions and operators, in my view, you should outline the proposals in full, in one place. The before and after details. And at least some cost-benefit analysis details/considerations regarding updating old scripts. Nobody has to do that, or pass anyt...
by coffee
19 Jul 2018, 21:19
Forum: AutoHotkey v2 Development
Topic: AHK V2: function reference works to class prototype method but not class instance method
Replies: 8
Views: 394

Re: AHK V2: function reference works to class prototype method but not class instance method

Makes sense... but still wondering why func function accepts "MyClassPrototype.MyMethod" as a function name? Skimming the source (correct me if i'm wrong), because "MyClassPrototype.MyMethod" is the name of the function internally (so there may be a function named that way). Func relies internally ...
by coffee
05 Jul 2018, 00:56
Forum: Ask For Help
Topic: Regexmatch
Replies: 1
Views: 75

Re: Regexmatch

Code: Select all

RegexReplace(tmp, "i)^([a-zA-Z]{2})\s+(\d{5})$", "$1$2")
Probably.
by coffee
02 Jul 2018, 23:32
Forum: AutoHotkey v2 Development
Topic: AHK V2: passing objects to non-byref param?
Replies: 5
Views: 358

Re: AHK V2: passing objects to non-byref param?

I've been looking at this paragraph for 2 months , but think I'm still missing a distinction: Because a variable only ever contains a reference to an object and not the object itself, when you pass such a variable to a non-ByRef parameter , what the function receives is a reference to the same obje...
by coffee
27 Jun 2018, 20:29
Forum: Ask For Help
Topic: Explorer: move up one folder level
Replies: 8
Views: 223

Re: Explorer: move up one folder level

Hold down Ctrl and don't let go, and tap u occasionally.
Can't reproduce :(
by coffee
27 Jun 2018, 20:18
Forum: Ask For Help
Topic: Explorer: move up one folder level
Replies: 8
Views: 223

Re: Explorer: move up one folder level

I dont have the issue of Ctrl+U opening a new window if i just do

Code: Select all

^u::!Up
;or
^u::SendInput("!{Up}")
Could it be a win7 thing?
by coffee
27 Jun 2018, 20:02
Forum: Ask For Help
Topic: Explorer: move up one folder level
Replies: 8
Views: 223

Re: Explorer: move up one folder level

Is this like to move up one folder on background windows automatically? to automate something with explorer windows for some reason? If you just simply want the ability to go up instead of going back to last folder with a hotkey whenever you are browsing a folder, then try ALT + UP on an explorer wi...
by coffee
27 Jun 2018, 19:32
Forum: Ask For Help
Topic: AHK vs converted EXE
Replies: 2
Views: 172

Re: AHK vs converted EXE

Is there any overhead and extra resource usage in the EXE version? Not as far as I'm aware. Scripts are not "converted to exe" when "compiling" with Ahk2Exe. (there's no byte code or machine code generated). The script file (.ahk) is simply embedded in the EXE as a resource (it always continues to ...
by coffee
26 Jun 2018, 02:02
Forum: Ask For Help
Topic: Decompiling
Replies: 104
Views: 28228

Re: Decompiling

This is great, best things In life are free indeed. I really appreciate this. I was wondering if the lib folder could be packed together when AHK_H gets recompiled. Not talking about the moment of compiling, but prior to that i.e. the time that AHK_H gets recompiled with Visual Studio. Not sure if ...

Go to advanced search