Jump to content
LaunchBox Community Forums
Lordmonkus

Auto Hotkey Scripts

Recommended Posts

Posted (edited)
On 7/9/2019 at 12:24 AM, Retro808 said:

Looking to the AHK gurus for some help. In need of an AHK that will:

Delay 8 seconds then Send (Right Arrow Key) and then Send "6" after an exe opens. 

You could add a loop that checks if the window exists. Something like

SetTitleMatchMode, 2

Loop
{
	if WinExist("Untitled - Notepad")
	{
		WinActivate
		break
	}
}

send,{right}
send,6

Im rusty on ahk, so you might have to play with it a little. But iv used something like this before, it does work. It should remove the need for sleep... maybe? Unless the window opens and then your waiting for it to load, then you would still need sleep. Ha. 

Edited by jayjay

Share this post


Link to post
Share on other sites

When running CXBX-Reloaded from LB/BB, I am able to load games (default.xbe), but I need an AHK script that will do the following, after the game is loaded:

Pass keypress F5 to the emulator (starts emulation)

Pass keypress ALT-RETURN to the emulator (goes full screen)

There are no command line arguments that will do the same.  

 

Also, when quitting CXBX-Reloaded, I need an AHK script which will do the following:

Pass keypress F6 to the emulator (stops emulation)

Pass keypress ALT-F4 to the emulator (closes/exits the emulator)

Many thanks in advance!

Share this post


Link to post
Share on other sites

You can try... in 'run before starting game..'

Process,Wait,cxbx.exe	
Sleep,2000	;this is buffer that may need to be longer
send,{F5}
send,!{enter}

...but I don't how you'd get it to wait until you're ready to quit to have it send

send,{F6}
send,!{F4}

 

Share this post


Link to post
Share on other sites

I don't know if there is a way to search a thread? I am looking for a autohotkey script for ppsspp. currently when I try to use the select+start command it dosent work, however I can pause and enter ppsspp menu. this is what I have tried:

$Esc::
{
    Process, Close, {{{StartupEXE}}}
}

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...