Skip to content

Commit b606c34

Browse files
committed
examples: try fix wowjump2 .#20
1 parent 46f9105 commit b606c34

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

examples/wowjump/logout.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"github.com/whtiehack/wingui/winapi"
55
"log"
66
"math/rand"
7-
"strconv"
87
"time"
98

109
"github.com/lxn/win"
@@ -84,8 +83,6 @@ func (l *Logout) input() {
8483
log.Println(l.hwnd, "小退中。。。", l.subTime)
8584
if !l.logout() {
8685
l.subTime = 0
87-
} else {
88-
stat.Stat("/logout/"+strconv.Itoa(l.count), "wowjump-logout")
8986
}
9087
return
9188
}

examples/wowjump/main.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"log"
55
"os"
6-
"strconv"
76
"syscall"
87

98
"github.com/lxn/win"
@@ -13,7 +12,6 @@ import (
1312

1413
var dlg *wingui.Dialog
1514
var out *wingui.Edit
16-
var stat *Statistics
1715

1816
// ProcessMutex 防止进程多开,返回 true 表示进程已经开启
1917
func ProcessMutex(name string) bool {
@@ -34,7 +32,6 @@ func init() {
3432
win.MessageBox(0, &syscall.StringToUTF16("进程已经开启了,不可以多开")[0], nil, 0)
3533
os.Exit(-1)
3634
}
37-
stat = NewStatistics("https://smallwhite.cf/wingui/wowjump", "ffbfeacabe5e673d7a972c8b3977806f")
3835
// control
3936
go process()
4037
}
@@ -66,7 +63,6 @@ func main() {
6663
config.editInputTime, config.editCharWaitTime, config.btnCheckChangeChar, config.btnCheckLogoutFlash)
6764
config.flashHwnd = dlg.Handle()
6865
config.InitVal()
69-
go stat.Stat("/main", "wowjump-main")
7066
dlg.Show()
7167
setLogOutput(editLog)
7268
// Make sure Tabstop can work.
@@ -112,7 +108,6 @@ func btnClick() {
112108
if len(logouts) == 0 {
113109
running = !running
114110
log.Println("没有找到WOW窗口,如果确认已经开启了wow窗口\n可以使用管理员身份运行程序试试")
115-
go stat.Stat("/cancel", "wowjump-cancel")
116111
return
117112
}
118113
out.SetText("")
@@ -122,10 +117,8 @@ func btnClick() {
122117
//config.SkillKey = str
123118
//randomSkill.ParseSkillKey(str)
124119
log.Println("开始运行")
125-
go stat.Stat("/start", "wowjump-start:"+strconv.Itoa(len(logouts)))
126120
} else {
127121
log.Println("已经停止运行")
128-
go stat.Stat("/stop", "wowjump-stop")
129122
}
130123
config.EditEnable(!running)
131124
btn.SetText(text)

0 commit comments

Comments
 (0)