搜索
查看: 3010|回复: 6

Steam自动注册脚本

[复制链接]
发表于 2004-4-18 15:58:32 | 显示全部楼层 |阅读模式 来自 中国–福建–龙岩
首先申明,本脚本只是个人学习实用。 :thefinger

采用按键精灵V2.68为基础。
脚本如下:


--------------------------------
[General]
Description=Steam注册
BeginHotkey=122
BeginHotkeyMod=0
RunOnce=0
Enable=1
[Repeat]
Type=0
Number=1

[Script]
Rem Login
MoveTo 892 678
LeftDoubleClick 1
Rem LoginWait
Delay 1000
IfColor 388 301 ffffff 0
MoveTo 490 444
LeftClick 1
EndIf
IfColor 602 437 ffffff 1
Goto LoginWait
EndIf
MoveTo 428 395
IfColor 428 396 52b6c6 0
LeftClick 1
EndIf
Rem ReInputPwd
SayString dsaq1234
MoveTo 460 360
LeftClick 1
MoveTo 312 305
Delay 500
Rem SteamWait
Delay 1000
IfColor 391 324 ffffff 0
MoveTo 487 422
LeftClick 1
Goto ReInputPwd
EndIf
IfColor 334 269 ffffff 1
Goto SteamWait
EndIf
MoveTo 334 269
LeftClick 1
Rem GameWait
Delay 500
IfColor 772 509 f7f7f7 1
Goto GameWait
EndIf
MoveTo 771 510
LeftDoubleClick 1
Delay 1000
MoveTo 358 382
LeftClick 1
MoveTo 553 540
LeftClick 1
Rem GetCdkey
MoveTo 813 88
LeftClick 1
KeyDown 160 1
KeyPress 9 1
KeyUp 160 1
KeyDown 162 1
KeyPress 67 1
KeyUp 162 1
Rem InputKey
MoveTo 555 363
LeftClick 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 8 1
KeyPress 46 1
KeyPress 46 1
KeyDown 162 1
KeyPress 86 1
KeyUp 162 1
MoveTo 553 540
LeftClick 1
Rem KeyErr
Delay 500
IfColor 490 436 ffffff 0
MoveTo 490 436
LeftClick 1
Goto GetCdkey
EndIf
Rem ChoseAppId
MoveTo 357 344
LeftClick 1
MoveTo 357 366
LeftClick 1
MoveTo 357 388
LeftClick 1
MoveTo 357 410
LeftClick 1
MoveTo 357 432
LeftClick 1
MoveTo 553 540
LeftClick 1
Rem KeyWait
Delay 1000
IfColor 660 391 52b6c6 0
Goto Exit
EndIf
IfColor 483 540 ffffff 1
Goto KeyWait
EndIf
MoveTo 483 540
LeftClick 1
Goto GetCdkey
Rem Exit
IfColor 893 751 0 0
MoveTo 893 751
LeftClick 1
Delay 500
MoveTo 945 717
LeftClick 1
EndIf
Rem ExitWait
Delay 3000
IfColor 893 751 0 0
Goto ExitWait
EndIf
Goto Login
------------------

还在不断完善中.............

:43:
发表于 2004-4-18 16:42:15 | 显示全部楼层 来自 中国–江苏–南京
支持一下,我是最需要的,呵呵,不过麻烦楼主搞定一个告诉我, :30:
回复

使用道具 举报

发表于 2004-4-18 19:32:26 | 显示全部楼层 来自 中国–黑龙江–黑河
不知道为什么我的steam始终登陆不上啊

http://bbs.esai.cn/index.php?showtopic=82637&hl=
回复

使用道具 举报

 楼主| 发表于 2004-4-18 20:44:05 | 显示全部楼层 来自 中国–福建–龙岩
我今天IDA了realkey才知道,他算的cdkey是固定的那几个。

费了我48小时,居然没一个注册到。:(  :10:

看来要用最老的hlkey了。

大家等我的消息。
:43:
回复

使用道具 举报

发表于 2004-4-19 00:44:01 | 显示全部楼层 来自 中国–河南–安阳
Post by 金闪闪
我今天IDA了realkey才知道,他算的cdkey是固定的那几个。

费了我48小时,居然没一个注册到。:(  :10:

看来要用最老的hlkey了。

大家等我的消息。
:43:



等嘎登嘎登嘎 我要等到地老天荒也不去卖那个78圆的
希望就寄托给你了:―― :thefinger  :76:
回复

使用道具 举报

 楼主| 发表于 2004-4-19 16:47:20 | 显示全部楼层 来自 中国–福建–龙岩
只是脚本而已。关键是如果有CZ的cdkey算法。那就好了。
一顶3。
:thefinger
回复

使用道具 举报

 楼主| 发表于 2004-4-19 20:56:02 | 显示全部楼层 来自 中国–福建–龙岩
由于按键精灵不理想,我换为EZScript了。
ps,谁有EZScript II 2.2 的分享下。 :thefinger
-------------------------------------------------------------------
[variable]
var1=
var2=
var3=
var4=
var5=
var6=
var7=
var8=
pos1=
pos2=
pos3=
pos4=
pos5=
pos6=
pos7=
pos8=
[script]
//桌面窗口点击Steam
//pos8 为Steam图标位置
//Left DbClick pos8

Main:
//主程序
Call StartSteam
Call SteamUI

STOP

StartSteam:
//登陆Steam
//pos7 为登陆Steam 界面的标题栏位置
pos7 = 1048591
//pos1 为"密码"输入的位置
pos1 = 6291579
//pos2 为"登陆"按钮的位置
pos2 = 8192145
//16777215 为白色
Delay(1000)

If Color[pos7]=16777215
    Left Click pos1
//输入密码
    Say "密码"
    Left Click pos2
Else
    Call InputCR
    Jump StartSteam
End If
Return

InputCR:
//输入回车
//Steam错误 不能联入Steam网络
//pos7 为Steam错误图标位置
//16777215 为白色
If Color[pos7]=16777215
    KeyDown(32)
End If
Return

StemUI:
//SteamUI界面
//pos7 为SteamUI 界面的标题栏位置
pos7 = 196611
//pos1 为"游戏"按钮的位置
pos1 = 2228255
//pos2 为"设置"按钮的位置
pos2 = 11010088
//16777215 为白色
Delay(1000)

If Color[pos7]=16777215
    Left Click pos6
Else
    Jump SteamUI
End If
Return

GameUI:
//游戏UI界面
//pos7 为GameUI 界面的标题栏位置
pos7 = 262590
//pos1 为"CZ"按钮的位置
pos1 = 6554055
//pos2 为"CS"按钮的位置
pos2 = 7864774
//pos3 为"DOD"按钮的位置
pos3 = 9175492
//pos4 为"TFC"按钮的位置
pos4 = 10355143

//16777215 为白色
Delay(1000)

If Color[pos7]=16777215
    Left DbClick pos2
    Call Order
Else
    Jump GameUI
End If
Return

Order:
//处理定购
//pos7 为处理界面的标题栏位置
pos7 = -2883562
//pos1 为"上一步"按钮的位置
pos1 = 20054192
//pos2 为"下一步"按钮的位置
pos2 = 20054262
//pos3 为"取消"按钮的位置
pos3 = 20054352
//pos4 为"序列号"的位置
pos4 = 6750252
//pos5 为"序列号输入"的位置
pos5 = 8650816
//16777215 为白色
Delay(1000)

If Color[pos7]=16777215
    Left DbClick pos2
    Call InputCDKEY
    Left DbClick pos2
Else
    Jump Order
End If
Call KeyErr
//等待验证........
Return

InputCDKEY:
//输入cdkey

KeyErr:
//CDKEY错误
//pos7 为CDKEY错误界面的标题栏位置
pos7 = 5046296
//16777215 为白色
Delay(1000)
If Color[pos7]=16777215
    KeyDown(32)
End If
Return


GetCDKEY:
//从hlkeygen得到随机的cdkey
//最好得到算法
Return


RegistKey:
//验证Steam的key
Return

RegistErr:
//验证SteamKey错误
Return

RegistOver:
//验证SteamKey超时
Return
-------------------------------------------------------------------

:30:
还在完善中。请大家给个建议。 :76:
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表