ปกติเราจะไม่สามารถกำหนดmsgboxให้ผุดขึ้นมาตามตำแหน่งที่ต้องการได้ เช่น บน,ล่าง,ซ้าย,ขวา เป็นต้น ..msgboxจะขึ้นอยู่ตรงกลาง ตำแหน่งเดียวเท่านั้น เราสามารถใช้Splashแทนmsgbox ..ซึ่งสามารถกำหนดตำแหน่งที่ให้ผุดขึ้นชั่วคราวได้ ดังตัวอย่าง จากการเขียนสคริ๊ปคำสั่งจากโปรแกรมภาษา Autoit v3 ดังนี้
รูปแบบคำสั่ง: Splash
SplashTextOn ( "title", "text" [, w [, h [, x pos [, y pos [, opt [, "fontname" [, fontsz [, fontwt ]]]]]]]] )
Parameters:
title Title for splash window.
text Text for splash window.
w [optional] Width of window in pixels. (default 500)
h [optional] Height of window in pixels. (default 400)
x pos [optional] Position from left (in pixels) of splash window. (default is centered)
y pos [optional] Position from top (in pixels) of splash window. (default is centered)
opt [optional] Add them up - default is 'center justified/always on top/with title'
0 = Center justified/always on top/with title (default)
1 = Thin bordered titleless window
2 = Without "always on top" attribute
4 = Left justified text
8 = Right justified text
16 = Windows can be moved
32 = Centered vertically text
fontname [optional] Font to use. (OS default GUI font is used if the font is "" or is not found)
fontsz [optional] Font size. (default is 12; standard sizes are 6 8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72)
fontwt [optional] Font weight (0 - 1000, default = 400 = normal). A value > 1000 is treated as zero.
---------------------------------------------------------------
เวลาที่ท่านต้องการใช้งาน ก็ให้เขียนคำสั่งลงไปดังนี้(แบบทดสอบ)
Size:267 KB
Download:http://upload.one2car.com/download.aspx?pku=12DF14C506UTMI9G94V4IV7PSDFSFD
รูปแบบคำสั่ง: Splash
SplashTextOn ( "title", "text" [, w [, h [, x pos [, y pos [, opt [, "fontname" [, fontsz [, fontwt ]]]]]]]] )
Parameters:
title Title for splash window.
text Text for splash window.
w [optional] Width of window in pixels. (default 500)
h [optional] Height of window in pixels. (default 400)
x pos [optional] Position from left (in pixels) of splash window. (default is centered)
y pos [optional] Position from top (in pixels) of splash window. (default is centered)
opt [optional] Add them up - default is 'center justified/always on top/with title'
0 = Center justified/always on top/with title (default)
1 = Thin bordered titleless window
2 = Without "always on top" attribute
4 = Left justified text
8 = Right justified text
16 = Windows can be moved
32 = Centered vertically text
fontname [optional] Font to use. (OS default GUI font is used if the font is "" or is not found)
fontsz [optional] Font size. (default is 12; standard sizes are 6 8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72)
fontwt [optional] Font weight (0 - 1000, default = 400 = normal). A value > 1000 is treated as zero.
---------------------------------------------------------------
เวลาที่ท่านต้องการใช้งาน ก็ให้เขียนคำสั่งลงไปดังนี้(แบบทดสอบ)
Size:267 KB
Download:http://upload.one2car.com/download.aspx?pku=12DF14C506UTMI9G94V4IV7PSDFSFD
Code:
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 0, 0, 0, "", 24)
Sleep(2000)
SplashOff() ;ซ้ายบน
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 0, 300, 0, "", 24)
Sleep(2000)
SplashOff() ;ซ้ายกลาง
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 0, 600, 0, "", 24)
Sleep(2000)
SplashOff() ;ซ้ายล่าง
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 300, 0, 0, "", 24)
Sleep(2000)
SplashOff() ;บนกลาง
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 300, 300, 0, "", 24)
Sleep(2000)
SplashOff() ;ตรงกลาง
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 300, 600, 0, "", 24)
Sleep(2000)
SplashOff() ;กลางล่าง
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 600, 0, 0, "", 24)
Sleep(2000)
SplashOff() ;ขวาบน
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 600, 300, 0, "", 24)
Sleep(2000)
SplashOff() ;ขวากลาง
Sleep(1000)
SplashTextOn("Zone-it Webside", "Welcome to Zone-it", 400, 100, 600, 600, 0, "", 24)
Sleep(2000) ;ขวาล่าง
SplashOff()