This script adds a pseudo button to the trade site for faster trade whispers
it works like:
open trade search
click "whisper"
click paste to poe
scripts pastes whisper to poe and reactivates chrome
u can put the paste button right next to the whisper button and just scroll thru the results and whisper many people really fast
Screenshot 2022-06-10 221441.png
Code:
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
;#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance , Force
; gui layout
Gui,+AlwaysOnTop
Gui, Add, Button, x12 y19 w90 h30 gPasteToChat, PasteToChat
Gui, Add, Button, x112 y19 w150 h30 gPasteToChatBackToBrowser, PasteToChatBackToBrowser
Gui, Add, Button, x62 y59 w90 h20 gReloadIn, Reloadscript
; Generated using SmartGUI Creator 4.0
Gui, Show, x367 y159 h89 w268, tradesite to poe paster
return
;---------------------------------------------------------
;labels
PasteToChat:
; 1. check if valid paste
;init
BuyKeywordEN :="d like to buy your"
BuyKeywordKR :="구매하고 싶습니다"
BuyKeywordRU :="очу купить у вас"
isBuykeywFoundEN := InStr(Clipboard, BuyKeywordEN)
isBuykeywFoundKR := InStr(Clipboard, BuyKeywordKR)
isBuykeywFoundRU := InStr(Clipboard, BuyKeywordRU)
If not (isBuykeywFoundEN = 0 ) or (isBuykeywFoundKR = 0 ) or (isBuykeywFoundRU = 0)
{
WinActivate, Path of Exile
Send {Enter}
Random, RndSleepMs, 150, 250
Sleep %RndSleepMs%
Send %Clipboard%
Sleep %RndSleepMs%
Send {Enter}
return
}
ReloadIn:
Reload
return
PasteToChatBackToBrowser:
; 1. check if valid paste
;init
BuyKeywordEN :="d like to buy your"
BuyKeywordKR :="구매하고 싶습니다"
BuyKeywordRU :="очу купить у вас"
isBuykeywFoundEN := InStr(Clipboard, BuyKeywordEN)
isBuykeywFoundKR := InStr(Clipboard, BuyKeywordKR)
isBuykeywFoundRU := InStr(Clipboard, BuyKeywordRU)
If not (isBuykeywFoundEN = 0 ) or (isBuykeywFoundKR = 0 ) or (isBuykeywFoundRU = 0)
{
WinActivate, Path of Exile
Send {Enter}
Random, RndSleepMs, 150, 250
Sleep %RndSleepMs%
Send %Clipboard%
Sleep %RndSleepMs%
Send {Enter}
Sleep %RndSleepMs%
winactivate, ahk_exe chrome.exe
return
}
;---------------------------------------
;end labels
GuiEscape:
GuiClose:
exitapp
return