Search found 115 matches

by Scoox
01 Apr 2019, 23:16
Forum: Scripts and Functions
Topic: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)
Replies: 75
Views: 8620

Re: HotVoice - Speech Recognition + Volume detection for AHK (C# DLL)

Just stumbled upon this and downloaded the repo, however it seems the file hotvoice.dll is missing from lib dir, script throws error message saying "unable to find lib\hotvoice.dll, exiting..."
by Scoox
24 Feb 2019, 20:35
Forum: Bug Reports
Topic: Function cannot return ClipboardAll
Replies: 8
Views: 819

Re: Function cannot return ClipboardAll

Well yeah assigning ClipboardAll ro another variable and writing it to a file using FileAppend is all you can do with it. Having ClipboardAll and Clipboard as a variable in the first place was a mistake imo. Yeah, I would have preferred two functions, something like ClipboardGet(Mode:=0) and Clipbo...
by Scoox
23 Feb 2019, 21:05
Forum: Bug Reports
Topic: Function cannot return ClipboardAll
Replies: 8
Views: 819

Re: Function cannot return ClipboardAll

iPhilip wrote:
22 Feb 2019, 00:00
It doesn't say that clipboard variables can be returned by a function.
... though it doesn't say clipboard variables cannot be returned either (at least I didn't find it). From your replies here this looks like a quirk + documentation issue.
by Scoox
21 Feb 2019, 22:01
Forum: Bug Reports
Topic: Function cannot return ClipboardAll
Replies: 8
Views: 819

Re: Function cannot return ClipboardAll

iPhilip wrote:
21 Feb 2019, 11:52
As posted, it works for me, i.e. !v and ^v return hello world.
Dang! It was supposed to be MyVar := ClipboardAll, my bad. Please try again, thanks!
by Scoox
21 Feb 2019, 09:34
Forum: Bug Reports
Topic: Function cannot return ClipboardAll
Replies: 8
Views: 819

Function cannot return ClipboardAll

Hi, just bumped into the following problem: !v:: Clipboard := ;Clear clipboard Clipboard := MyFunc() ;MyFunc() returns "hello world", write this string to clipboard SendInput, ^v ;Paste clipboard contents (should paste "hello world") Return MyFunc() { Clipboard := "hello world" ;Put "hello world" in...
by Scoox
21 Feb 2019, 08:24
Forum: Ask For Help
Topic: Clipboard working but ClipboardAll not working?
Replies: 5
Views: 309

Re: Clipboard working but ClipboardAll not working?

I'm not sure whether this can be called a bug. The ability to pass a ClipboardAll variable to y function by value was added with AHK v1.0.46. In theory the data in ClipboardAll is no different from the data any regular variable is able to store. If this works: MyVar := ClipboardAll it kind of beats...
by Scoox
21 Feb 2019, 06:22
Forum: Ask For Help
Topic: Clipboard working but ClipboardAll not working?
Replies: 5
Views: 309

Re: Clipboard working but ClipboardAll not working?

just me wrote:
21 Feb 2019, 05:48
Does the following work for you?
Yeah, that does. I was just about to say that, if I put this code inside a function, it works fine, as long as the clipboard is written to inside the body of the function. I'll use this for the time being. Do you reckon it's a bug? Thanks
by Scoox
21 Feb 2019, 06:16
Forum: Ask For Help
Topic: Clipboard working but ClipboardAll not working?
Replies: 5
Views: 309

Re: Clipboard working but ClipboardAll not working?

Further digging, there's something odd going on with functions returning (or rather, NOT returning) a value originating from ClipboardAll. Look at the following code which works: !v:: Clipboard := ;Clear clipboard Clipboard := MyFunc() ;MyFunc() returns "hello world", write this string to clipboard ...
by Scoox
21 Feb 2019, 04:06
Forum: Ask For Help
Topic: Clipboard working but ClipboardAll not working?
Replies: 5
Views: 309

Clipboard working but ClipboardAll not working?

Hi, I'm working on a hotkey that swaps the current clipboard with the prior one. This is handy for swapping words in a text with two clicks, for example, to swap the words "hello" and "autohotkey" in the following string: "hello world autohotkey" >> "autohotkey world hello". Here is my script, but f...
by Scoox
29 Jan 2019, 05:35
Forum: Bug Reports
Topic: Buggy Help (chm) file of AHK 1.1.30
Replies: 22
Views: 2567

Re: Buggy Help (chm) file of AHK 1.1.30

I have also encountered a problem with the new help file: the Ctrl+F text search box misses characters when typing very fast, so for example if I type "hidden" only "hiddn" or "hidde" is registered. Has anyone else noticed this? No, I couldn't reproduce this issue (tested on Win10/IE11 and WinXP/IE...
by Scoox
28 Jan 2019, 19:46
Forum: Ask For Help
Topic: GetKeyState("Insert", "T") returning wrong toggle state
Replies: 2
Views: 360

Re: GetKeyState("Insert", "T") returning wrong toggle state

Thanks swagfag. Was just googling this and this came up: I note that the Insert key, unlike Caps-Lock and Num-Lock, does not have a systemwide state, and it varies per-application or even per-control. I believe (though am uncertain) that maintaining the state of the Insert key is your responsibility...
by Scoox
28 Jan 2019, 19:13
Forum: Bug Reports
Topic: Buggy Help (chm) file of AHK 1.1.30
Replies: 22
Views: 2567

Re: Buggy Help (chm) file of AHK 1.1.30

I like the new help UI but there's one thing which was definitely better in the old help. First, a bit of background. I have configured my new help file to select the Index tab when it starts ( Gear icon > Selected Tab = Index ). In the old help there was no such setting—it would simply remember the...
by Scoox
28 Jan 2019, 19:05
Forum: Bug Reports
Topic: Buggy Help (chm) file of AHK 1.1.30
Replies: 22
Views: 2567

Re: Buggy Help (chm) file of AHK 1.1.30

I have also encountered a problem with the new help file: the Ctrl+F text search box misses characters when typing very fast, so for example if I type "hidden" only "hiddn" or "hidde" is registered. Has anyone else noticed this?
by Scoox
28 Jan 2019, 18:57
Forum: Ask For Help
Topic: GetKeyState("Insert", "T") returning wrong toggle state
Replies: 2
Views: 360

GetKeyState("Insert", "T") returning wrong toggle state

The following code doesn't always return the correct Insert key toggle state after switching between applications: ~Insert:: MsgBox % GetKeyState("Insert", "T") Return For instance, if I have two console windows, A & B, both initially with Insert mode turned off. Then I hit the Insert key while A is...
by Scoox
24 Sep 2018, 02:06
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 1532

Re: Static variables for GUI control associated variables?

Been busy these past few days, thanks for the replies, I will take a detailed look asap.
by Scoox
19 Sep 2018, 18:38
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 1532

Re: Static variables for GUI control associated variables?

class BaseGui { __New(title) { Gui, New, +AlwaysOnTop +HwndhGui, % title this.hGui := hGui Gui, Font, s16 Gui, Add, Edit, x10 y10 w200 +HwndhEdit, hello world this.hEdit := hEdit Gui, Add, Button, x10 y50 w200 h40 +HwndhBtn1, Button 1 this.hBtn1 := hBtn1 Gui, Add, Button, x10 y100 w200 h40 +HwndhBt...
by Scoox
19 Sep 2018, 18:31
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 1532

Re: Static variables for GUI control associated variables?

Thanks @User, some of the mechanisms used in your implementation are similar to my initial idea, but now that I know about classes I think I much prefer classes, they seem much more flexible.
by Scoox
19 Sep 2018, 07:53
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 1532

Re: Static variables for GUI control associated variables?

The code in your first post works but only because the functions don't need to read or write the control associated variable. The code also works because no part of the script has asked to read anything yet. Please patch as desired, example: Edit_onTyping(HWND) { GuiControlGet, outVar,, %HWND% Tool...
by Scoox
19 Sep 2018, 06:35
Forum: Ask For Help
Topic: Static variables for GUI control associated variables?
Replies: 24
Views: 1532

Re: Static variables for GUI control associated variables?

@swagfag thanks a lot! I manged to do what I'm trying to do using your code but it was by fluke. I'm going to have to do some reading before I can understand what's going on. Things are looking up :)

Go to advanced search