Search found 3528 matches

by Helgef
Today, 05:31
Forum: Ask For Help
Topic: Commamd send and char with diacritic.
Replies: 3
Views: 35

Re: Commamd send and char with diacritic.

end command does not work correctly, must send the same string as its parameter
It doesn't send strings, it sends keystrokes.

Use text mode if you want to produce a string, eg,

Code: Select all

$F4:: send {text}ÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ
Cheers.
by Helgef
Today, 02:59
Forum: Ask For Help
Topic: Re dynamic function call performance Topic is solved
Replies: 1
Views: 38

Re: Re dynamic function call performance Topic is solved

The function doesn't need to be looked up when you store the reference in a variable, but %fn_obj%() (and fn_obj.call()) is still slower than fn(). The slowest call is %var_containing_func_name%().
by Helgef
18 Feb 2019, 01:40
Forum: Ask For Help
Topic: InstallMouseHook vs Mousemove Topic is solved
Replies: 5
Views: 119

Re: InstallMouseHook vs Mousemove Topic is solved

Hehe, that's right.
by Helgef
17 Feb 2019, 15:23
Forum: Ask For Help
Topic: Help with CLR.ahk and 3rd-party DLLs
Replies: 9
Views: 183

Re: Help with CLR.ahk and 3rd-party DLLs

Is eventhandler.dll supposed to be a standard dll? It isn't in WinFormsAero.zip, and I get 0 for both isobject(helper) and isobject(helperAsm).

Cheers.
by Helgef
17 Feb 2019, 15:13
Forum: Ask For Help
Topic: Array Concatenation Topic is solved
Replies: 9
Views: 820

Re: Array Concatenation Topic is solved

already does what this is supposed to do
Perhaps it does, but it doesn't do the same thing in general ;) . (That is, the result isn't the same in general)

Cheers.
by Helgef
17 Feb 2019, 15:10
Forum: Ask For Help
Topic: InstallMouseHook vs Mousemove Topic is solved
Replies: 5
Views: 119

Re: InstallMouseHook vs Mousemove Topic is solved

Or even, SetMouseDelay -1, -1. Additionally, if you didn't specify the speed for mousemove,you could add setdefaultmousespeed 0.

Cheers.

Edit: strike
by Helgef
17 Feb 2019, 02:52
Forum: Ask For Help
Topic: UnDeclared Vars (--) but not (++)? Topic is solved
Replies: 7
Views: 127

Re: UnDeclared Vars (--) but not (++)? Topic is solved

Yes.

As a side note, you are using a very old version of ahk. You might want to upgrade unless you have some special reason not to to.

Cheers.
by Helgef
17 Feb 2019, 02:38
Forum: Ask For Help
Topic: UnDeclared Vars (--) but not (++)? Topic is solved
Replies: 7
Views: 127

Re: UnDeclared Vars (--) but not (++)? Topic is solved

"" is less than 1,so v is assigned 5.
by Helgef
17 Feb 2019, 02:08
Forum: Ask For Help
Topic: UnDeclared Vars (--) but not (++)? Topic is solved
Replies: 7
Views: 127

Re: UnDeclared Vars (--) but not (++)? Topic is solved

This is documented behaviour. See expressions. You should initialise your variable.
by Helgef
13 Feb 2019, 16:41
Forum: Ask For Help
Topic: how to debug ahk source??
Replies: 3
Views: 92

Re: how to debug ahk source??

like so!
by Helgef
13 Feb 2019, 16:07
Forum: Ask For Help
Topic: how to debug ahk source??
Replies: 3
Views: 92

Re: how to debug ahk source??

Select debug build in VS and then run debug (F5). Set breakpoint either by right-click a line or left click left of line number. It runs Test\test.ahk (I'm not sure if I set this or if is default though) Edit: Test\test.ahk is default and is set in int WINAPI _tWinMain (HINSTANCE hInstance, HINSTANC...
by Helgef
13 Feb 2019, 08:20
Forum: Ask For Help
Topic: weird script crash if LoadLibrary isnt used Topic is solved
Replies: 6
Views: 119

Re: weird script crash if LoadLibrary isnt used Topic is solved

if its not User32.dll, Kernel32.dll, ComCtl32.dll, Gdi32.dll -> LoadLibrary() That is not entirely correct. You need to specify the path/name of the dll when it is not one of those, however, the dll might still be loaded. You can check if a dll needs to be loaded by calling GetModuleHandle . Cheers...
by Helgef
13 Feb 2019, 07:49
Forum: Ask For Help
Topic: weird script crash if LoadLibrary isnt used Topic is solved
Replies: 6
Views: 119

Re: weird script crash if LoadLibrary isnt used Topic is solved

helgef wrote:it is undefined behaviour, which might or might not cause a crash, or something else or nothing.
Btw, #2 doesn't crash for me on 32 build, but errorlevel shows 0xc0000005, that is, access violation, which is in line with just me's points.

Cheers
by Helgef
13 Feb 2019, 05:43
Forum: Ask For Help
Topic: weird script crash if LoadLibrary isnt used Topic is solved
Replies: 6
Views: 119

Re: weird script crash if LoadLibrary isnt used Topic is solved

As you say, dllcall calls FreeLibrary before returning. so your token is invalid. Using it is undefined behaviour, which might or might not cause a crash, or something else or nothing.
just me wrote:Longer story:
well put :thumbup:

Cheers.
by Helgef
13 Feb 2019, 03:47
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 543
Views: 99630

Re: Suggestions on documentation improvements

I provided 4 simple recommendations here: 1) GuiControl , no recommendation, ask for help. 2) If var , no recommendation, false statement. 3) ?: , an actual suggestion, although not very precise. It later turned out you wanted a load time error, so it should be in the wish list instead. 4) DllCall ...
by Helgef
13 Feb 2019, 00:22
Forum: Forum Issues
Topic: Recent spam, forum problems and some background information Topic is solved
Replies: 33
Views: 888

Re: Recent spam, forum problems and some background information Topic is solved

User has been on the forum with several accounts in the past, always ending up with a ban and followed up by a spam attack. The worst I know of lasting for several weeks with explicit content and death threats.
by Helgef
12 Feb 2019, 13:44
Forum: Ask For Help
Topic: #IF directive works differently than all other #IFWIN... directives
Replies: 10
Views: 137

Re: #IF directive works differently than all other #IFWIN... directives

That is a lot of talk about other stuff to make that point, I'd say.
by Helgef
12 Feb 2019, 13:32
Forum: Ask For Help
Topic: #IF directive works differently than all other #IFWIN... directives
Replies: 10
Views: 137

Re: #IF directive works differently than all other #IFWIN... directives

There is nothing suggesting that #ifwin lines are executed, they are simply conditions for making hotkeys active or inactive. You may also not that even when the HOTKEY is not triggered, the listlines includes execution of the #IF. That is, hit f1 in an active window that is NOT firefox, and the #IF...
by Helgef
12 Feb 2019, 12:37
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 543
Views: 99630

Re: Suggestions on documentation improvements

@ joefiesta , there was no misunderstanding. @ jeeswg , 'the current behaviour is the most logical because it's the current behaviour'. I didn't comment on the logic of the behaviour, I commented on the lack of logic in your comment, - I had thought that since an object returns an empty string, An o...

Go to advanced search