Search found 13 matches
- 17 Oct 2019, 11:17
- Forum: Bug Reports
- Topic: ListView sorting broken with numbers >32-bits
- Replies: 3
- Views: 1742
Re: ListView sorting broken with numbers >32-bits
Did you try it with AHK 64-bit? Edit: Integer : To be sorted properly, each integer must be 32-bit; that is, within the range -2147483648 to 2147483647. If any of the values are not integers, they will be considered zero when sorting (unless they start with a number, in which case that number is us...
- 17 Oct 2019, 10:55
- Forum: Bug Reports
- Topic: Firefox blocks Win-key macros from compile AHK scripts
- Replies: 7
- Views: 2356
Re: Firefox blocks Win-key macros from compile AHK scripts
If we use a sendinput instead, the desired behaviour is achieved. … I just tried again today.... and it worked either way... hmmm Hmm, indeed. I tried it with sendinput , but it didn't work. Then I reverted it to send and added a msgbox call to see the hotkey just before the send command, and now i...
- 10 Oct 2019, 10:38
- Forum: Bug Reports
- Topic: ListView sorting broken with numbers >32-bits
- Replies: 3
- Views: 1742
ListView sorting broken with numbers >32-bits
ListView sorting doesn't work if the numbers in the list are bigger than 32-bits, the results look random (though probably just appear random but are correct for the first 32-bits of the numbers).
- 08 Oct 2019, 06:45
- Forum: Bug Reports
- Topic: Firefox blocks Win-key macros from compile AHK scripts
- Replies: 7
- Views: 2356
Firefox blocks Win-key macros from compile AHK scripts
I just posted a bug-report at the Firefox bug-tracker. The problem is that if you create an AHK script that has a hotkey that uses the Windows key to Send text, it works everywhere as expected, unless you compile the script, in which case, it works everywhere except Firefox. It's a strange, very spe...
- 28 Dec 2016, 13:32
- Forum: Ask For Help
- Topic: Trigger action on submenu?
- Replies: 8
- Views: 1784
Re: Trigger action on submenu?
I tried creating a subroutine label that matches the name of the submenu (with and without the prepended colon), but while AHK did not complain, it also did nothing when the submenu is opened. :( Menu, SubMenu, Add, Foo, SubMenuItem Menu, Tray, Add, ..., :SubMenu MsgBox, Test now... return SubMenuIt...
- 06 May 2016, 21:01
- Forum: Ask For Help
- Topic: Expand variable references in a string
- Replies: 4
- Views: 1898
Re: Expand variable references in a string
See help page for Transform,, Deref https://autohotkey.com/docs/commands/Transform.htm ReadFromFile:="""%a_ahkpath% %a%""" ; Simulate reading a string containing a variable reference from a file a="c:\my documents\baz.ahk" ; Some variable set somewhere in the script, containing quoted path to a fil...
- 06 May 2016, 20:59
- Forum: Ask For Help
- Topic: Expand variable references in a string
- Replies: 4
- Views: 1898
Re: Expand variable references in a string
What would be wrong with doing this? (do note that it's a_ahkpath for the built-in variable) a:="c:\my documents\baz.ahk" ReadFromFile:="""" a_ahkpath " " a """" ; or """" a_ahkpath """ """ a """" if you want the quotes around each variable like you had in your original third-line comment MsgBox %R...
- 05 May 2016, 19:59
- Forum: Ask For Help
- Topic: Expand variable references in a string
- Replies: 4
- Views: 1898
Expand variable references in a string
I have what I thought would be a simple script that reads some lines from a file and runs them. The lines may contain variable references like %A_AhkPath%\autohotkey.chm or "%tools%\notepad2.exe" "%temp%\foobar.txt" . They are passed to the Run command (or maybe displayed with MsgBox or whatever), b...
- 15 Apr 2016, 22:48
- Forum: Wish List
- Topic: Overhaul command-line argument access, add A_CommandLine
- Replies: 1
- Views: 1324
Overhaul command-line argument access, add A_CommandLine
Command Line Parameters are not directly accessible by := syntax, resp. explicitly point towards using the = %i% syntax. My tired mind is having a hard time parsing that sentence. Here the non-expression syntax is shown and a link for more details. Here the non-expression syntax is shown both befor...
- 15 Apr 2016, 22:07
- Forum: Ask For Help
- Topic: Change MD5 of files Topic is solved
- Replies: 6
- Views: 4235
Re: Change MD5 of files Topic is solved
Technically the file is corrupted. By appending a null character to the end of the file (by seeking to 1 byte past the end of the file), the file is no longer the same as it was. Depending on what kind of file it is, and what kind of program is used to read it, that extra null character may not have...
- 08 Apr 2016, 20:03
- Forum: Wish List
- Topic: Mechanism to get name of a variable as string
- Replies: 2
- Views: 1684
Mechanism to get name of a variable as string
It would be good if there were an easy way to get the name of a variable as a string. Something like: foo:="bar" MsgBox % VarName(foo) " = " foo It may not seem immediately useful, but is indeed useful and can often help simplify a script. Even C can do this via the “ stringification operator ”. For...
- 28 Nov 2015, 16:43
- Forum: About This Community
- Topic: Issues with registering, Post your username here...
- Replies: 738
- Views: 1215307
Re: Issues with registering, Post your username here...
I didn’t get the activation email from the (re-)registration process but did get it when I clicked re-send. (Of course, this is now a fresh, empty account with no notification or edit access to any of my old posts, so it’s Pyrrhic win.
)

- 28 Nov 2015, 16:41
- Forum: Forum Issues
- Topic: Will you make old autohotkey.com forum posts reachable?
- Replies: 5
- Views: 2390
Re: Will you make old autohotkey.com forum posts reachable?
I'm curious about the dead links though. Can you point to an example of that? The only thing I could think of, a weak possibility, is that https is breaking it and isn't set up to redirect longer / more specific urls to https... It wouldn’t be the first time the AHK site(s) have dead links; the old...