=(A1<>"")
則代表:如果A1不等於空字串,則為TURE
=OR(($I2<6)*($I2<>""),($I2="X"))
則代表:如果I2小於6且不等於空字串,或I2為X,則為TURE
另外在格式化條件裡面這樣設定,就可以不用一條一條設定了:

=(A1<>"")
=OR(($I2<6)*($I2<>""),($I2="X"))
| 項目 | USD |
NT
|
Alienware Area51 R2
| $2,033 | 65,759 |
| 國外交易服務費 | 986 | |
| 服務費、運費、俄勒岡州轉運費合計 | $411 | 13,316 |
| 通關服務費 | 500 | |
| 檢驗代辦費 | 1,575 | |
| 商檢規費 | 200 | |
| 稅 | 3,130 | |
| 合計 | 85,466 |
Param1 |
|
ToolTip: 作用于 ToolTip. Pixel: 作用于 PixelGetColor, PixelSearch 和 ImageSearch. Mouse: 作用于 MouseGetPos, Click 以及 MouseMove/Click/Drag. Caret: 作用于内置变量 A_CaretX 和 A_CaretY. Menu: 作用于为 "Menu Show" 命令指定坐标的时候. |
Param2 |
|
如果省略 Param2, 则默认为 Screen. Screen: 坐标相对于桌面 (整个屏幕). Relative: 坐标相对于活动窗口. Window [v1.1.05+]: 与 Relative 效果相同, 但由于含义清晰, 因此建议使用. Client [v1.1.05+]: 坐标相对于活动窗口的工作区, 其中不包括标题栏, 菜单栏 (如果它含有标准菜单栏的话) 和边框. Client 坐标模式较少依赖于操作系统版本和主题. |
| Nvidia GeForce | AMD Radeon | Intel |
| GTX Titan Z | R9 295X2 | |
| Titan X, 980 Ti | HD 7990, R9 Fury X | |
| GTX 980, 690, Titan Black | R9 Fury. Fury Nano | |
| GTX 780, 780 Ti, 970, Titan | R9 290, 290X, 390X, 390 | |
| GTX 590, 680, 770 | HD 6990, 7970 GHz Ed., R9 280X, 380 | |
| GTX 580, GTX 670, GTX 960 | HD 5970, 7870 LE (XT), 7950, 280, 285 | |
| GTX 660 Ti, GTX 760 | HD 7870, R9 270, R9 270X, R7 370 | |
| GTX 295, 480, 570, 660 | HD 4870 X2, 6970, 7850, R7 265 | |
| GTX 470, 560 Ti, 560 Ti 448 Core, 650 Ti Boost, 750 Ti | HD 4850 X2, 5870, 6950, R7 260X | |
| GTX 560, 650 Ti, 750 | HD 5850, 6870, 7790 | |
| 9800 GX2, 285, 460 256-bit, 465 | HD 6850, 7770, R7 260, R7 360 | Integrated: Iris Pro Graphics 6200 |
| GTX 260, 275, 280, 460 192-bit, 460 SE, 550 Ti, 560 SE, GT 650, GT 740 GDDR5 | HD 4870, 5770, 4890, 5830, 6770, 6790, 7750 (GDDR5), R7 250 (GDDR5), R7 250E | |
| 8800 Ultra, 9800 GTX, 9800 GTX+, GTS 250, GTS 450 | HD 3870 X2, 4850, 5750, 6750, 7750 (DDR3), R7 250 (DDR3) | Integrated: HD Graphics 530 |
| 8800 GTX, 8800 GTS 512 MB, GT 545 (GDDR5), GT 730 64-bit GDDR5 | HD 4770 | |
| 8800 GT 512 MB, 9800 GT, GT 545 (DDR3), GT 640 (DDR3), GT 740 DDR3 | HD 4830, HD 5670, HD 6670 (GDDR5), HD 7730 (GDDR5) | |
| 8800 GTS 640 MB, 9600 GT, GT 240 (GDDR5) | HD 2900 XT, HD 3870, HD 5570 (GDDR5), HD 6570 (GDDR5) | |
| 8800 GS, 9600 GSO, GT 240 (DDR3) | HD 3850 512 MB, HD 4670, HD 5570 (DDR3), HD 6570 (DDR3), HD 6670 (DDR3), HD 7730 (DDR3), R7 240 | |
| 8800 GT 256 MB, 8800 GTS 320 MB, GT 440 GDDR5, GT 630 GDDR5, GT 730 128-bit GDDR5 | HD 2900 Pro, HD 3850 256 MB, 5550 (GDDR5) | |
| 7950 GX2, GT 440 DDR3, GT 630 DDR3, GT 730 128-bit DDR3 | X1950 XTX, HD 4650 (DDR3), 5550 (DDR3) | |
| Integrated: HD 7660D | ||
| 7800 GTX 512, 7900 GTO, 7900 GTX, GT 430, GT 530 | X1900 XT, X1950 XT, X1900 XTX | |
| 7800 GTX, 7900 GT, 7950 G, GT 220 (DDR3) | X1800 XT, X1900 AIW, X1900 GT, X1950 Pro, HD 2900 GT, HD 5550 (DDR2) | |
| Integrated: HD 7560D | ||
| 7800 GT, 7900 GS, 8600 GTS, 9500 GT (GDDR3), GT 220 (DDR2) | X1800 XL, X1950 GT, HD 4650 (DDR2), HD 6450, R5 230 | |
| Integrated: HD 6620G, 6550D, 7540D | ||
| 6800 Ultra, 7600 GT, 7800 GS, 8600 GS, 8600 GT (GDDR3), 9500 GT (DDR2) | X800 XT (& PE), X850 XT (& PE), X1650 XT, X1800 GTO, HD 2600 XT, HD 3650 (DDR3), HD 3670 | Integrated:Intel HD Graphics4000 |
| Integrated: 6520G, 6530D, 7480D | ||
| 6800 GT, 6800 GS (PCIe), 8600 GT (DDR2), GT 520 | X800 XL, X800 GTO2/GTO16, HD 2600 Pro, HD 3650 (DDR2), | |
| Integrated: 6410D, 6480G | ||
| 6800 GS (AGP) | X800 GTO 256 MB, X800 Pro, X850 Pro, X1650 GT | |
| Integrated: 6370D, 6380G | ||
| 6800, 7300 GT GDDR3, 7600 GS, 8600M GS | X800, X800 GTO 128 MB, X1600 XT, X1650 Pro | |
| 6600 GT, 6800LE, 6800 XT, 7300 GT (DDR2), 8500 GT, 9400 GT | 9800 XT, X700 Pro, X800 GT, X800 SE, X1300 XT, X1600 Pro, HD 2400 XT, HD 4350, HD 4550, HD 5450 | Integrated: Intel HD Graphics 3000 |
| Integrated: HD 6310, HD 6320 | ||
| FX 5900, FX 5900 Ultra, FX 5950 Ultra, 6600 (128-bit) | 9700, 9700 Pro, 9800, 9800 Pro, X700, X1300 Pro, X1550, HD 2400 Pro | |
| Integrated: 9300, 9400 | Integrated: HD 3200, HD 3300, HD 4200, HD 4250, HD 4290, HD 6250, HD 6290 | |
| FX 5800 Ultra, FX 5900 XT | 9500 Pro, 9600 XT, 9800 Pro (128-bit), X600 XT, X1050 (128-bit) | Integrated: Intel HD Graphics 2000 |
| 4 Ti 4600, 4 Ti 4800, FX 5700 Ultra, 6200, 8300, 8400 G, G 210, G 310 | 9600 Pro, 9800 LE, X600 Pro, HD 2300 | Integrated: Intel HD Graphics |
| Integrated: Xpress 1250 | ||
| 4 Ti4200, 4 Ti4400, 4 Ti4800 SE, FX 5600 Ultra, FX 5700, 6600 (64-bit), 7300 GS, 8400M GS, 9300M G, 9300M GS | 9500, 9550, 9600, X300, X1050 (64-bit) | Integrated: Intel HD Graphics |
| 3 Ti500, FX 5200 Ultra, FX 5600, FX 5700 LE, 6200 TC, 6600 LE, 7200 GS, 7300 LE | 8500, 9100, 9000 PRO, 9600 LE, X300 SE, X1150 | Integrated: GMA X4500 |
| Integrated: 8200, 8300 | ||
| 3, 3 Ti200, FX 5200 (128-bit), FX 5500 | 9000, 9200, 9250 | |
| FX 5200 (64 bit) | 9200 SE | Integrated: GMA X3000, X3100, X3500 |
| Integrated: 6100, 6150, 7025, 7050 | Integrated: Xpress 200M, Xpress 1000, Xpress 1150 | |
| 2 GTS, 4 MX 440, 2 Ultra, 2 Ti, 2 Ti 200 | 7500 | Integrated: GMA 3000, 3100 |
| 256, 2 MX 200, 4 MX 420, 2 MX 400 | SDR, LE, DDR, 7000, 7200 | Integrated: GMA 500, 900, 950 |
| Nvidia TNT | Rage 128 | Discrete: Intel 740 |
F8:: ;種子自動貼檔名:啟動
Gosub, avcopy
return
avcopy: ;種子自動貼檔名(查字串中是否有副檔名判斷為單獨檔案或是資料夾)
Send, {F2} ;編輯檔名
sleep, 500
Send, ^{C} ;複製檔名
filename = %clipboard%
Send, {Enter}{Enter} ;開啟種子
sleep, 888
Send, ^{A} ;全選路徑
sleep, 300
Send, ^{C} ;複製路徑
sleep, 300
if clipboard contains .wmv,.mp4,.avi,.mkv,.rmvb,.rm ;如果完整路徑中包含所列副檔名,則判定為只有單一檔案
{
StringGetPos, pos, clipboard, ., R ;從最右邊開始搜尋點的位置
StringLen, length, clipboard ;計算字串長度
npos := length-pos ;長度減掉位置
StringRight, fileextension, clipboard, npos ; 把clipboard中名稱去掉檔名丟到變數fileextension
clipboard = %filename%%fileextension% ;把檔名加上副檔名後丟到剪貼簿
sleep, 300
Send, ^{V} ;貼上種子檔名&副檔名內容
Gosub, avmove
return
}
else
{
clipboard = %filename%
sleep, 300
Send, ^{V} ;貼上種子名稱
Gosub, avmove
return
}
Gosub, avmove
return
avmove: ;種子自動化:確認並移動到下一個種子
SetTitleMatchMode, 2 ;SetTitleMatchMode包含模式
WinWait, 增加新的Torrent ahk_class #32770
sleep, 100
WinWaitClose, 增加新的Torrent ahk_class #32770
sleep, 100
SetTitleMatchMode, 3 ;SetTitleMatchMode準確匹配模式
WinWait, Torrent ahk_class CabinetWClass,
IfWinNotActive, Torrent ahk_class CabinetWClass, , WinActivate, Torrent ahk_class CabinetWClass,
WinWaitActive, Torrent ahk_class CabinetWClass,
Sleep, 100
Send, {Down}
Gosub, avcopy
return
Sub GetData()
'宣告變數
Dim QuerySheet As Worksheet
Dim DataSheet As Worksheet
Dim qurl As String
Dim i As Integer
'告訴Excel不要每更新一格就重新計算
Application.ScreenUpdating = False
Application.DisplayAlerts = False
Application.Calculation = xlCalculationManual
'將現在的工作表設為資料表
Set DataSheet = ActiveSheet
'從第七列開始,只要第一欄(A欄)內容不是空的,就把代碼加到Yahoo Finance API的
網址中
Range("C7").CurrentRegion.ClearContents
i = 7
qurl = "http://download.finance.yahoo.com/d/quotes.csv?s=" + Cells(i, 1)
i = i + 1
While Cells(i, 1) <> ""
qurl = qurl + "+" + Cells(i, 1)
i = i + 1
Wend
qurl = qurl + "&f=" + Range("C2")
'將網址放到C1的欄位中
Range("c1") = qurl
'抓取資料
QueryQuote:
With ActiveSheet.QueryTables.Add(Connection:="URL;" & qurl,
Destination:=DataSheet.Range("C7"))
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
End With
'將CSV的格式塞到Excel的表格當中
Range("C7").CurrentRegion.TextToColumns Destination:=Range("C7"),
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False,
Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, other:=False
'讓Excel重新活回來,讓資料能夠顯示
'turn calculation back on
Application.Calculation = xlCalculationAutomatic
Application.DisplayAlerts = True
' Range("C7:H2000").Select
' Selection.Sort Key1:=Range("C8"), Order1:=xlAscending, Header:=xlGuess, _
' OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Columns("C:C").ColumnWidth = 12
Columns("J:J").ColumnWidth = 25.43
Range("h2").Select
End Sub