Search found 123 matches
- 30 Apr 2023, 09:46
- Forum: Ask for Help (v2)
- Topic: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
- Replies: 7
- Views: 1268
Re: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
So fileread soundfilename.mp3 did not make any difference. I'm.not even sure if I done it correctly... Convert / (change) .mp3 into .wav made it slightly better. Because it does not need a codec for wav so it seems to run better with wav files. The wait solution interrupts the script while the music...
- 29 Apr 2023, 07:42
- Forum: Ask for Help (v2)
- Topic: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
- Replies: 7
- Views: 1268
Re: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
THANKS A LOT again ✌mikeyww wrote: ↑29 Apr 2023, 07:28Code: Select all
#Requires AutoHotkey v2.0 soundDir := A_ScriptDir '\t' F2:: { Static on := False on := !on SoundPlay soundDir (on ? '\test1.wav' : '\test2.mp3'), WAIT := True }
- 29 Apr 2023, 07:19
- Forum: Ask for Help (v2)
- Topic: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
- Replies: 7
- Views: 1268
Re: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
Would be a great idea but it went hella big in a short time 😅🙈 I need a help from you with the wait command you suggested. The line "( on? Sound 1 : sound 2 )" was from you and I cant put any parameters into it without errors. The docs tell me I shall do SoundPlay "sound1.mp3" , wait But I cant add ...
- 28 Apr 2023, 18:02
- Forum: Ask for Help (v2)
- Topic: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
- Replies: 7
- Views: 1268
Re: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
mikeyww FileRead A_ScriptDir ("\Data\Sounds\Say Hello.mp3" && "\Data\Sounds\Joker.mp3") got no effect wav didnt tried yet cant get the wait param into your code SoundPlay A_ScriptDir (on ? '\Say Hello.mp3' : '\Joker.mp3') Note: as always i tried severall combinations wich seem logic for me like spl...
- 28 Apr 2023, 05:56
- Forum: Ask for Help (v2)
- Topic: Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
- Replies: 7
- Views: 1268
Sound Play Questions: Delay, Preloading, mp3 or wav? Topic is solved
Hello. ✌😊 I am.using soundplay for mp3 files inside my scripts. I discover several.times some issues in the sound plays. Like delays, sometimes just reacting on second push or loading when another threat starts. Is it possible to preload the files with "FileRead" somehow? Is there any possibility th...
- 28 Apr 2023, 05:50
- Forum: Ask for Help (v2)
- Topic: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
- Replies: 7
- Views: 1253
Re: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
So that's the same thing as AHK cant multi threath ? No, that's this thing: When the function code terminates, these variables are lost along with the objects they contain. No workaround I guess ? You obviously have to use a global or static variable for the SAPI.SpVoice object when the SVSFlagsA...
- 26 Apr 2023, 09:52
- Forum: Ask for Help (v2)
- Topic: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
- Replies: 7
- Views: 1253
Re: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
F6 and F7 dont oVoice and oV are local variables in the functions of the above hotkeys. When the function code terminates, these variables are lost along with the objects they contain. Ok cool. Thanks for the informations. So that's the same thing as AHK cant multi threath ? No workaround I guess ?...
- 26 Apr 2023, 05:42
- Forum: Ask for Help (v2)
- Topic: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
- Replies: 7
- Views: 1253
Re: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
Hey Thanks for your replys :) edit: updated post prevent from pause script while Speak? [...] whatever i try i do not get different actions in the syncronazion of the voice It seems we cannot in one dot chained line get the COM object and call Speak with a flag ComObject("SAPI.SpVoice").Speak("This ...
- 25 Apr 2023, 22:54
- Forum: Ask for Help (v2)
- Topic: ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
- Replies: 7
- Views: 1253
ComObject("SAPI.SpVoice").Speak("Text") , Paramaters in AHKv2?, prevent from pause script while Speak? Topic is solved
Hello, i am using Lots of ComObject("SAPI.SpVoice").Speak("Long Text Speaking") commands mostly i do them at the end of an action to start the timer and then give me a audio feedback. for lots of AHKv1 Threaths i read about Parameters to allow the Voice Speak while script goes on with its actions wh...
- 25 Apr 2023, 21:50
- Forum: Ask for Help (v2)
- Topic: SoundPlay, Pre-Loading? Topic is solved
- Replies: 4
- Views: 1089
Re: SoundPlay, Pre-Loading? Topic is solved
PlaySound( Sound ) { Return DllCall("winmm.dll\PlaySound" ( 1 ? "W" : "A" ), "Ptr", Sound, "UInt", 0 , "UInt", ((SND_MEMORY:=0x4)|(SND_NODEFAULT:=0x2))) } Hello, i am actually searching for quite similar thing, could you explain me more of the code? where do i insert it? on top? and where do i put ...
- 24 Apr 2023, 10:40
- Forum: Ask for Help (v2)
- Topic: RELIABLE way to identify if an audio device can record audio?
- Replies: 18
- Views: 1897
Re: RELIABLE way to identify if an audio device can record audio?
SandyClams yeah sure totaly not witty the effort BUT It is always someone searching it, and maybe not asking for it or searching a solution . So everything online can be get googled and can be usefull. So I recommend always to share stuff and safe it online so google can find it. But if cuse I do n...
- 24 Apr 2023, 09:44
- Forum: Ask for Help (v2)
- Topic: RELIABLE way to identify if an audio device can record audio?
- Replies: 18
- Views: 1897
Re: RELIABLE way to identify if an audio device can record audio?
you guys are amazing. I had a similar problem to these problems myself within the past couple of days. I also found the VA library, and I also considered converting it or partially converting it for my needs, but up to now I've been too lazy to really dig into it. Instead I found a NirSoft tool tha...
- 23 Apr 2023, 19:35
- Forum: Ask for Help (v2)
- Topic: User defined "Set Hotkeys" Menu (how to?) Topic is solved
- Replies: 26
- Views: 3746
Re: User defined "Set Hotkeys" Menu (how to?) Topic is solved
MyHotkey.AssignedKey is storing the same thing in both versions of my script. It contains a sting that represents the assigned keys for the hotkey. "^F5" for example. So if you add this line, MyHotkey.AssignedKey := "*" MyHotkey.AssignedKey it changes "^F5" to "*^F5" . Then on the next two lines th...
- 23 Apr 2023, 17:26
- Forum: Ask for Help (v2)
- Topic: User defined "Set Hotkeys" Menu (how to?) Topic is solved
- Replies: 26
- Views: 3746
Re: User defined "Set Hotkeys" Menu (how to?) Topic is solved
Datapoint here is the full Script Part cuse u can probably read it ; ------ Hotkey-Set Code by "Datapoint" starts here ------ ; Use this data to keep track of each hotkey / function / GUI info ; Hotkey Set Code by Datapoint SavedHotkeys := [] SavedHotkeys.Push( {Function: DS4ControllerFunction , IN...
- 23 Apr 2023, 17:22
- Forum: Ask for Help (v2)
- Topic: A_HotkeyInterval := 2000 & A_MaxHotkeysPerInterval := 200
- Replies: 5
- Views: 456
Re: A_HotkeyInterval := 2000 & A_MaxHotkeysPerInterval := 200
@mikeyww okay Thanks
- 23 Apr 2023, 17:21
- Forum: Ask for Help (v2)
- Topic: User defined "Set Hotkeys" Menu (how to?) Topic is solved
- Replies: 26
- Views: 3746
Re: User defined "Set Hotkeys" Menu (how to?) Topic is solved
Untested, but if you were to add it to my previous post , you would add this line to the OK_Click function. MyHotkey.AssignedKey := "*" MyHotkey.AssignedKey That will add * to the start of the hotkey right before it is saved to INI and before the hotkey is activated. ... ; Enable new hotkeys and sa...
- 23 Apr 2023, 17:11
- Forum: Ask for Help (v2)
- Topic: A_HotkeyInterval := 2000 & A_MaxHotkeysPerInterval := 200
- Replies: 5
- Views: 456
Re: A_HotkeyInterval := 2000 & A_MaxHotkeysPerInterval := 200
I find that this usually indicates a bug in the code-- something about the design of the script that was typically not intended. Yeah I was thinking about that, but how do I find it... I got a huge image search added into it. I also thought parts triggered by hotkeys are inactive. I usually do a to...
- 23 Apr 2023, 16:29
- Forum: Ask for Help (v2)
- Topic: A_HotkeyInterval := 2000 & A_MaxHotkeysPerInterval := 200
- Replies: 5
- Views: 456
A_HotkeyInterval := 2000 & A_MaxHotkeysPerInterval := 200
Hi there :) i somehow managed to get this error message: grafik.png the Help Docs tell me standart is 70 example says: https://www.autohotkey.com/docs/v2/lib/A_MaxHotkeysPerInterval.htm#ExBasic Allows a maximum of 200 hotkeys to be pressed within 2000 ms without triggering a warning dialog. A_Hotkey...
- 23 Apr 2023, 14:51
- Forum: Ask for Help (v2)
- Topic: User defined "Set Hotkeys" Menu (how to?) Topic is solved
- Replies: 26
- Views: 3746
Re: User defined "Set Hotkeys" Menu (how to?) Topic is solved
MyHotkey.AssignedKey := IniRead(A_ScriptDir "\Data\INI-Files\Hotkeys.ini", "Hotkeys", MyHotkey.INI_Key)Datapoint wrote: ↑23 Apr 2023, 12:57Try adding "*" when calling the hotkey function.Code: Select all
StoredHotkey := "F5" Hotkey "*" StoredHotkey , FunctionName, "On"
this one?
- 22 Apr 2023, 08:39
- Forum: Ask for Help (v2)
- Topic: User defined "Set Hotkeys" Menu (how to?) Topic is solved
- Replies: 26
- Views: 3746
Re: User defined "Set Hotkeys" Menu (how to?) Topic is solved
@Datapoint
Hello. I actually struggle because of a script function.
It sends shift down. And I cant push the F Keys hotkeys anymore because of the shift + hotkey. How do I add the * to ignore the shift ?
Like *F5 works.
But object(*)
Hotkey ini F5. How do I re write this ?
Hello. I actually struggle because of a script function.
It sends shift down. And I cant push the F Keys hotkeys anymore because of the shift + hotkey. How do I add the * to ignore the shift ?
Like *F5 works.
But object(*)
Hotkey ini F5. How do I re write this ?