当前位置:首页 » 编程软件 » 小脚本代码

小脚本代码

发布时间: 2023-09-06 20:53:38

❶ 高分!求一个按键精灵的脚本代码

VBSCall a=GetPixelColor(100,120)
VBSCall b=GetPixelColor(101,121)
VBSCall c=GetPixelColor(102,122)
If a=b
If a=c
MoveTo 27 750
LeftClick 1
EndIf

复制上面的到源代码就可以磨宽了知和

//第一瞎猛亮行括号内为x1,y1;第二行括号内为x2,y2;第三行括号内为x3,y3; MoveTo 27 750为鼠标移到 x y

下面用 and 也可以

VBSCall GetCursorpos(100,120)
color1=GetPixelColor(100,120)
VBSCall GetCursorpos(101,121)
color2=GetPixelColor(101,121)
VBSCall GetCursorpos(102,122)
color3=GetPixelColor(102,122)
If color1=color2 and color1=color3
MoveTo 27 750
LeftClick 1
EndIf

❷ 下列哪个为jsp的小脚本标签 A<%%> B<@%> C<%!%> D<%--%> 急求,谢啦

第一个为小脚本:<% %>
第二个为指令:如:<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
第三个我没见过,不知道是什么,第四个,是注释

❸ 按键精灵脚本代码

VB中的键码常数 键码值 描述
-------------------------------------------------------------------
vbKeyLButton 1 鼠标左键
-------------------------------------------------------------------
vbKeyRButton 2 鼠标右键
-------------------------------------------------------------------
vbKeyCancel 3 CANCEL 键
-------------------------------------------------------------------
vbKeyMButton 4 鼠标中键
-------------------------------------------------------------------
vbKeyBack 8 Backspace 键
-------------------------------------------------------------------
vbKeyTab 9 TAB 键
-------------------------------------------------------------------
vbKeyClear 12 CLEAR 键
-------------------------------------------------------------------
vbKeyReturn 13 Enter 键
-------------------------------------------------------------------
vbKeyShift 16 Shift 键
-------------------------------------------------------------------
vbKeyConterol 17 Ctrl 键
-------------------------------------------------------------------
vbKeyMenu 18 菜单键
-------------------------------------------------------------------
vbKeyPause 19 PAUSE 键
-------------------------------------------------------------------
vbKeyCapital 20 CAPS LOCK 键
-------------------------------------------------------------------
vbKeyEscape 27 ESC 键
-------------------------------------------------------------------
vbKeySpace 32 SPACEBAR 键
-------------------------------------------------------------------
vbKeyPageUp 33 PAGEUP 键
-------------------------------------------------------------------
vbKeyPageDown 34 PAGEDOWN 键
-------------------------------------------------------------------
vbKeyEnd 35 END 键
-------------------------------------------------------------------
vbKeyHome 36 HOME 键
-------------------------------------------------------------------
vbKeyLeft 37 LEFT ARROW 键←
-------------------------------------------------------------------
vbKeyUp 38 UP ARROW 键↑
-------------------------------------------------------------------
vbKeyRight 39 RIGHT ARROW 键→
-------------------------------------------------------------------
vbKeyDown 40 DOWN ARROW 键↓
-------------------------------------------------------------------
vbKeySelect 41 SELECT 键
-------------------------------------------------------------------
vbKeyPrint 42 PRINT SCREEN 键
-------------------------------------------------------------------
vbKeyExecute 43 EXECUTE 键
-------------------------------------------------------------------
vbKeySnapshot 44 SNAP SHOT 键
-------------------------------------------------------------------
vbKeyInser 45 INSERT 键
-------------------------------------------------------------------
vbKeyDelete 46 DELETE 键
-------------------------------------------------------------------
vbKeyHelp 47 HELP 键
-------------------------------------------------------------------
vbKey0 48 0 键
-------------------------------------------------------------------
vbKey1 49 1 键
-------------------------------------------------------------------
vbKey2 50 2 键
-------------------------------------------------------------------
vbKey3 51 3 键
-------------------------------------------------------------------
vbKey4 52 4 键
-------------------------------------------------------------------
vbKey5 53 5 键
-------------------------------------------------------------------
vbKey6 54 6 键
-------------------------------------------------------------------
vbKey7 55 7 键
-------------------------------------------------------------------
vbKey8 56 8 键
-------------------------------------------------------------------
vbKey9 57 9 键
-------------------------------------------------------------------
vbKeyA 65 A 键
-------------------------------------------------------------------
vbKeyB 66 B 键
-------------------------------------------------------------------
vbKeyC 67 C 键
-------------------------------------------------------------------
vbKeyD 68 D 键
-------------------------------------------------------------------
vbKeyE 69 E 键
-------------------------------------------------------------------
vbKeyF 70 F 键
-------------------------------------------------------------------
vbKeyG 71 G 键
-------------------------------------------------------------------
vbKeyH 72 H 键
-------------------------------------------------------------------
vbKeyI 73 I 键
-------------------------------------------------------------------
vbKeyJ 74 J 键
-------------------------------------------------------------------
vbKeyK 75 K 键
-------------------------------------------------------------------
vbKeyL 76 L 键
-------------------------------------------------------------------
vbKeyM 77 M 键
-------------------------------------------------------------------
vbKeyN 78 N 键
-------------------------------------------------------------------
vbKeyO 79 O 键
-------------------------------------------------------------------
vbKeyP 80 P 键
-------------------------------------------------------------------
vbKeyQ 81 Q 键
-------------------------------------------------------------------
vbKeyR 82 R 键
-------------------------------------------------------------------
vbKeyS 83 S 键
-------------------------------------------------------------------
vbKeyT 84 T 键
-------------------------------------------------------------------
vbKeyU 85 U 键
-------------------------------------------------------------------
vbKeyV 86 V 键
-------------------------------------------------------------------
vbKeyW 87 W 键
-------------------------------------------------------------------
vbKeyX 88 X 键
-------------------------------------------------------------------
vbKeyY 89 Y 键
-------------------------------------------------------------------
vbKeyZ 90 Z 键
-------------------------------------------------------------------
vbKeyNum0 96 0 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum1 97 1 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum2 98 2 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum3 99 3 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum4 100 4 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum5 101 5 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum6 102 6 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum7 103 7 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum8 104 8 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyNum9 105 9 键 (在数字小键盘上)
-------------------------------------------------------------------
vbKeyMultiply 106 乘号(*) 键
-------------------------------------------------------------------
vbKeyAdd 107 加号(+) 键
-------------------------------------------------------------------
vbKeySeparator 108 Enter键(在数字小键盘上)
-------------------------------------------------------------------
vbKeySubtract 109 减号(-) 键
-------------------------------------------------------------------
vbKeyDecimal 110 小数点(.) 键
-------------------------------------------------------------------
vbKeyDivide 111 除号(/) 键
-------------------------------------------------------------------
vbKeyF1 112 F1 键
-------------------------------------------------------------------
vbKeyF2 113 F2 键
-------------------------------------------------------------------
vbKeyF3 114 F3 键
-------------------------------------------------------------------
vbKeyF4 115 F4 键
-------------------------------------------------------------------
vbKeyF5 116 F5 键
-------------------------------------------------------------------
vbKeyF6 117 F6 键
-------------------------------------------------------------------
vbKeyF7 118 F7 键
-------------------------------------------------------------------
vbKeyF8 119 F8 键
-------------------------------------------------------------------
vbKeyF9 120 F9 键
-------------------------------------------------------------------
vbKeyF10 121 F10 键
-------------------------------------------------------------------
vbKeyF11 122 F11 键
-------------------------------------------------------------------
vbKeyF12 123 F12 键
-------------------------------------------------------------------
vbKeyF13 124 F13 键
-------------------------------------------------------------------
vbKeyF14 125 F14 键
-------------------------------------------------------------------
vbKeyF15 126 F15 键
-------------------------------------------------------------------
vbKeyF16 127 F16 键
-------------------------------------------------------------------
vbKeyNumlock 144 NUM LOCK 键
-------------------------------------------------------------------

❹ vbs脚本代码

根据windows中 Shutdown 的参数设置
-s 表示关闭本地计算机
-r 表示关机并重起
-l 表示注销当前用户
-f 强行关闭应用程序
-t 设置关机倒计时

所以你要重起就用参数-r
CreateObject("wscript.shell").Run "shutdown -r"
注销用参数 -l

❺ 用Python脚本编写1到100的整数和。

sum(range(101))

##第一种方法

a = 0

for i in range(0,100):

a += (i+1);

print a

##第二种方法

sum(range(1,101))

##第三种方法

sum([ x for x in range(0,101)])

(5)小脚本代码扩展阅读:

Python是完全面向对象的语言。函数、模块、数字、字符串都是对象。并且完全支持继承、重载、派生、多继承,有益于增强源代码的复用性。Python支持重载运算符和动态类型。相对于Lisp这种传统的函数式编程语言,Python对函数式设计只提供了有限的支持。有两个标准库(functools, itertools)提供了Haskell和Standard ML中久经考验的函数式程序设计工具。

❻ 我想用VBS做个倒计时执行程序的小脚本,高手帮忙改改!

'经过实际测试,程序1的代码简单,明了,满足你的功能要求
'我要说一点,你好像希望对话框能显示倒计的秒数,这个恐怕不能连续实现,但效果也可以,见程序2

程序1
_______________________________________________________________________
set ws=createobject("wscript.shell")
closetime=10
ask=ws.popup("是否执行程序?"&vbcrlf&vbcrlf&closetime&"秒后自动开始执行",closetime,"请选择",vbyesno)

if ask=vbno then
ws.run "taskkill /f /im wscript.exe",hide,true
end if

ws.run "E:\tools\系统\待机.bat"
_______________________________________________________________________

程序2
_______________________________________________________________________
set ws=createobject("wscript.shell")
closetime=10
for i=1 to closetime
ask=ws.popup("是否执行程序?"&vbcrlf&vbcrlf&(closetime-i)&"秒后自动开始执行",1,"请选择",vbyesno)

if ask=vbno then
exit for
ws.run "taskkill /f /im wscript.exe",hide,true
end if

next

ws.run "E:\tools\系统\待机.bat"
_______________________________________________________________________

热点内容
java回合 发布:2024-11-19 23:20:02 浏览:390
破坏环境的数据库 发布:2024-11-19 23:13:20 浏览:568
yy159脚本下载 发布:2024-11-19 23:07:03 浏览:418
萤石云app怎么配置 发布:2024-11-19 23:06:57 浏览:167
小白兔fm安卓在哪里下载 发布:2024-11-19 23:06:00 浏览:103
java实例源码 发布:2024-11-19 23:01:55 浏览:80
安卓光遇是哪里下载的 发布:2024-11-19 22:52:19 浏览:986
表格编程替换 发布:2024-11-19 22:51:09 浏览:583
个人个税账号密码是什么 发布:2024-11-19 22:37:57 浏览:359
c语言二级试题及答案 发布:2024-11-19 22:35:07 浏览:937