Search found 22 matches

by stevesax
14 Sep 2017, 10:12
Forum: Ask for Help (v1)
Topic: Referencing constants
Replies: 10
Views: 1610

Re: Referencing constants

Ok thanks so much for the detailed explanations and example code, a big help :). I'll need to go over this a couple more times to digest it, but definitely got some great options there. Will try to get some basic format together over the weekend....thanks again! Steve.
by stevesax
12 Sep 2017, 16:32
Forum: Ask for Help (v1)
Topic: Referencing constants
Replies: 10
Views: 1610

Re: Referencing constants

Thanks again for the help and sorry for the late reply back on this, been away. Creating a class and keeping the constants in there sounds more preferable, so I'll look more into that. I haven't come across "__Set()" before, where exactly does this go and what is its purpose? I suppose having 1 big ...
by stevesax
06 Sep 2017, 15:09
Forum: Ask for Help (v1)
Topic: Referencing constants
Replies: 10
Views: 1610

Re: Referencing constants

Thanks for the replies. Theoretically a modular approach makes sense, but I'm not sure if this will result in lots of .exe's, as I'll be distributing them as exe files. I will need to maintain this. So, regarding constants, I guess a constants.ahk file is OK to include all functions used across any ...
by stevesax
06 Sep 2017, 09:28
Forum: Ask for Help (v1)
Topic: Referencing constants
Replies: 10
Views: 1610

Referencing constants

Hi. I'm starting a project where I'll be creating a number of ahk files, 1 for each window in an application, as it's a big project. I want to create 1 file with all the constants I would like to reference from each of these ahk files. Could anyone give advice on how to arrange this set up? For exam...
by stevesax
07 Jul 2017, 07:34
Forum: Ask for Help (v1)
Topic: #IfWinActive for multiple windows?
Replies: 2
Views: 2566

Re: #IfWinActive for multiple windows?

Thanks very much, I'll give that a read :)
by stevesax
07 Jul 2017, 06:26
Forum: Ask for Help (v1)
Topic: #IfWinActive for multiple windows?
Replies: 2
Views: 2566

#IfWinActive for multiple windows?

Hi. Thanks to members, I now have my script almost working as I would like, with 1 issue I'm unable to get right. I have the #IfWinActive in the script to allow for keys to only be used within a certain window, but I need some of the keys to be active in more than 1 window. E.g: I have control comma...
by stevesax
04 Jul 2017, 14:01
Forum: Ask for Help (v1)
Topic: Scripts only active when the title window is in focus?
Replies: 8
Views: 13990

Re: Scripts only active when the title window is in focus?

Thanks very much, really appreciated.
by stevesax
04 Jul 2017, 11:17
Forum: Ask for Help (v1)
Topic: Scripts only active when the title window is in focus?
Replies: 8
Views: 13990

Re: Scripts only active when the title window is in focus?

Thanks robertcollier4, that's exactly what I needed clarifying. Will this work simply with the title?, as I can't use the class, because this changes virtually everytime you load the plug, so it's not a static class. Lastly, is there any need to separate functions from hotkeys? Meaning do hotkeys ne...
by stevesax
04 Jul 2017, 10:27
Forum: Ask for Help (v1)
Topic: Scripts only active when the title window is in focus?
Replies: 8
Views: 13990

Re: Scripts only active when the title window is in focus?

Hi A_AhkUser and thanks for those links. According to that info, it says "The #IfWin directives are positional: they affect all hotkeys and hotstrings physically beneath them in the script. They are also mutually exclusive; that is, only the most recent one will be in effect." So, can I use: #IfWinA...
by stevesax
04 Jul 2017, 07:17
Forum: Ask for Help (v1)
Topic: Scripts only active when the title window is in focus?
Replies: 8
Views: 13990

Scripts only active when the title window is in focus?

Hi. I'm working on an ahk script for a VST, hosted within a DAW (digital audio workstation). The issue is, I'm not at all sure what to use in order to only have this script active when the actual window is in focus. I have previously used Process, Exist, Name of exe to determine the PID, but as this...
by stevesax
29 Jun 2017, 16:11
Forum: Ask for Help (v1)
Topic: Clarity needed for PixelGetColor and CoordMode
Replies: 6
Views: 1930

Re: Clarity needed for PixelGetColor and CoordMode

Thanks again for all that clarification. I think the docs and forum are excellent...and I've been able to overcome the few stumbling blocks I've had so far. It's a great tool and a great community!
by stevesax
29 Jun 2017, 15:19
Forum: Ask for Help (v1)
Topic: Clarity needed for PixelGetColor and CoordMode
Replies: 6
Views: 1930

Re: Clarity needed for PixelGetColor and CoordMode

Hey Xtra, that works a treat! and is correctly reporting the change of color at the correct coords, thanks so much! So, I guess from this code, you're able to put in 2 "CoordMode"'s, 1 for the mouse and 1 for the pixel? Also, would the "#Persistent" have any influence on the result? Thanks again for...
by stevesax
29 Jun 2017, 11:39
Forum: Ask for Help (v1)
Topic: Clarity needed for PixelGetColor and CoordMode
Replies: 6
Views: 1930

Re: Clarity needed for PixelGetColor and CoordMode

Thanks for the suggestion Xtra. Just tried that, but the same key takes the mouse an extra 7X7, which is the same as the Window parameter in CoordMode. It's as if you can't return a color correctly when set to client. Either that or something funky is going on :).
by stevesax
29 Jun 2017, 11:18
Forum: Ask for Help (v1)
Topic: Clarity needed for PixelGetColor and CoordMode
Replies: 6
Views: 1930

Clarity needed for PixelGetColor and CoordMode

Hi. I have the below code in a script I'm doing and I'm getting pretty confused, due to the "CoordMode" parameters. When I have: CoordMode, Mouse, Client in the auto execute section, the script returns an incorrect color and no matter if this color changes under the mouse, the same color is returned...
by stevesax
27 Jun 2017, 10:36
Forum: Ask for Help (v1)
Topic: SAPI parameters, rate, volume and async speech?
Replies: 11
Views: 9265

Re: SAPI parameters, rate, volume and async speech?

Hi, just as a slight update, I added the ability to speed up/slow down the speech, which is simple, but fits my needs...hopefully it might be useful for others? :) #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Recommended for catching common errors. ...
by stevesax
26 Jun 2017, 15:03
Forum: Ask for Help (v1)
Topic: SAPI parameters, rate, volume and async speech?
Replies: 11
Views: 9265

Re: SAPI parameters, rate, volume and async speech?

Hey Jeeswg, that worked beautifully! thanks so much! I'm just using the below, but may extend it now I have more to go on...thanks again!
oSPVoice := ComObjCreate("SAPI.SpVoice")
oSpVoice.Rate := 7

^1::
oSpVoice.Speak("hello", 1) ;SVSFlagsAsync := 0x1
Return
by stevesax
26 Jun 2017, 10:15
Forum: Ask for Help (v1)
Topic: SAPI parameters, rate, volume and async speech?
Replies: 11
Views: 9265

Re: SAPI parameters, rate, volume and async speech?

Hi Geesws and thanks a lot for the code, I'll give that a shot later tonight and see how it all works out. The code/scripts I'm doing are for 3rd party VST plugins which are inaccessible, so the user is already using a screenreader. Idealy, I'd like just a 1/few lines to set the SAPI speech for thes...
by stevesax
26 Jun 2017, 07:33
Forum: Ask for Help (v1)
Topic: SAPI parameters, rate, volume and async speech?
Replies: 11
Views: 9265

SAPI parameters, rate, volume and async speech?

Hi, I'm using AHK and SAPI to speak inaccessible apps and all is working well, apart from I want to be able to adjust/include further sAPI parameters (rate, volume and async speech). As a newby, I'm struggling including these the correct way. Has anyone got basic examples showing how to do this? Her...
by stevesax
23 Jun 2017, 15:16
Forum: Ask for Help (v1)
Topic: Using the EleIf command
Replies: 2
Views: 758

Re: Using the EleIf command

Hi Nightwolf85, that's done the trick, thanks so much...it's the little things that trip us up :)
by stevesax
23 Jun 2017, 11:38
Forum: Ask for Help (v1)
Topic: Using the EleIf command
Replies: 2
Views: 758

Using the EleIf command

Hi, I'm new to AHK, but have experience in scripting with a screenreader called Jaws. I'm visually impaired and I'm now using AHK to access some inaccessible apps. I'm currently going crazy with the following code, as I get an error "else with no matching if". Here's the code and comments on what it...

Go to advanced search