Sadly it's not working.
This is what i did yesterday but nothing working.
Code: Select all
#Persistent
#SingleInstance, force
#IfWinActive, "G:\Higan\higan.exe"
WinWait,, Seek
Sleep, 1000
ControlSend, , {R}, ahk_exe higan.exe
Code: Select all
#Persistent
#SingleInstance, force
#IfWinActive, "G:\Higan\higan.exe"
WinWait,, Seek
Sleep, 1000
ControlSend, , {R}, ahk_exe higan.exe
Code: Select all
#Persistent
#SingleInstance Force
If ( WinExist("ahk_exe higan.exe") )
{
WinActivate
Send, R
}
Oh sorry, I did not read the first post again, my bad.Oxidia wrote: ↑08 Mar 2022, 11:35Thanks guys, like i said on my previous post.
When i launch a game on Higan ( it's an emulator) i have to press a key everytime to enter in fullscreen mode. I don't know why but Higan have no option implanted to to that.
This is my goal.
Thanks again i'm very grateful that help me, i'm still trying all of your script but at this time nothing work.
I've seen on the web that it need a sleep time or it will won't work., this is why i'm trying.
Perhaps you can edit the shortcut that launches Higan and add --fullscreen to the end of the command line.Fullscreen Mode settings apply when higan is running fullscreen, because it was started with the --fullscreen command-line option or because the user pressed the Toggle Fullscreen hotkey.
Code: Select all
#SingleInstance Force
#Persistent
#NoEnv
WinKill, ahk_exe bsnes.exe
Run, C:\Users\xxx\Downloads\bsnes_v115-windows\bsnes.exe
WinWaitActive, ahk_exe bsnes.exe
Return
^e::
SoundBeep, 1000
Send, {F11}
Sleep, 500
SoundBeep, 1000
SendInput, {F11}
Sleep, 500
SoundBeep, 1000
SendPlay, {F11}
Sleep, 500
SoundBeep, 1000
SendEvent, {F11}
Loop, 7
{
Sleep, 500
freq := 1000 + A_Index * 200
SoundBeep, %freq%
ControlSend, hiroWidget%n%, {F11}, ahk_exe bsnes.exe
}
Return
Code: Select all
#Persistent
#SingleInstance, force
Loop{
WinWait, ahk_exe higan.exe
Sleep, 1000
SetKeyDelay, -1, 110
Send R
WinWaitClose, ahk_exe Higan.exe
}
~$Esc:: ; Long press (> 0.5 sec) on Esc closes window
KeyWait, Escape, T0.5 ; Wait no more than 0.5 sec for key release (also suppress auto-repeat)
If ErrorLevel ; timeout, so long press
PostMessage, 0x112, 0xF060,,, A ;Use PostMessage to close window
Return
Code: Select all
#SingleInstance Force
#Persistent
#NoEnv
WinKill, ahk_exe bsnes.exe
Run, C:\Users\admin\Downloads\bsnes_v115-windows\bsnes.exe
WinWaitActive, ahk_exe bsnes.exe
Sleep, 500
SoundBeep, 1000
SendInput, {F11 Down}
Sleep, 600
SendInput, {F11 Down}
SoundBeep, 1000
Return
Code: Select all
#Persistent
#SingleInstance, force
Loop{
WinWait, Super Mario Bros. 3 (USA)
Sleep, 1000
SetKeyDelay, -1, 110
Send R
WinWaitClose, Super Mario Bros. 3 (USA)
}
Return
Code: Select all
#Persistent
#SingleInstance, force
Loop{
WinWait, ahk_exe higan.exe
Sleep, 2000
SetKeyDelay, -1, 110
Send R
WinWaitClose, ahk_exe higan.exe
}
Esc::WinClose, ahk_exe higan.exe
Return
Code: Select all
Run, C:\Program Files\PuTTY\putty.exe -load shelfpick -l XXX -pw XXX
WinWait, ahk_exe C:\Program Files\PuTTY\putty.exe -load shelfpick -l XXX -pw XXX
WinActivate, ahk_exe C:\Program Files\PuTTY\putty.exe -load shelfpick -l XXX -pw XXX
Sleep, 3000
SendInput,!{Enter}