Search found 133 matches

by coffee
10 Oct 2018, 09:55
Forum: Ask for Help (v1)
Topic: COM Javascript querySelector
Replies: 2
Views: 916

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 Development
Topic: Operators vs Methods
Replies: 35
Views: 9187

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 (v1)
Topic: Alternatives to a very long sequence of if statements
Replies: 6
Views: 1327

Re: Alternatives to a very long sequence of if statements

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 (v1)
Topic: %USERPROFILE% variable Topic is solved
Replies: 3
Views: 4742

Re: %USERPROFILE% variable Topic is solved

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 (v1)
Topic: Named Loops
Replies: 5
Views: 1528

Re: Named Loops

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

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 (v1)
Topic: Need help to stop a loop
Replies: 1
Views: 486

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 Development
Topic: A_ variables
Replies: 29
Views: 13175

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 Development
Topic: NumOp/StrOp (with respect to !=/!==)
Replies: 42
Views: 9806

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: Ask for Help (v2)
Topic: AHK V2: function reference works to class prototype method but not class instance method
Replies: 8
Views: 2702

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 (v1)
Topic: Regexmatch
Replies: 1
Views: 472

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: Ask for Help (v2)
Topic: AHK V2: passing objects to non-byref param?
Replies: 5
Views: 2766

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 (v1)
Topic: Explorer: move up one folder level
Replies: 8
Views: 2605

Re: Explorer: move up one folder level

jeeswg wrote: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 (v1)
Topic: Explorer: move up one folder level
Replies: 8
Views: 2605

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 (v1)
Topic: Explorer: move up one folder level
Replies: 8
Views: 2605

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 (v1)
Topic: AHK vs converted EXE
Replies: 2
Views: 790

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: 111
Views: 69950

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 ...
by coffee
18 Jun 2018, 11:32
Forum: Ask for Help (v1)
Topic: Lock computer key
Replies: 3
Views: 845

Re: Lock computer key

Hi ! I've got this new keyboard which has a dedicated key to lock the computer, then retype password, etc. I made a script when I use an application to help me to control it just with the keyboard. I'm in the dark because I use a projector to show to an audience. But when I, accidently, hit the 'lo...
by coffee
15 Jun 2018, 15:46
Forum: Bug Reports
Topic: ObjCount() - Call to nonexistent function | 2.0-a097-60f26de Topic is solved
Replies: 6
Views: 2086

Re: ObjCount() - Call to nonexistent function | 2.0-a097-60f26de Topic is solved

Each method also has an equivalent function , which can be used to bypass any custom behaviour implemented by the object [..] btw: works well on AHKv1. It's not in the built-in function array in script.cpp. (Lexikos probably overlooked it, since it's just one line missing). BIFn(ObjCount, 1, 1, BIF...
by coffee
14 Jun 2018, 16:15
Forum: Otras Utilidades y Recursos
Topic: Ahk2Exe AHKv2 - Compilador en español para AutoHotkey v2 [2018-08-12]
Replies: 16
Views: 27985

Re: Ahk2Exe AHKv2 - Compilador en español para AutoHotkey v2 [2018-05-25]

This is just a bug report. En caso de que no lo hayas arreglado todavia. El compiler no soporta comentarios de este tipo: /** NOT SUPPORTED BY COMPILER **/ Msgbox("Hello") Msgbox("Not showing") El compiler excluye todo bajo el block comment, i.e ninguno de los Msgbox aparecen en el script file que s...

Go to advanced search