I would be most grateful if you could help. I have looked on this forum in case my query is covered, so I have tried, failed, so asking for help please.
I am using the latest version of AuoHotKey (v.2).
Two things which I am asking for help please.
What I have done so far is install Jellfin which makes my PC a server for the films, music and TV shows I have and lists the contents very beautifully. I am using an old Windows 10 PC purely for this, and I have managed to use an old Nintendo Wii controller along with a Wii > USB gadget so the Wii controller is in effect a remote controller (saved me buying a Windows remote controller for bluetooth).
(1)
I have set up the controller as below, after identifying what each button does. I need the Jellyfin server program to run in the background before running the link (it starts automatically as part of Windows 10 startup), I could only find "Sleep" to delay bootup of the Microsoft Edge browser as couldn't find a way to only run it AFTER the Jellyfin server app has loaded, so used "Sleep" as a delay to give Windows enough time to boot up Jellyfin, however it doesn't always work and would be far better if the "run media.lnk" program ran AFTER it identified Jellyfin was running and in my system tray in the background. Is there a better way to do this than using "Sleep" please?
Code: Select all
LButton::Esc
RButton::Enter
LWin::!F4
WheelUp::LButton
PGDN::Shutdown 8
Sleep 10000
Run "C:\Users\Entertainment\Desktop\Run media.lnk"
So I don't need to plug in a keyboard and mouse to drag new films over to the media PC, I am using the code below, which works fine however I cannot make a progress bar work and as the files I am copying over can be gigabytes long it can take a few minutes to complete the process. I have used the "MsgBox" just as a way to acknowledge that the program is running however I really would like a progress bar that shows the progress of the files being copied and then closes before running the Microsoft Edge browser to boot up the media program. I tried the guide but couldn't make it work: https://www.autohotkey.com/docs/v2/lib/GuiControls.htm#Progress
Code: Select all
MsgBox "Copying files, will start media viewer when done"
FileCopy "e:\films\*.mp4", "d:\films"
FileCopy "e:\John films\*.mp4", "d:\John films"
FileCopy "e:\music\*.mp4", "d:\music"
SourceDir := "e:\tv shows"
TargetDir := "d:\tv shows"
DirCopy SourceDir, TargetDir, 1
Run "C:\Users\Entertainment\Desktop\Run media.lnk"