Jump to content
LaunchBox Community Forums
Crush

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Did you try the latest version of AutoHotKey? I have a PS2 controller with a USB adapter so i use Directinput instead of Xinput.

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites



Did you try the latest version of AutoHotKey? I have a PS2 controller with a USB adapter so i use Directinput instead of Xinput.


Thanks for the tip. Will try when I have some sparetime :).

Share this post


Link to post
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
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...