當前位置:首頁 » 編程軟體 » 小腳本代碼

小腳本代碼

發布時間: 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"
_______________________________________________________________________

熱點內容
android系統資源 發布:2024-11-19 22:21:50 瀏覽:388
androidapi中文chm 發布:2024-11-19 22:15:25 瀏覽:804
安卓鏈接文件夾 發布:2024-11-19 21:49:35 瀏覽:269
GP演算法 發布:2024-11-19 21:48:05 瀏覽:181
如何打開安卓手機的隱藏空間 發布:2024-11-19 21:09:46 瀏覽:885
c語言strncmp 發布:2024-11-19 21:06:26 瀏覽:767
計算機二級c語言考點 發布:2024-11-19 21:05:08 瀏覽:767
東華大學資料庫 發布:2024-11-19 21:04:12 瀏覽:146
加密狗u盤破解 發布:2024-11-19 21:03:53 瀏覽:223
squid緩存視頻 發布:2024-11-19 21:00:01 瀏覽:719