(3)湛泸剑之QQ轰炸机

AutoHotkey系列教程 中级教程(六节三十六课) 第一小节:站在巨人的肩膀上 第三课:湛泸剑

 

隐藏内容,您需要满足以下条件方可查看
; This script was created using Pulover's Macro Creator

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
DetectHiddenWindows On
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1


#IfWinActive, ahk_class CabinetWClass

Macro1:
IfWinExist, QQ
{
	IfWinExist, AutoAHK
	{
		WinActivate, AutoAHK
		Sleep, 333
		SetKeyDelay, 0
		SendRaw,
		(LTrim
		窗前明月光,
		疑是地上霜;
		举头望明月,
		低头思故乡。
		)
		SetKeyDelay, 100
		SendEvent, {enter}
		Sleep, 100
	}
	Else
	{
		WinActivate, QQ
		Sleep, 333
		SetKeyDelay, 0
		SendRaw, autoahk
		SetKeyDelay, 100
		SendEvent, {enter}
		Sleep, 100
		SetKeyDelay, 100
		SendEvent, {enter}
		Sleep, 100
		SetKeyDelay, 100
		SendEvent, {enter}
		Sleep, 100
		SetKeyDelay, 0
		SendRaw,
		(LTrim
		窗前明月光,
		疑是地上霜;
		举头望明月,
		低头思故乡。
		)
		SetKeyDelay, 100
		SendEvent, {enter}
		Sleep, 100
	}
}
Else
{
	MsgBox, 0, , 你好,你的QQ未运行,请运行QQ
}
Return

#IfWinActive
; This script was created using Pulover's Macro Creator

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
DetectHiddenWindows On
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1

 ^d::
#IfWinActive, ahk_class CabinetWClass

Macro1:
WinActivate,  ahk_class TForm
Sleep, 333
WinActivate, Program Manager ahk_class Progman
Sleep, 333
Sleep, 3047
Click, 1373, 346, 0
Click, 1373, 347, 0
Sleep, 16
Click, 1373, 349, 0
Sleep, 31
Click, 1372, 359, 0
Sleep, 16
Click, 1372, 360, 0
Click, 1371, 362, 0
Sleep, 15
Click, 1370, 365, 0
Click, 1369, 367, 0
Click, 1368, 368, 0
Sleep, 16
Click, 1367, 370, 0
Sleep, 15
Click, 1367, 371, 0
Click, 1367, 372, 0
Sleep, 16
Click, 1365, 375, 0
Sleep, 16
Click, 1364, 375, 0
Click, 1364, 376, 0
Click, 1364, 377, 0
Sleep, 31
Click, 1363, 377, 0
Sleep, 141
Click, 1363, 378, 0
Sleep, 12937
Click, 1363, 378 Right, Down
Sleep, 203
Click, 1363, 378 Right, Up
Sleep, 1594
Click, 1364, 380, 0
Click, 1364, 382, 0
Sleep, 16
Click, 1366, 386, 0
Click, 1367, 388, 0
Sleep, 31
Click, 1368, 391, 0
Click, 1370, 395, 0
Click, 1370, 397, 0
Sleep, 15
Click, 1371, 400, 0
Click, 1371, 401, 0
Sleep, 32
Click, 1373, 407, 0
Click, 1374, 409, 0
Sleep, 15
Click, 1375, 411, 0
Sleep, 78
Click, 1384, 437, 0
Sleep, 16
Click, 1385, 440, 0
Click, 1386, 443, 0
Click, 1387, 447, 0
Sleep, 16
Click, 1388, 451, 0
Click, 1389, 453, 0
Sleep, 31
Click, 1391, 460, 0
Click, 1392, 464, 0
Sleep, 16
Click, 1395, 471, 0
Sleep, 15
Click, 1397, 475, 0
Click, 1399, 482, 0
Sleep, 16
Click, 1400, 486, 0
Sleep, 15
Click, 1403, 497, 0
Click, 1404, 503, 0
Sleep, 32
Click, 1406, 517, 0
Click, 1407, 524, 0
Click, 1408, 529, 0
Sleep, 15
Click, 1409, 536, 0
Sleep, 16
Click, 1411, 543, 0
Click, 1413, 559, 0
Sleep, 16
Click, 1414, 566, 0
Sleep, 15
Click, 1417, 574, 0
Sleep, 16
Click, 1421, 589, 0
Click, 1423, 597, 0
Sleep, 47
Click, 1430, 631, 0
Click, 1431, 638, 0
Sleep, 15
Click, 1431, 640, 0
Sleep, 16
Click, 1431, 646, 0
Sleep, 16
Click, 1432, 652, 0
Sleep, 15
Click, 1433, 656, 0
Sleep, 16
Click, 1433, 658, 0
Sleep, 15
Click, 1433, 659, 0
Click, 1433, 661, 0
Sleep, 16
Click, 1433, 662, 0
Sleep, 16
Click, 1433, 664, 0
Sleep, 31
Click, 1433, 665, 0
Sleep, 16
Click, 1433, 666, 0
Sleep, 171
Click, 1433, 667, 0
Sleep, 16
Click, 1433, 669, 0
Sleep, 31
Click, 1433, 671, 0
Sleep, 16
Click, 1433, 673, 0
Sleep, 16
Click, 1433, 676, 0
Sleep, 15
Click, 1435, 679, 0
Sleep, 266
Click, 1429, 681, 0
Sleep, 31
Click, 1421, 681, 0
Sleep, 31
Click, 1407, 679, 0
Sleep, 16
Click, 1398, 677, 0
Sleep, 16
Click, 1394, 676, 0
Click, 1388, 674, 0
Sleep, 15
Click, 1380, 672, 0
Sleep, 16
Click, 1370, 670, 0
Sleep, 15
Click, 1367, 669, 0
Click, 1365, 669, 0
Sleep, 16
Click, 1359, 667, 0
Sleep, 16
Click, 1357, 667, 0
Sleep, 15
Click, 1355, 667, 0
Sleep, 32
Click, 1353, 667, 0
Sleep, 15
Click, 1351, 666, 0
Sleep, 16
Click, 1350, 665, 0
Sleep, 15
Click, 1349, 665, 0
Sleep, 16
Click, 1348, 664, 0
Sleep, 16
Click, 1347, 664, 0
Sleep, 15
Click, 1345, 663, 0
Sleep, 16
Click, 1345, 662, 0
Click, 1344, 662, 0
Sleep, 16
Click, 1342, 660, 0
Sleep, 15
Click, 1337, 658, 0
Sleep, 16
Click, 1331, 655, 0
Sleep, 15
Click, 1329, 652, 0
Sleep, 16
Click, 1326, 649, 0
Click, 1321, 646, 0
Sleep, 31
Click, 1308, 625, 0
Sleep, 16
Click, 1299, 611, 0
Sleep, 16
Click, 1285, 584, 0
Sleep, 15
Click, 1280, 573, 0
Sleep, 16
Click, 1263, 550, 0
Click, 1255, 537, 0
Sleep, 31
Click, 1235, 499, 0
Sleep, 16
Click, 1224, 474, 0
Click, 1218, 462, 0
Sleep, 15
Click, 1204, 432, 0
Sleep, 32
Click, 1199, 416, 0
Click, 1198, 407, 0
Sleep, 15
Click, 1197, 400, 0
Sleep, 16
Click, 1194, 390, 0
Sleep, 15
Click, 1193, 387, 0
Click, 1191, 384, 0
Sleep, 16
Click, 1190, 383, 0
Sleep, 16
Click, 1190, 381, 0
Click, 1190, 380, 0
Sleep, 15
Click, 1189, 377, 0
Sleep, 16
Click, 1187, 368, 0
Sleep, 16
Click, 1184, 361, 0
Sleep, 31
Click, 1182, 354, 0
Click, 1181, 352, 0
Sleep, 15
Click, 1180, 345, 0
Sleep, 16
Click, 1176, 335, 0
Sleep, 31
Click, 1173, 329, 0
Click, 1172, 326, 0
Sleep, 16
Click, 1171, 323, 0
Click, 1170, 322, 0
Sleep, 47
Click, 1168, 312, 0
Sleep, 31
Click, 1166, 305, 0
Sleep, 16
Click, 1165, 298, 0
Sleep, 31
Click, 1165, 292, 0
Click, 1164, 290, 0
Sleep, 62
Click, 1164, 282, 0
Sleep, 16
Click, 1164, 280, 0
Sleep, 16
Click, 1164, 278, 0
Sleep, 15
Click, 1164, 277, 0
Click, 1164, 276, 0
Sleep, 16
Click, 1164, 275, 0
Sleep, 16
Click, 1164, 273, 0
Sleep, 31
Click, 1164, 272, 0
Sleep, 15
Click, 1164, 270, 0
Sleep, 16
Click, 1164, 268, 0
Sleep, 16
Click, 1165, 266, 0
Sleep, 31
Click, 1165, 264, 0
Sleep, 31
Click, 1165, 263, 0
Click, 1165, 261, 0
Sleep, 16
Click, 1165, 260, 0
Sleep, 31
Click, 1166, 260, 0
Sleep, 16
Click, 1166, 259, 0
Sleep, 234
Click, 1166, 258, 0
Sleep, 16
Click, 1166, 256, 0
Sleep, 31
Click, 1165, 255, 0
Sleep, 16
Click, 1165, 253, 0
Sleep, 31
Click, 1165, 251, 0
Sleep, 219
Click, 1165, 251 Left, Down
Sleep, 156
Click, 1165, 251 Left, Up
Sleep, 297
Click, 1168, 256, 0
Sleep, 15
Click, 1171, 259, 0
Click, 1172, 260, 0
Sleep, 32
Click, 1178, 264, 0
Sleep, 31
Click, 1193, 284, 0
Sleep, 15
Click, 1198, 289, 0
Click, 1201, 293, 0
Sleep, 16
Click, 1209, 308, 0
Sleep, 31
Click, 1218, 326, 0
Click, 1222, 338, 0
Sleep, 16
Click, 1239, 371, 0
Sleep, 31
Click, 1250, 391, 0
Click, 1256, 402, 0
Click, 1263, 412, 0
Sleep, 16
Click, 1270, 423, 0
Click, 1278, 434, 0
Sleep, 31
Click, 1302, 462, 0
Click, 1308, 470, 0
Sleep, 31
Click, 1324, 492, 0
Sleep, 16
Click, 1329, 497, 0
Click, 1334, 501, 0
Click, 1338, 505, 0
Sleep, 16
Click, 1344, 513, 0
Sleep, 31
Click, 1350, 520, 0
Sleep, 15
Click, 1351, 521, 0
Sleep, 16
Click, 1352, 522, 0
Click, 1353, 522, 0
Sleep, 16
Click, 1353, 523, 0
Sleep, 31
Click, 1354, 524, 0
Sleep, 109
Click, 1355, 524, 0
Sleep, 32
Click, 1358, 527, 0
Sleep, 15
Click, 1360, 529, 0
Sleep, 31
Click, 1361, 530, 0
Sleep, 188
Click, 1361, 531, 0
Sleep, 828
Send, {c}
Sleep, 234
Send, {e}
Sleep, 219
Send, {s}
Sleep, 78
Send, {h}
Sleep, 94
Send, {i}
Sleep, 391
Send, {Space}
Sleep, 984
Send, {Enter}
Return

#IfWinActive

本教程资源的其他链接:

群:AutoAHK 348016704(推荐)

如果您喜欢本文,请收藏本网站。如果你要投稿,请注册本网站或在简书上投稿到autohotkey专题。如果你觉得对你生活带来了便捷,为你带来了快乐,请捐助,河许人将为您提供更好的服务,谢谢!

人已赞赏
中级教程第一节

(2)轩辕剑之Scite操作示例

2016-8-9 11:17:08

中级教程第一节

(4)赤霄剑之Gui控制的添加

2016-8-9 11:21:10

2 条回复 A文章作者 M管理员
  1. 您暂时无权查看此隐藏内容!………

  2. 赶紧讲讲模块化吧,相同的代码复制两遍,我一个外行都受不了啦!

个人中心
购物车
优惠劵
今日签到
搜索