17173有料社区

标题: 国服国际服查价工具TradeTip_白侠 [打印本页]

作者: 白侠baixia    时间: 2019-11-20 11:13
标题: 国服国际服查价工具TradeTip_白侠
本帖最后于  2021-7-28 09:53 编辑

看到 MIGFLY 的python版查价:http://bbs.17173.com/thread-11224343-1-1.html感谢大佬修改
更新:2020/02/22日期:2021/07/28 更换电脑没有代码了,这还是上个赛季的事儿,不好意思啊~
TradeTip v5.0

官方市集数据查询分析
赛季更新

双服支持

快捷键自定

详细分析
欢迎交流
回复下载:
链接失效
附件太大无法上传

测试欠缺
问题很多
性感白侠
在线丢人






作者: 俊小介    时间: 2019-11-20 11:36
大佬牛逼,感谢分享,,大佬辛苦了。。。。
作者: 卡洛之影    时间: 2019-11-20 11:45
谢谢分享啦
作者: 破风立阳    时间: 2019-11-20 11:59
支持大佬 感谢
作者: 纵横FourSeas    时间: 2019-11-20 14:53
这么溜,萌新顶
作者: 纵横FourSeas    时间: 2019-11-20 14:56
这么溜,萌新顶
作者: 欧咔OKA    时间: 2019-11-20 15:01
看的不是很明白怎么使用,希望给小白多写一下使用方法
作者: 自由类人    时间: 2019-11-20 15:03
谢谢分享
作者: 玩家U_117168964    时间: 2019-11-20 19:36
感谢大佬分享
作者: ⊙續≡情    时间: 2019-11-20 19:54
感谢大佬分享
作者: 眼线哥    时间: 2019-11-21 23:33
感谢
作者: Z唯心66    时间: 2019-11-22 00:15
这个功能倒是可以 大大的简化 玩家的游戏进程,更多的时间来做别的事情 赞。
作者: 小马很愤怒    时间: 2019-11-22 01:22
本帖最后于  2019-11-22 01:23 编辑

好奇隐藏内容是什么呢?

哦 原来压缩包事给大佬看的

回复可见内容是小白可以直接用的



作者: 雨雾痕迹    时间: 2019-11-22 01:36

大佬牛逼,感谢分享,,大佬辛苦了。。。。
作者: 囚鸟nn    时间: 2019-11-22 03:27
这个还是蛮需要的 终于国服出了
作者: 安浅诺    时间: 2019-11-22 05:55
感觉很方便诶
作者: MIGFLY    时间: 2019-11-22 14:42
我改了改,速度提高了
  1. #NoEnv
  2. #NoTrayIcon
  3. #SingleInstance Force
  4. #include JSON.ahk
  5. ;#include GetWidthUnitCount.ahk 字符串表 显示优化 未完成

  6. SetWorkingDir %A_ScriptDir%

  7. CoordMode, ToolTip, Screen
  8. CoordMode, mouse, Screen

  9. global Version
  10. global Ready := false
  11. global CheckBoard := ""
  12. global WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1")
  13. ;global League := "S9赛季"

  14. Gui Add, Text, x16 y16 w40 h23 +0x200, 赛季
  15. Gui Add, ComboBox,vLeague x64 y16 w100, S9赛季
  16. GuiControl,Choose,League,1
  17. Gui Add, Button,gStart x16 y48 w149 h39, OK
  18. Gui Show, w175 h97, ToolTip
  19. Return

  20. ^space::
  21. GuiEscape:
  22. GuiClose:
  23.     ExitApp

  24. ; End of the GUI section



  25. #if  Ready
  26. #IfWinActive  Path of Exile
  27. ~^C::
  28. if  Clipboard != CheckBoard
  29.         settimer,Main,100
  30. Tooltip, Loading
  31. return
  32. #IfWinActive
  33. #if

  34. Main:
  35. FindTradeInfo(Clipboard)
  36. settimer,Main,off
  37. return


  38. ~Space::
  39. RemoveToolTip:
  40. ToolTip
  41. settimer,RemoveToolTip,off
  42. return



  43. Start()
  44. {
  45.         if CheckLeague()
  46.         {
  47.                 Ready := false
  48.                 MsgBox,版本号错误
  49.                 return
  50.         }
  51.         Ready := true
  52.         Clipboard := ""
  53.         Gui,hide
  54.         return
  55. }



  56. ;版本检测,懒得写-----
  57. CheckLeague()
  58. {
  59.         return false
  60. }

  61. ;获取name和type
  62. GetNameAndType(Clip)
  63. {
  64.         if InStr(Clip, "稀 有 度:") != 1
  65.         {
  66.                 mItem := {ItemName:false,ItemType:false}
  67.                 return  mItem
  68.         }
  69.         ClipArray :=  StrSplit(Clip, "`n", "`r")
  70.         try:
  71.                 if RegExMatch(ClipArray[3],"---")
  72.                         mItem := {ItemName:false,ItemType:ClipArray[2]}
  73.                 else
  74.                         mItem := {ItemName:ClipArray[2],ItemType:ClipArray[3]}
  75.                 return mItem
  76.         catch: ;return bugmsg懒得写------
  77.                 return
  78. }
  79. print(str)
  80. {
  81. global h_stdout
  82. DebugConsoleInitialize()  ; start console window if not yet started
  83. str .= "`n" ; add line feed
  84. DllCall("WriteFile", "uint", h_Stdout, "uint", &str, "uint", StrLen(str), "uint*", BytesWritten, "uint", NULL) ; write into the console
  85. WinSet, Bottom,, ahk_id %h_stout%  ; keep console on bottom
  86. }

  87. DebugConsoleInitialize()
  88. {
  89.    global h_Stdout     ; Handle for console
  90.    static is_open = 0  ; toogle whether opened before
  91.    if (is_open = 1)     ; yes, so don't open again
  92.      return
  93.          
  94.    is_open := 1       
  95.    ; two calls to open, no error check (it's debug, so you know what you are doing)
  96.    DllCall("AttachConsole", int, -1, int)
  97.    DllCall("AllocConsole", int)

  98.    dllcall("SetConsoleTitle", "str","Paddy Debug Console")    ; Set the name. Example. Probably could use a_scriptname here
  99.    h_Stdout := DllCall("GetStdHandle", "int", -11) ; get the handle
  100.    WinSet, Bottom,, ahk_id %h_stout%      ; make sure it's on the bottom
  101.    WinActivate,Lightroom   ; Application specific; I need to make sure this application is running in the foreground. YMMV
  102.    return
  103. }
  104. ;抓取Trade信息

  105. FindTradeInfo(Clip)
  106. {
  107.         GuiControlGet, League
  108.         mItem := GetNameAndType(clip)
  109.         MouseGetPos, Px,Py
  110.       
  111.       
  112.         if  mItem.ItemType = false
  113.         {
  114.                 msgbox, 复制错误
  115.                 return
  116.         }
  117.         data := {"query":{"status":{"option":"any"} ,"stats":[{"type":"and","filters":[]}]},"filters":{"trade_filters":{"filters":{"indexed":{"option":"1day"}},"disabled":False}},"sort":{"price":"asc"}}
  118.         if  mItem.ItemName != false
  119.                 data.query.name := mItem.ItemName
  120.         data.query.type := mItem.ItemType
  121.       
  122.         body  := JSON.dump(data)
  123.         url = https://poe.game.qq.com/api/trade/search/%League%
  124.         WebRequest.Open("POST", url)
  125.         WebRequest.SetRequestHeader("Content-Type", "application/json")      
  126.         WebRequest.Send(body)
  127.         result := JSON.Load(WebRequest.responsetext)
  128.         itemid := result.id
  129.         itemlist := result.result
  130.         url := "https://poe.game.qq.com/api/trade/fetch/"
  131.         maxCount := 10
  132.         step := floor(itemlist.length()/maxCount) + 1
  133.         maxcount := maxCount -1
  134.         loop , %maxCount%
  135.         {
  136.                 index := A_index * step
  137.                 listtemp := itemlist[index]
  138.                 url= %url%%listtemp%,
  139.         }
  140.         url := Rtrim(url, ",")
  141.         url = %url%?query=%itemid%
  142.         WebRequest.Open("GET",url)
  143.         WebRequest.Send()
  144.         RTresult := JSON.Load(WebRequest.responsetext)
  145.         infolist := RTresult.result      
  146.         tmpString := ""
  147.         MaxWidth := 0
  148.         tmpString = 装备名称:
  149.         if  mItem.ItemName != false
  150.         {
  151.                 ItemName := mItem.ItemName
  152.                 tmpString= %tmpString%%ItemName%-
  153.         }
  154.         ItemType := mItem.ItemType
  155.         tmpString= %tmpString%%ItemType%`n
  156.         ItemUnit := result.total
  157.         tmpString = %tmpString%装备总数: %ItemUnit%`n
  158.       
  159.       
  160.         for info in infolist
  161.         {
  162.                 idmsg := infolist[A_index].listing.account.lastCharacterName
  163.                 pricemsg := process_dict(infolist[A_index].listing)
  164.                 Ttip =ID: %idmsg%|| 价格: %pricemsg%
  165.                 tmpString = %tmpString%`n%Ttip%
  166.         }
  167.         tooltip,%tmpString%,%px%,%py%
  168.         settimer, RemoveToolTip, 15000
  169.         return
  170. }

  171. Process_dict(s)
  172. {
  173.         if s.price != "null"
  174.         {
  175.                 single_price := s.price.amount
  176.                 unit := s.price.currency
  177.                 price_info = %single_price% %unit%
  178.                 return price_info
  179.         }
  180.         return  "Noprice"
  181. }
复制代码

作者: 强制电流    时间: 2019-11-22 15:16

多谢楼主分享!!
作者: 阿稽米德    时间: 2019-11-22 17:40
感谢分享 这也太牛鼻了吧
作者: 枯骨1111    时间: 2019-11-22 18:00
没看懂?查价格直接上市集或者网页市集查不就行了?感觉比这简单的多,搞的好复杂
作者: 玩家U_114644250    时间: 2019-11-22 18:00
感谢感谢
作者: 玩家U_24709110    时间: 2019-11-22 18:59
才知道AHK还能这么用
作者: 我爱1撒打算    时间: 2019-11-22 19:12
这个国际服可以用吗
作者: 塑夜桑    时间: 2019-11-22 19:12
穷人根本用不到2333
作者: 白侠baixia    时间: 2019-11-22 19:45
发表于 2019-11-22 14:42
我改了改,速度提高了

Json的影响确是蛮大的,对象创建也费时间,谢谢大佬~~~~
话说我那天怎么google找不到好点的工具,原来百度一下就有 233  https://www.autoahk.com/archives/9160
作者: 寻找流放的记忆    时间: 2019-11-22 23:53
只能用暗金装备么
作者: 玩家U_115565165    时间: 2019-11-23 21:12
谢谢大佬分享
作者: APkkkk    时间: 2019-11-23 21:39
下载看看,
作者: 白侠baixia    时间: 2019-12-16 11:49
抬一手
作者: 玩家U_135783669    时间: 2019-12-16 12:45
谢谢白大!
作者: HelloCat!    时间: 2019-12-16 13:04

大佬牛逼,感谢分享,,大佬辛苦了。。。。
作者: ccasdcc    时间: 2019-12-16 17:31
感谢分享~
作者: xiao五…    时间: 2019-12-16 18:08
回复收藏回家下载,白侠牛逼
作者: 651fsg265    时间: 2019-12-16 18:27
感谢分享
作者: 玩家U_139613413    时间: 2019-12-16 18:34
大佬牛逼,感谢大佬的分享
作者: 好一个大叔    时间: 2019-12-16 18:47
能方便查询国际服暗金的价格,真的很实用
作者: LEE·存    时间: 2019-12-16 19:45
感谢大佬
作者: yumkyooo    时间: 2019-12-16 19:49
感谢分享~
作者: 玩家U_124466660    时间: 2019-12-16 19:51
感谢大佬分享
作者: Gentle°666    时间: 2019-12-16 19:53
大佬牛逼 谢谢分享
作者: maybe黑    时间: 2019-12-16 19:53
謝謝大大 修改國際服
作者: 玩家U_124976913    时间: 2019-12-16 19:55
感谢分享
作者: 一倍凉白开    时间: 2019-12-16 20:05
试试看看好用不
作者: 丶卩retender    时间: 2019-12-16 20:20
谢谢分享
作者: 瘦腿丶    时间: 2019-12-16 20:26
感谢大大
作者: 默默点个赞    时间: 2019-12-16 20:30
作者辛苦了
作者: 哦噢难怪    时间: 2019-12-16 20:32
大佬厉害,辛苦了。
作者: 零想菌    时间: 2019-12-16 20:34
怎么不火呢233 黄装还是靠marco了 然而marco慢的一p
作者: 玩家U_133750282    时间: 2019-12-16 20:35
厉害厉害
作者: bibobobibobi    时间: 2019-12-16 20:49
不用去trade一个一个查了,节约时间
作者: 爱笑丶小蜜蜂    时间: 2019-12-16 21:26
感谢大佬分享!!!!!!!!!!
作者: 321312wwsed    时间: 2019-12-16 21:58
谢谢分享~~老的不能用了

作者: Situ丶    时间: 2019-12-16 22:03
6666666666666666666
作者: 云之风影11    时间: 2019-12-16 22:05

感谢分享
作者: 玩家U_140232045    时间: 2019-12-16 22:25
感谢楼主分享~~~
作者: 穆林听雪2    时间: 2019-12-16 22:33
谢谢大佬的贡献
作者: 子卓Meity    时间: 2019-12-16 22:50
让我看看
作者: 方大大大☆    时间: 2019-12-16 22:54
非常感谢 另一款刚好用不了了

作者: 坑了啊!!    时间: 2019-12-16 23:25
谢谢大佬分享!
作者: 白侠baixia    时间: 2019-12-16 23:30
本帖最后于  2020-2-22 23:48 编辑

Update:20200222
国服国际服整合
忘记放B站链接了这里放  https://www.bilibili.com/video/av82596167





国服TIP3.4.zip

526.85 KB, 下载次数: 4581

国服


作者: 卡莉蕾吉普森    时间: 2019-12-16 23:32
感谢分享 辛苦了
作者: 哎呀呀你    时间: 2019-12-16 23:32
谢谢楼主啊。
作者: 天国99面包    时间: 2019-12-17 00:17
谢谢
作者: 漆黑之门牙    时间: 2019-12-17 08:22
这两天可以拿来用一下
作者: 半念十七    时间: 2019-12-17 08:33
感谢分享
作者: 玩家U_140223044    时间: 2019-12-17 08:41

感谢大佬分享
作者: 勇敢的小蜜蜂    时间: 2019-12-17 08:42
厉害了!支持啊!!
作者: sunspyTW    时间: 2019-12-17 08:57
謝謝 每次看圖奇都看老外這樣子查很方便的
作者: 23332ewrr    时间: 2019-12-17 09:04
谢谢   楼主提供了各种工具真不错!
作者: 哒哒哒玛    时间: 2019-12-17 09:08
大佬牛逼
作者: 紫色刀法发    时间: 2019-12-17 09:29
谢谢大佬!!!
作者: 默默伸手    时间: 2019-12-17 09:31
哇塞,支持制作
作者: 83392416    时间: 2019-12-17 09:38
这么厉害,连代码都有的吗
作者: CherubimFly    时间: 2019-12-17 09:40
大神永远都是大神,代码溜得一笔
作者: humorh    时间: 2019-12-17 09:59
感谢大佬
作者: 蜡笔小鑫啊    时间: 2019-12-17 10:53
好几个赛季缺席,需要好东西
作者: jygxgxx    时间: 2019-12-17 11:10
感谢分享
作者: 玩家U_140210662    时间: 2019-12-17 11:14
感谢大佬 这下买卖方便多了
作者: 帝帝君王    时间: 2019-12-17 11:17
我哩个去呀点水
作者: 老虎队是    时间: 2019-12-17 11:19
谢谢作者!
作者: 神岸snowy    时间: 2019-12-17 12:34
xiexie nicexiexie nicexiexie nicexiexie nicexiexie nice
作者: dfu    时间: 2019-12-17 12:42
谢谢作者
作者: Heaven,    时间: 2019-12-17 12:46
可以,大佬牛皮
作者: 这个世界啊啊啊    时间: 2019-12-17 12:47
感谢分享
作者: 永恒经典9527    时间: 2019-12-17 12:49
下个试试看
作者: 这名字真长不    时间: 2019-12-17 12:52
感谢大佬,查价方便很多
作者: 110119老赵    时间: 2019-12-17 12:54
不错的软件 收藏了
作者: ABAI    时间: 2019-12-17 13:28
好顶赞
作者: 大爸爸01    时间: 2019-12-17 13:39
感谢大佬~
作者: suedely    时间: 2019-12-17 14:11
多谢楼主分享!!
作者: 玩家U_137636398    时间: 2019-12-17 14:13
感谢楼主无私奉献@!
作者: 长长长长长长长长颈鹿    时间: 2019-12-17 14:21
终于有了
作者: 嚣张的一笔    时间: 2019-12-17 14:23

一蛛网一头上犄角 没了。。。
作者: 白书笑    时间: 2019-12-17 14:24
66666你真棒·
作者: 油炸大腰子    时间: 2019-12-17 14:26
十分感谢,这个太方便了
作者: 中尉雪莉    时间: 2019-12-17 14:39
这个可以啊  看图片感觉很棒啊  之前有一个看价格的不好用了   

作者: 贵族灬小永    时间: 2019-12-17 15:30
好东西 啊  感谢分享
作者: 亿叁仟    时间: 2019-12-17 15:55
感谢大佬!!!!!!!!
作者: 独爱星星1    时间: 2019-12-17 16:07
这个是好东西啊 支持一下啊
作者: 玩家U_119151533    时间: 2019-12-17 16:13
感谢分享




欢迎光临 17173有料社区 (//bbs.17173.com/) Powered by Discuz! X3.2