Turn on the cursor by turning on the sound

If you are requesting technical assistance with Twine, please specify:
Twine Version:
Story Format:

Please place any example Twine code you provide between three back-ticks 
on a separate line before and after the code like this
so it is monospaced and copyHi,

I ask about the impossible, but what if not?
I use several codes for audio sounds in the game.
This starts when the passage is loaded:
(unless: (track: & # 39; glock & # 39 ;, & # 39; isplaying & # 39;)) [
    (track: & # 39; glock & # 39 ;, & # 39; play & # 39;)
]
Then I use this code. The sound is turned on when the player clicks:
(track: & # 39; file: /// C: / Users // Desktop / Test / audio / & # 39 ;, & # 39; play & # 39;)

{
(link-repeat: & # 39; Shoot! & # 39;)) [
    (track: & # 39; glock & # 39 ;, & # 39; play & # 39;)
]
}
I'm trying to figure out a code that would activate the sound with the cursor.
I create games for the blind and the cursor is an integral part of the readers.
So it reads where the cursor is.
Now my idea.
Some text and about the tenth line will be the sentence:
You walk down a dark corridor.
Suddenly a shot was fired.
And here the sound should turn on.
Does anyone have any idea?
Is it even possible to make it happen?
I didn't find anything like it anywhere in the help.

Thank you in advance for every idea

Jiří Škrába
able for testing!
Twine 2.3.14Twine 2.3.14
Harlowe 3.2.3.```Twine 2.3.14Harlowe 3.2.3.

Have you tried to use (mouseover:) https://twine2.neocities.org/#macro_mouseover ?
I haven’t tested it yet, but it looks like it might do the trick.
Obviously if it works you’d have to make a large area to be sure to get the cursor of the mouse to hover over the triggering area.

Hello,

yes, i tried mouseover.

I am a beginner and I do not speak English.

I have tried mouseover in many combinations, but so far without success.

So I’ll keep working. A little help with which mouseover macro to combine might help.

Jiří Škrába

image001.jpg

The thing is I’m absolutely not on par with how to use sounds. I don’t even find any mention to sound or music in the Harlowe 3.2.3 manual. Apparently an internet search points to [Harlowe Audio Library]. I hope someone else, more savvy on how to use sounds in Harlowe, will soon step in.

Thanks, I’ll wait for someone who has a better overview of the audio.

Have a nice day

Jiří Škrába

image001.jpg

The forum’s software made a mess of your code examples. I will assume the 1st example looked something like…

(unless: (track: "glock", "isplaying")) [
    (track: "glock", "play")
]

…and your 2nd example look something like…

(track: "file:///C:/Users/Desktop/Test/audio/", "play")

{
(link-repeat: "Shoot!")) [
    (track: "glock", "play")
]
}

Is your question about how to activate a sound effect when the end-user’s Accessibility/Screen Reader software reaches a specific point (word) in the textual content of a Passage?

If so then Harlowe itself doesn’t include Accessibility specific functionality, and the story format has been deliberately designed to limit an Author’s ability to use JavaScript to extend its engine’s functionality.

However someone with knowledge about HTML Accessibility (ARIA) techniques may be able to suggest a possible solution.

Thanks for your answer.

I thought it wouldn’t work.

Jiří Škrába

image001.jpg