Search found 5141 matches

by jeeswg
09 Oct 2018, 15:53
Forum: AutoHotkey v2 Development
Topic: changing operators // and //= to only do integer or floor division
Replies: 8
Views: 335

Re: changing operators // and //= to only do integer or floor division

- @iseahound: Great link thanks. It has some good reasons for why floor division (divide and round towards negative infinity) is more useful than integer division (divide and round towards zero). - I was thinking that although // would be best for floor division, and is generally more useful. An ope...
by jeeswg
09 Oct 2018, 15:11
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 122

Re: Sørensen–Dice coefficient Topic is solved

@nnnik: Didn't you already write a function?
Damerau-Levenshtein Distance - Fuzzy searches - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=6&t=39112
by jeeswg
09 Oct 2018, 14:40
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 122

Re: Sørensen–Dice coefficient Topic is solved

- Something like this perhaps. - Note: the Wikipedia article didn't mention whether duplicate bigrams should be discarded. A Wikibooks link (below) mentions that if you did discard duplicates, then 'AA' and 'AAAA' would be considered identical. Thus duplicates should be maintained. Cheers. ;Sørensen...
by jeeswg
09 Oct 2018, 00:34
Forum: AutoHotkey v2 Development
Topic: commands as functions (AHK v2 functions for AHK v1)
Replies: 41
Views: 5320

Re: commands as functions (AHK v2 functions for AHK v1)

Here is what I'm planning to use for Float/Integer/String. On balance it seemed wisest to keep String simple as this gave predictable deviations from AHK v2, whereas the alternatives were giving unpredictable deviations from AHK v2. Float(Value) { if Value is number return Value + 0.0 throw Exceptio...
by jeeswg
08 Oct 2018, 22:59
Forum: AutoHotkey v2 Development
Topic: conversion logic, v1 = -> v1 := -> v2, two-way compatibility
Replies: 135
Views: 27725

Re: conversion logic, v1 = -> v1 := -> v2, two-way compatibility

- I mentioned some ideas in MOUSECLICK REVISITED above. - Working on 'AHK v2 functions for AHK v1', I noticed how complex ControlClick is. - I might suggest changing it to this, using the space-separated Options as described for MouseClick above. - By default it would click the middle of the control...
by jeeswg
08 Oct 2018, 17:20
Forum: Ask For Help
Topic: how to use WM_USER messages
Replies: 8
Views: 181

Re: how to use WM_USER messages

Try this:

Code: Select all

q::
data := 1
id := 105
SendMessage, 0x400, % data, % id,, ahk_class Winamp v1.x ;WM_USER := 0x400
ret := ErrorLevel
MsgBox, % ret
return
by jeeswg
08 Oct 2018, 17:01
Forum: Ask For Help
Topic: ControlXXX commands with a blank first parameter Topic is solved
Replies: 0
Views: 28

ControlXXX commands with a blank first parameter Topic is solved

I was working on some backport functions: commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=37&t=29689 And I noticed that, unusually, something wasn't working as expected. It turns out that if you use the no-comma style, then cer...
by jeeswg
08 Oct 2018, 15:31
Forum: Offtopic
Topic: bypassing A_ variables
Replies: 3
Views: 98

Re: bypassing A_ variables

- Ah OK, like X Y W H R B perhaps? Interesting. - I had thought that storing a date as an object could be useful. Just to get a date including milliseconds reliably. - Btw are there not some things a little like A_ variables in other languages/situations, e.g. these perhaps (cf. ErrorLevel, A_RegVie...
by jeeswg
08 Oct 2018, 14:48
Forum: Scripts and Functions
Topic: Send CTRL-+ (to zoom in)
Replies: 3
Views: 94

Re: Send CTRL-+ (to zoom in)

Ctrl - is Ctrl -
But Ctrl + is really Ctrl =
SendInput, ^=

With/without shift: -_ =+
by jeeswg
08 Oct 2018, 14:27
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 48
Views: 1279

Re: <> no longer acceptable as a comparison operator

@nnnik: A thread for you to savour. I hope you like it and I would welcome your input. Cheers.
bypassing A_ variables - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 17&t=57260
by jeeswg
08 Oct 2018, 14:24
Forum: Offtopic
Topic: bypassing A_ variables
Replies: 3
Views: 98

bypassing A_ variables

Following on from this post: <> no longer acceptable as a comparison operator - Page 3 - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=37&t=55460&p=242602#p242602 - It can be advantageous to have functionality that is not dependent on A_ variables. - Or you could have a changeab...
by jeeswg
08 Oct 2018, 13:48
Forum: Forum Issues
Topic: Maintenance
Replies: 49
Views: 1014

Re: Maintenance

- Just wanted to let people know that AHK v2.0-a100 does not appear to be available at the 2 expected locations: recreate A_IPAddressXXX variables as a function - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=76&t=57112&p=242708#p242708 - I experienced no problems with private m...
by jeeswg
08 Oct 2018, 11:55
Forum: Forum Issues
Topic: Maintenance
Replies: 49
Views: 1014

Re: Maintenance

Thanks very much for the info.
by jeeswg
08 Oct 2018, 11:22
Forum: Forum Issues
Topic: Maintenance
Replies: 49
Views: 1014

Re: Maintenance

The AutoHotkey v2 Development forum still has some oddities: Operators vs Methods (old version with an unviewable post) Operators vs Methods (duplicate with newer posts) Will AutoHotkey v2 Syntax Be More Confusing For Newbies? (incorrect post count) One user told me he'd had problems receiving priva...
by jeeswg
08 Oct 2018, 10:49
Forum: Ask For Help
Topic: recreate A_IPAddressXXX variables as a function
Replies: 13
Views: 171

Re: recreate A_IPAddressXXX variables

- Thanks Helgef, I made it 'local IPAddress, List'. I would use 'local' by itself but that would make the functions fail on older AHK versions. I'm going to bring in #Warn to my scripts to detect undeclared variables, but it will be a big undertaking to update all my function libraries. - Re. the ti...
by jeeswg
08 Oct 2018, 10:26
Forum: Ask For Help
Topic: recreate A_IPAddressXXX variables as a function
Replies: 13
Views: 171

Re: recreate A_IPAddressXXX variables

- The OP states that I'm trying to backport a function, not A_ variables. - Only built-in A_ variables can 'update', that's clear. (Built-in A_ variables are really functions that look like variables.) - If I turned the code above into a function, each time you ran it, it would 'update' (get the lat...
by jeeswg
08 Oct 2018, 10:15
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 454
Views: 81450

Re: Suggestions on documentation improvements

I have a script that opens the relevant link when a command/function is selected, I noticed that case matters. I don't know if a redirect is possible, no problem if not. Anyhow, it would be good to correct the case for this htm, thanks. Before: https://lexikos.github.io/v2/docs/commands/SetStoreCaps...
by jeeswg
08 Oct 2018, 10:07
Forum: Ask For Help
Topic: recreate A_IPAddressXXX variables as a function
Replies: 13
Views: 171

Re: recreate A_IPAddressXXX variables

- I based the code on the source code. What would you propose to do to update the list?
- What did you have in mind when you mentioned SetTimer? The idea of the A_IPAddressXXX variables and the new function is to get the addresses once. (And to run them again to get an up-to-date list.)
by jeeswg
08 Oct 2018, 09:54
Forum: Scripts and Functions
Topic: g_IntelliSense-everywhere
Replies: 30
Views: 2396

Re: g_IntelliSense-everywhere

- It would be interesting to hear what you find it most useful for. Which programs. Thanks. - Btw I had this error when I tried to run start.ahk: --------------------------- TypingAid.ahk --------------------------- Error in #include file "C:\Users\me\Desktop\global-IntelliSense-everywhere-master\So...
by jeeswg
08 Oct 2018, 09:12
Forum: Ask For Help
Topic: recreate A_IPAddressXXX variables as a function
Replies: 13
Views: 171

Re: recreate A_IPAddressXXX variables

- This link appears to point to the old version, 2.0-a099, at the moment, although I believe I downloaded the new version, 2.0-a100, from this link: AutoHotkey v2 https://autohotkey.com/v2/ - And I can't see it here: Index of /download/2.0 https://autohotkey.com/download/2.0/ - Maybe something happe...

Go to advanced search