1. Trang chủ
  2. » Công Nghệ Thông Tin

AutoIT Help part 98 ppsx

6 289 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 6
Dung lượng 20,39 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

default is blank x pos [optional] position from left in pixels of progress window.. default is centered y pos [optional] position from top in pixels of progress window.. default is cen

Trang 1

Function Reference

ProgressOn

Creates a customizable progress bar window

ProgressOn ( "title", "maintext" [, "subtext" [, x pos [, y pos [, opt]]]] )

Parameters

title Title for progress window

maintext Text for Main, Bold, Upper label

subtext [optional] text for Sub, Normal, Lower label (default is blank)

x pos [optional] position from left (in pixels) of progress window (default is

centered)

y pos [optional] position from top (in pixels) of progress window (default is

centered)

opt

[optional] Default is 'always on top/with title' Add up the following options you want:

1 = borderless, titleless window

2 = Without "always on top" attribute

16 = Window can be moved

Return Value

None

Remarks

To skip an optional parameter, leaving it's default value intact, use:

"" for string parameters

-1 for numeric parameters

If ProgressOn is called while a progress window already exists, the window is redrawn/moved (If you want multiple simultaneous progress windows, you need

to use multiple scripts.)

Trang 2

Related

ProgressOff, ProgressSet

Example

ProgressOn("Progress Meter", "Increments every second", "0 percent")

For $i = 10 to 100 step 10

sleep(1000)

ProgressSet( $i, $i & " percent")

Next

ProgressSet(100 , "Done", "Complete")

sleep(500)

ProgressOff()

Function Reference

ProgressSet

Sets the position and/or text of a previously created Progress bar window ProgressSet ( percent [, "subtext" [, "maintext"]] )

Parameters

percent Percentage (value between 0 and 100.) to set the progress bar at subtext [optional] Set the text for the Sub, Normal, Lower label

maintext [optional] Set the text for the Main, Bold, Upper label

Return Value

None

Trang 3

Remarks

Notice that the subtext argument comes before maintext

Related

ProgressOff, ProgressOn

Example

ProgressOn("Progress Meter", "Increments every second", "0 percent") For $i = 10 to 100 step 10

sleep(1000)

ProgressSet( $i, $i & " percent")

Next

ProgressSet(100 , "Done", "Complete")

sleep(500)

ProgressOff()

Function Reference

SplashImageOn

Creates a customizable image popup window

SplashImageOn ( "title", "file" [, width [, height [, x pos [, y pos [, opt]]]]] )

Parameters

title Title for splash window

file full path\filename of image (BMP, GIF, or JPG)

width [optional] width of window in pixels (default is 500)

height [optional] height of window in pixels (default is 400)

Trang 4

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 up the options you want Default is 'always on top/with title'

1 = Thin bordered titleless window

2 = Without "always on top" attribute

16 = Windows can be moved

Return Value

None

Remarks

To skip an optional parameter, leaving it's default value intact, use a value of -1

The image is scaled to specified width and height and should be a Bitmap, GIF, or JPEG image Icons (ICOs) will not display, though the window still appears PNG images throw an error message of failing to load, and so do invalid files/paths Images are not embedded in the executable unless you use FileInstall

Only one SplashImage/Text window is allowed at one time; so if you wish to cycle through multiple images/text, simply call SplashImageOn/SplashTextOn again with the new information

Splash with opt=1 cannot be moved and cannot be activated by click

Related

SplashOff, SplashTextOn

Example

$destination = @Systemdir & "\oobe\images\mslogo.jpg"

Trang 5

SplashImageOn("Splash Screen", $destination,250,50) Sleep(3000)

SplashOff()

Function Reference

SplashOff

Turns SplashText or SplashImage off

SplashOff ( )

Parameters

None

Return Value

None

Remarks

None

Related

SplashImageOn, SplashTextOn

Example

SplashTextOn("Example", "Splash Screen")

Sleep(5000)

SplashOff()

Trang 6

Function Reference

SplashTextOn

Creates a customizable text popup window

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

Ngày đăng: 02/07/2014, 17:21

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN