For fun, is it possible to launch a program by clicking on a link in a pdf? In this particular case, for a Physics lesson, I'll use a scenario of Poly Bridge game. It's installed and runs. But how do I include it in a clickable launcher in my document? Here is an MWE based on a video launcher with hyperref package, but other solutions are welcome too.
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}
\lipsum[1-2]
\begin{center}
\includegraphics[width=0.4\linewidth]{example-image-A}\par\medskip
Here you can launch the game : \href{run:Steam/Poly Bridge}{Poly Bridge}
\end{center}
\end{document}
run:normally starts the application (after a security question) in adobe reader, so\href{run:file.tex}start my editor. Launching an application directly normally doesn't work, I think the reader blocks that. – Ulrike Fischer Jul 06 '22 at 12:34run. But for games... It's more direct. I'll let the question open but I could accept it's not possible to do that with pdf (: Thank you for your comments and for corrections. – Piroooh Jul 06 '22 at 14:39runon it instead. This would be conditional on your OS associating.shor.batfiles with "executing it in a command line". – Willie Wong Jul 06 '22 at 18:58