nikonesca
Messages : 734 Département : 31
| Sujet: Re: Pinball Fx2 et Pinballx Jeu 5 Déc 2013 - 17:39 | |
| Pour moi il semblerais que ce soit l'action de lancement ledblinky qui pose problème… Essaye peut-être avec ce code (c'est mon code en simplifié sans backglass et sans ledwiz) : - Code:
-
#SingleInstance force SetTitleMatchMode 2 DetectHiddenWindows On ;SendMode Input SetWorkingDir %A_ScriptDir% ;#Include, Gdip.ahk Table = %1% ;Variable from PinballX ;hyperini = %A_ScriptDir%\Settings.ini ;IniWrite, %1%, %hyperini%, LastLoad, table
WinWait, ahk_class PxWindowClass WinActivate, ahk_class PxWindowClass WinWaitActive, ahk_class PxWindowClass Gosub %table% Process, WaitClose, Pinball FX2.exe ExitApp
;Table Selection
STARWARS_Episode_6: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Enter Down}, Send {Enter Up} Return STARWARS_SFA: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return STARWARS_Darth_Vader: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return
STARWARS_Episode_5: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return STARWARS_CloneWars: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return STARWARS_Boba_Fett: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_CaptainAmerica: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_FantasticFour: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_CivilWar: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_Avengers: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_FearItSelf: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_InfinityGauntlet: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_WWH: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_Thor: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_MoonKnight: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_GhostRider: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_XMen: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_Blade: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_IronMan: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_SpiderMan: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return MARVEL_Wolverine: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return SplosionMan: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return EarthDefense: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return Mars: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return Excalibur: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return Paranormal: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return
Citadel: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return
Atlantis: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Right Down}, Send {Right Up} Sleep 20 Send {Enter Down}, Send {Enter Up} Return BioLab: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return Pasha: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return Rome: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return Shaman: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return Tesla: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return ElDorado: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return
V12: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Right Down}, Send {Right Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return Looter: Sleep, 11000 Send {Enter Down}, Send {Enter Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Sleep, 500 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Down Down}, Send {Down Up} Sleep, 20 Send {Enter Down}, Send {Enter Up} Return Ensuite peut-être assure toi que les noms de tes tables dans ton database xml soit bien identique à ceux du code et que tout tes chemins d'accès soit ok (je pense au chemin de table dans les settings pinballx) | |
|