Accept input in an InputBox without Enter?
Posted: 05 Dec 2019, 17:12
Hey, I'm new to AHK. I've set up an InputBox that lets me open links that I visit regularly.
The box shows me a list of numbers and their corresponding targets. I type in the number that I want to pick and then confirm it by pressing Ok.
Example:
Is there a way to immediately confirm the input without having to press enter first? I just want to press "1" to select the first branch.
Is something else than an InputBox a better choice?
The box shows me a list of numbers and their corresponding targets. I type in the number that I want to pick and then confirm it by pressing Ok.
Example:
Code: Select all
^+y::
InputBox, num , Choose a Page, 1: Sub Feed`n2: Playlists`n3: Videos`n4: Creator Studio
if ErrorLevel
return
if num = 1
{
Run "https www.youtube.com /feed/subscriptions" Broken Link for safety
}
else if num = 2
{
Run "https www.youtube.com /view_all_playlists" Broken Link for safety
}
else if num = 3
{
Run "https www.youtube.com /my_videos?o=U&ar=2" Broken Link for safety
}
else if num = 4
{
Run "https studio.youtube.com /channel/UC_Fh8kvtkVPkeihBs42jGcA" Broken Link for safety
}
Is something else than an InputBox a better choice?