end

プログラム終了

end p1

p1(0) : 終了コード

解説

HSPのプログラムを終了します。
end命令はスクリプトのどこにあってもかまいません。
end命令が実行されると、そのアプリケーションは終了します。

アプリケーションの終了コードをパラメーターp1で指定することができます。p1を省略した場合は、0がアプリケーション終了コードとなります。
アプリケーション終了コードは、他のプロセスやバッチファイルへの通知に使用されます。通常は、省略(0)していて問題ありません。

関連項目

stopプログラム中断

サンプル逆引き (310)

addline.hsp
ahtman_kw.hsp
aplkey.hsp
aplkey3.hsp
aplnote.hsp
appconfig.hsp
arduino_test1.hsp
arduino_test2.hsp
arduino_test3.hsp
arduino_test4.hsp
arduino_test5.hsp
arraynote.hsp
arraynote.hsp
arusave.hsp
aviplay.hsp
battle.hsp
block3.hsp
block3.hsp
block3.hsp
block3_ad.hsp
bmpsave.hsp
boxf_snake.hsp
buffer.hsp
button_test.hsp
cdplay.hsp
chase_cl.hsp
cl_getpath.hsp
cnvaxis.hsp
cnvaxis.hsp
cnvsrc.hsp
comtest3.hsp
comtest4.hsp
comtest5.hsp
cookie_get.hsp
cookie_set.hsp
csvnote.hsp
csvstr.hsp
customshader.hsp
d3m_techdemo.hsp
daytime.hsp
defcfunc.hsp
demo.hsp
demo_en.hsp
dircsv.hsp
dirinfo.hsp
drop.hsp
drop_dish.hsp
editor.hsp
emit_sample1.hsp
emit_sample2.hsp
emit_sample3.hsp
eprim.hsp
es_test10.hsp
es_test11.hsp
es_test12.hsp
es_test13.hsp
es_test3.hsp
es_test4.hsp
es_test5.hsp
es_test6.hsp
es_test7.hsp
es_test8.hsp
es_test9.hsp
facedetect.hsp
feedback.hsp
file_watch.hsp
ftime.hsp
fullscr.hsp
fuujin_dish.hsp
fwmap1.hsp
fwmap2.hsp
fwmap3.hsp
fwmap4.hsp
fwtest2.hsp
fwtest3.hsp
fwtest4.hsp
fwtest5.hsp
fwtest6.hsp
fwtest7.hsp
fxdir.hsp
gemini.hsp
get_binary.hsp
getenv.hsp
getpath.hsp
getpath.hsp
hgview.hsp
hidmon_test1.hsp
hidmon_test2.hsp
hsp3imp_test.hsp
hsplogo.hsp
hsptv_test.hsp
hsptv_test.hsp
hsptv_test2.hsp
hsptv_test3.hsp
hsptvapp_test.hsp
htmlput.hsp
http.hsp
https_download.hsp
imgload.hsp
input_test.hsp
itunes_mon.hsp
joystick1.hsp
joystick1.hsp
joystick2.hsp
joystick2.hsp
joystick3.hsp
joystick3.hsp
kick.hsp
kick_dish.hsp
light_test1.hsp
light_test2.hsp
light_test3.hsp
light_test4.hsp
light_test5eff.hsp
loadsave.hsp
macro.hsp
maptest2.hsp
maptest3.hsp
maptest4.hsp
menusample.hsp
meshmap.hsp
meshmap2.hsp
meshmap3.hsp
meshmap4.hsp
meshmap5.hsp
meshmap6.hsp
meshmap7.hsp
mkexe.hsp
mkpack.hsp
mmaudio1.hsp
mmaudio2.hsp
mmaudio4.hsp
mouse.hsp
mouse2.hsp
mtouch.hsp
multimon.hsp
multitouch1.hsp
multitouch1.hsp
multitouch2.hsp
multitouch2.hsp
multitouch3.hsp
multitouch3.hsp
named_pipe.hsp
nearobj.hsp
nkfcnv.hsp
noframe.hsp
noframe.hsp
noteadd.hsp
noteadd.hsp
obaqhg1.hsp
obaqhg2.hsp
obaqhg3.hsp
obaqme.hsp
obaqtest.hsp
objfade.hsp
objmode.hsp
objshadow.hsp
objsort.hsp
ogg_sndtest.hsp
onerror.hsp
onexit.hsp
onkey.hsp
particle.hsp
physics_2.hsp
physics_3.hsp
pipe.hsp
pipe2.hsp
poker.hsp
poker_dish.hsp
posteffect.hsp
power_info.hsp
pronama2.hsp
pronama3.hsp
pronama4.hsp
pronama5.hsp
pronama_box.hsp
qvbtest.hsp
reg_edit.hsp
regtest2.hsp
rssload.hsp
sample_01_basic.hsp
sample_01_hello.hsp
sample_01_urldownload.hsp
sample_02_droptarget.hsp
sample_02_emoji.hsp
sample_02_Rect_Ellip.hsp
sample_03_Color_Brush.hsp
sample_04_Penstyle.hsp
sample_05_DrawText.hsp
sample_06_TransMode.hsp
sample_07_Curve.hsp
sample_08_Copy.hsp
sample_09_imagetest.hsp
sample_ai.hsp
sample_cam_ai.hsp
sample_camera_mf.hsp
sample_camera_mf_dual.hsp
sample_camera_preview.hsp
sample_csv.hsp
sample_dialog.hsp
sample_gif_anim.hsp
sample_ini_config.hsp
sample_json.hsp
sample_llama.hsp
sample_mcp_server.hsp
sample_pdf.hsp
sample_ribbon.hsp
sample_speech.hsp
sample_svg.hsp
sample_toast.hsp
sample_weather.hsp
sample_webserver.hsp
sample_websocket.hsp
sampview.hsp
sapi_speech.hsp
settex.hsp
shoot.hsp
shoot_dish.hsp
skybox.hsp
sndedit.hsp
spr3d_1.hsp
spr3d_2.hsp
spr3d_3.hsp
stick.hsp
str.hsp
str.hsp
strex_test1.hsp
swfload.hsp
tamaenaga_dish.hsp
tamane1.hsp
tamane1.hsp
tamane2.hsp
tamane2.hsp
tamane3.hsp
tamane3.hsp
tamane4.hsp
tamane_face.hsp
tamane_tree.hsp
terminal.hsp
test1.hsp
test1.hsp
test1.hsp
test1.hsp
test1.hsp
test1.hsp
test10.hsp
test10.hsp
test10.hsp
test11.hsp
test11.hsp
test12.hsp
test13.hsp
test13.hsp
test2.hsp
test2.hsp
test2.hsp
test2.hsp
test2.hsp
test2.hsp
test3.hsp
test3.hsp
test3.hsp
test3.hsp
test3.hsp
test4.hsp
test4.hsp
test4.hsp
test5.hsp
test5.hsp
test5.hsp
test6.hsp
test6.hsp
test6.hsp
test7.hsp
test7.hsp
test7.hsp
test8.hsp
test8.hsp
test8.hsp
test9.hsp
test9.hsp
test9.hsp
test_compile.hsp
test_editor.hsp
test_gettag.hsp
test_mml.hsp
test_play.hsp
test_status.hsp
tof2.hsp
tof2_dish.hsp
typing.hsp
utftest3.hsp
utftest4.hsp
uvscroll.hsp
view_test.hsp
vtest1.hsp
vtest2.hsp
wave.hsp
winmove.hsp
winobj.hsp
xsample_alphapaint.hsp
xsample_alphastg.hsp
xsample_amano.hsp
xsample_diamond.hsp
xsample_gcube.hsp
xsample_gcube.hsp
xsample_Rocket.hsp
xsample_shiraho.hsp
xsample_verge.hsp
yopparai.hsp

情報

バージョン3.6
作成日2013/12/09
著作者onitama
URLhttp://hsp.tv/
備考ver3.6標準命令
タイプ内蔵命令
グループプログラム制御命令
対応環境
  • Windows 版 HSP
  • コマンドライン版 HSP
  • HSPLet
hs ファイルhsphelp\i_prog.hs