Giáo Trình How To Use AutoIt A Professional Manner part 91 pptx

10 277 0
Giáo Trình How To Use AutoIt A Professional Manner part 91 pptx

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

Thông tin tài liệu

Opt("GUIDataSeparatorChar","|") ;"|" is the default Opt("GUIOnEventMode", 0) ;0=disabled, 1=OnEvent mode enabled Opt("GUIResizeMode", 0) ;0=no resizing, <1024 special resizing Opt("GUIEventOptions",0) ;0=default, 1=just notification, 2=GuiCtrlRead tab index Opt("MouseClickDelay", 10) ;10 milliseconds Opt("MouseClickDownDelay", 10) ;10 milliseconds Opt("MouseClickDragDelay", 250) ;250 milliseconds Opt("MouseCoordMode", 1) ;1=absolute, 0=relative, 2=client Opt("MustDeclareVars", 0) ;0=no, 1=require pre-declare Opt("OnExitFunc","OnAutoItExit");"OnAutoItExit" called Opt("PixelCoordMode", 1) ;1=absolute, 0=relative, 2=client Opt("SendAttachMode", 0) ;0=don't attach, 1=do attach Opt("SendCapslockMode", 1) ;1=store and restore, 0=don't Opt("SendKeyDelay", 5) ;5 milliseconds Opt("SendKeyDownDelay", 1) ;1 millisecond Opt("TCPTimeout",100) ;100 milliseconds Opt("TrayAutoPause",1) ;0=no pause, 1=Pause Opt("TrayIconDebug", 0) ;0=no info, 1=debug line info Opt("TrayIconHide", 0) ;0=show, 1=hide tray icon Opt("TrayMenuMode",0) ;0=append, 1=no default menu, 2=no automatic check, 4=menuitemID not return Opt("TrayOnEventMode",0) ;0=disable, 1=enable Opt("WinDetectHiddenText", 0) ;0=don't detect, 1=do detect Opt("WinSearchChildren", 1) ;0=no, 1=search children also Opt("WinTextMatchMode", 1) ;1=complete, 2=quick Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to - 4=Nocase Opt("WinWaitDelay", 250) ;250 milliseconds Function Reference Abs lấy giá trị tuyệt đối. Abs ( expression ) Parameters expression biểu thức Return Value trả lại số dương Remarks nếu tham số là 1 chuỗi kí tự thì chuỗi đó sẽ có giá trị = 0. Related None. Example $var = Abs(-123.45) ;value is 123.45 Function Reference ACos tính arc cosin ACos ( expression ) Parameters expression biểu thức có giá trị [-1 1] Return Value trả lại số tính = radians. Remarks ACos(x) sẽ trả lại -1 nếu expression nằm ngoài miền giá trị. Related Sin, Cos, Tan, ASin, ATan Example $x = ACos(0.5) $pi = 3.14159265358979 $radToDeg = 180 / $pi $y = ACos(-1) * $radToDeg ;arcCosine of -1 returns 180° Function Reference ASin tính arc sin ASin ( expression ) Parameters expression biểu thức có giá trị [-1 1] Return Value trả lại số tính = radians. Remarks ASin(x) sẽ trả lại -1 nếu expression nằm ngoài miền giá trị. Related Sin, Cos, Tan, ACos, ATan Example $x = ASin(0.5) $pi = 3.14159265358979 $radToDeg = 180 / $pi $y = ASin(1) * $radToDeg ;arcsine of 1 returns 90° Function Reference ATan tính arc tag. ATan ( expression ) Parameters expression biểu thức có giá trị [-1 1] Return Value trả lại số tính = radians. Remarks 4*ATan(1) = pi. Related Sin, Cos, Tan, ASin, ACos Example $x = ATan(0.5) $pi = 4 * ATan(1) ;equals 3.14159265358979 $radToDeg = 180 / $pi $y = ATan(1) * $radToDeg ;arctangent of 1 returns 45° Function Reference BitAND bit and. BitAND ( value1, value2 [, value n] ) Parameters value1 giá trị thứ 1 value2 giá trị thứ 2 value n giá trị thứ n (max n = 255) Return Value trả lại số. Remarks Bit and là thực hiện phép and đối với các bit của các tham số tham số sẽ đc chuyển về dạng nhị phân 1 and 1 = 1 1 and 0 = 0 0 and 1 = 0 0 and 0 = 0 vd bitand( 13, 7) 13 (hệ 10) => 1101 (hệ 2) 07 (hệ 10) => 0111 (hệ 2) bit and => 0101 (hệ 2) = 5 (hệ 10) Related BitNOT, BitOR, BitShift, BitXOR, Hex Example $x = BitAND(13, 7) ;x == 5 because 1101 AND 0111 = 0101 $x = BitAND(2, 3, 6) ;x == 2 because 0010 AND 0011 AND 0110 = 0010 Function Reference BitNOT bit not. BitNOT ( value ) Parameters value số Return Value trả lại số Remarks Bit not là thực hiện phép not đối với các bit của tham số tham số sẽ đc chuyển về dạng nhị phân not 1 = 0 not 0 = 1 vd bitand( 13) 13 (hệ 10) => 1101 (hệ 2) bit not => 0010 (hệ 2) = 2 (hệ 10) Related BitAND, BitOR, BitShift, BitXOR, Hex Example $x = BitNot(5) #cs Comments: Result is -6 because for 32-bit numbers 5 == 00000000000000000000000000000101 binary -6 == 11111111111111111111111111111010 binary and the first bit is signed #ce Function Reference BitNOT bit not. BitNOT ( value ) Parameters value số Return Value trả lại số Remarks Bit not là thực hiện phép not đối với các bit của tham số tham số sẽ đc chuyển về dạng nhị phân not 1 = 0 not 0 = 1 vd bitand( 13) 13 (hệ 10) => 1101 (hệ 2) bit not => 0010 (hệ 2) = 2 (hệ 10) Related BitAND, BitOR, BitShift, BitXOR, Hex Example $x = BitNot(5) #cs Comments: Result is -6 because for 32-bit numbers 5 == 00000000000000000000000000000101 binary -6 == 11111111111111111111111111111010 binary and the first bit is signed #ce Function Reference BitOR bit or. BitOR ( value1, value2 [, value n] ) Parameters value1 số 1 value2 số 1 value n số n Return Value số. Remarks Bit or là thực hiện phép or đối với các bit của các tham số tham số sẽ đc chuyển về dạng nhị phân 1 or 1 = 1 1 or 0 = 1 0 or 1 = 1 0 or 0 = 0 vd bitor( 13, 7) . Opt("OnExitFunc","OnAutoItExit");"OnAutoItExit" called Opt("PixelCoordMode", 1) ;1=absolute, 0=relative, 2=client Opt("SendAttachMode", 0) ;0=don't attach, 1=do attach. ATan tính arc tag. ATan ( expression ) Parameters expression biểu thức có giá trị [-1 1] Return Value trả lại số tính = radians. Remarks 4*ATan(1) = pi. Related Sin, Cos, Tan, ASin,. ASin, ACos Example $x = ATan(0.5) $pi = 4 * ATan(1) ;equals 3.14159265358979 $radToDeg = 180 / $pi $y = ATan(1) * $radToDeg ;arctangent of 1 returns 45° Function Reference BitAND

Ngày đăng: 08/07/2014, 21:20

Tài liệu cùng người dùng

Tài liệu liên quan