Jump to content
Rpg²S Forum
  • 0

Chiamata api non riuscita...?.?


Apprendista
 Share

Question

Ciao a tutti...sto cercando di imparare questo linguaggio di scripting e come inizio per un mio progetto stavo provando ad a richiamare l API ShellExecute alla chiusura del gioco:

def command_shutdown	# Suona SE Azione 	$game_system.se_play($data_system.decision_se)	# Dissolvi BGM,BGS,ME	Audio.bgm_fade(800)	Audio.bgs_fade(800)	Audio.me_fade(800)	# Esci   api=Win32API.new('shell32', 'ShellExecute',[ "P", "P", "P", "I", "P", "I"], 'I')	api.call("null","open","guard.exe",0,"null",0)	$scene = nil   end

 

Il tutto per uno come me che nn conosce tale linguaggio sembra andare bene, ma il programma nono viene avviato...cosa sto sbagliando??

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Usare le api su rpgmaker è un macello...

 

 

 

Cosa vorresti che accadesse, esattamente?

 

Intendo dire... vuoi che quando scegli il comando "esci" dalla schermata dei titoli del gioco ti esegua il file "guard.exe"?

 

Mi sembra che ci sia qualcosa di sbagliato nella sintassi della chiamata o_O

Progetti:

 http://i.imgur.com/jmLkIqi.png

http://i54.tinypic.com/2rh4ojq.png

https://github.com/ProGM

 

Crea anche tu il tuo gioco per Game Boy!
http://rpg2s.net/gif/SCContest3Oct.gifhttp://www.rpg2s.net/img/fablecontest1st.pnghttp://i43.tinypic.com/1zokd2s.png


http://i.imgur.com/BEu6G.gif

http://i.imgur.com/H1ARhq7.gif

http://i.imgur.com/Af6ijZN.gif

AOT: Associazione Odiamo la Telecom:

http://i.imgur.com/aYJs89E.png

"4 gattini... 4 stelline... E le 4 paperelle non ci stavano :3"

Flame


http://i30.tinypic.com/i27ypj.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...