Jump to content
LaunchBox Community Forums

AutoHotKey script to change disks in Hoxs64


Recommended Posts

Joy6::
   Send !{enter}
   Sendinput {Alt Down}
   Sendinput {D}
   Sendinput {I}
   Sendinput {E}
   Sendinput {Alt Up}
   WinWait, Choose a disk image file
   WinWaitClose
   Send !{enter}
Return

I am assuming that you start Hoxs64 in fullscreen mode (else you don't need this script!)

Hoxs64 must be in windows mode to be able to change disks, so this script disables fullscreen and opens up the dialog to select another disk. As soon as you are done it reverts to fullscreen mode.

The script runs by pressing the controller button 6 - change this to your liking in the first line.

 

Edited by Crush
  • Like 1
Link to comment
Share on other sites

Thanks for sharing, was just configuring C64 and was thinking how I should solve disk change.

Hm can´t get it to work with my Xbox controller. If I change  Joy(random number):: to a keyboard such as Enter:: it works.

 

Edit: Ok, seems like there is problem with Xbox One controller and AHK...

Edited by sic
Problem
Link to comment
Share on other sites

 

Two more AHK scripts to Load/Save States in Hoxs64:

 


; Load State


Joy13::
   Send !{enter}

   Sendinput {Alt Down}

   Sendinput {F}
   Sendinput {Alt Up}

   Send {Down 5}
   Send {Enter}
   WinWait, Load
   WinWaitClose
   Send !{enter}

Return


; Save State


Joy15::
   Send !{enter}
   Sendinput {Alt Down}

   Sendinput {F}
   Sendinput {Alt Up}

   Send {Down 6}
   Send {Enter}
   WinWait, Save
   WinWaitClose
   Send !{enter}

Return

 

Edited by Crush
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...