Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
Malaki2030

Script/Prog to switch chat channels>?

Recommended Posts

Looking for an automated way to spam a message to trade channels 1-10. Anyone know of a script for ahk or something that can do this? I just input the message i want i.e. bu ying gem 20/20 and itll broadcast it to all 10 trade channels? ( By swapping obviously )

Edit: I went ahead and made one using AHK. If anyone wants to use it, feel free.

http://pastebin.com/Lq8WvKxa

Edit the script and change the Trade = " X " to whatever you want between the quotes. Then it will cycle through Trade 1-10 broadcasting the message in trade variable once.

Share this post


Link to post
Share on other sites

eheh didn't see your request earlier, otherwise you could have skipped your "scripting" ;>

I will post my solution here too since it's a little bit more "advanced"

[*:o1b4s51n]F9 to start the magic

[*:o1b4s51n]F12 to terminate the crap

[*:o1b4s51n]linking of items is possible of curse

[*:o1b4s51n]Script randomizes all "Sleep-times" so it should at least can not be directly identified as a script.

F12::
Sleep, % Random(75,125)
TrayTip, , >> Terminating the Tradechannel-Script! <<, 2
Sleep, % Random(1175,2225)
exitapp

F9::
WinActivate, Path of Exile
#IfWinActive ahk_class Path of Exile

x = 0
 
BlockInput On
SendInput, {Space}
Sleep, % Random(25,75)
Loop
{
   if x  
      return
   if a_index >12
      break
   SendInput, {Enter}
   Sleep, % Random(75,125)
   SendInput, {/}trade %a_index%
   Sleep, % Random(75,125)
   SendInput, {Enter}
   Sleep, % Random(75,125)
   SendInput, {Enter}
   Sleep, % Random(75,125)
   SendInput, {UP}
   Sleep, % Random(75,125)
   SendInput, {UP}
   Sleep, % Random(75,125)
   SendInput, {Enter}
   BlockInput Off
}

Random(min,max) {
	Random, out, %min%, %max%
	return out
}

return

[*:o1b4s51n]Copy the code into "whatevernameyouwant.ahk" and save it.

[*:o1b4s51n]run your "whatevernameyouwant.ahk" & PoE ;>

[*:o1b4s51n]write your tradechannel advertisement ingame just like you would normaly do (e.g. "$WTS UBERELITE Icetomb! c/o: 999ex")

[*:o1b4s51n]press F9

[*:o1b4s51n]script now advertises in all tradechannels from 1-10

[*:o1b4s51n]profit incoming?!

  • Upvote 1

Share this post


Link to post
Share on other sites

This is the scipt i use it gives you a little more control and is impossible to detect because its not looped.

F1::Trade1() ; Assign F1 to Switch to trade chat 1

F2::Trade2() ; Assign F2 to Switch to trade chat 2

F3::Trade3() ; Assign F3 to Switch to trade chat 3

F4::Trade4() ; Assign F4 to Switch to trade chat 4

F5::Trade5() ; Assign F5 to Switch to trade chat 5

F6::Trade6() ; Assign F6 to Switch to trade chat 6

F7::Trade7() ; Assign F7 to Switch to trade chat 7

F8::Trade8() ; Assign F8 to Switch to trade chat 8

F9::Trade9() ; Assign F9 to Switch to trade chat 9

F10::Trade10() ; Assign F10 to Switch to trade chat 10

F11::Trade11() ; Assign F11 to Switch to trade chat 11

F12::Trade12() ; Assign F12 to Switch to trade chat 12

Trade1(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 1

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade2(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 2

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade3(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 3

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade4(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 4

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade5(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 5

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade6(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 6

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade7(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 7

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade8(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 8

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade9(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 9

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade10(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 10

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade11(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 11

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

Trade12(){

BlockInput On

Send {Enter}

Sleep 2

Send /trade 12

Send {Enter}

Send {Enter}

Sleep 2

Send {Up}

Send {Up}

sleep 20

Send {Enter}

BlockInput Off

return

}

You simply follow these steps

1. Post in trade what you wanna sell. I.E "WTT My ex for youre Choas 1:25"

2. You Run the script

3. press F1-F12 and it will retype the last thing you said in trade chat 1-12.

Share this post


Link to post
Share on other sites

and is impossible to detect because its not looped.

risky statement ;)

By the way, I do not believe that the use of such scripts will lead to a ban but to say your script is not detectable is simply nonsense...

Every single timing you are using is identical. That being said every single TradeChanPost will be posted exactly the same way as the previous one ;>

detectable for sure :P

Share this post


Link to post
Share on other sites

and is impossible to detect because its not looped.

risky statement ;)

By the way, I do not believe that the use of such scripts will lead to a ban but to say your script is not detectable is simply nonsense...

Every single timing you are using is identical. That being said every single TradeChanPost will be posted exactly the same way as the previous one ;>

detectable for sure :P

as he said. "impossible to detect" is never true.

also a sleep of 2ms is itself alrdy detectable. since this would lead to 500clicks/sec. show me how u do that manually ;)

Share this post


Link to post
Share on other sites

hey guys i have a question, i have used ahk a few months back and never had a problem with this. All three of the scripts you posted on here do not work. for example it keeps giving me errors for the first line

Missing separator character after keyword.:

F12::

F12^ ERROR

>Exit code: 1 Time: 0.215

i am not sure why this is happening :/ can anyone help?

Share this post


Link to post
Share on other sites

F12^

where does this came from?

Tried the script as I posted it here again for a couple of seconds and everything works fine for me... Try to recreate the script using the exact code as posted in my thread.

If that wont help I don't think your error is related to the script. Any new software you installed?

Share this post


Link to post
Share on other sites

eheh didn't see your request earlier, otherwise you could have skipped your "scripting" ;>

I will post my solution here too since it's a little bit more "advanced"

[*:1c41lbvg]F9 to start the magic

[*:1c41lbvg]F12 to terminate the crap

[*:1c41lbvg]linking of items is possible of curse

[*:1c41lbvg]Script randomizes all "Sleep-times" so it should at least can not be directly identified as a script.

F12::
Sleep, % Random(75,125)
TrayTip, , >> Terminating the Tradechannel-Script! <<, 2
Sleep, % Random(1175,2225)
exitapp

F9::
WinActivate, Path of Exile
#IfWinActive ahk_class Path of Exile

x = 0
 
BlockInput On
SendInput, {Space}
Sleep, % Random(25,75)
Loop
{
   if x  
      return
   if a_index >12
      break
   SendInput, {Enter}
   Sleep, % Random(75,125)
   SendInput, {/}trade %a_index%
   Sleep, % Random(75,125)
   SendInput, {Enter}
   Sleep, % Random(75,125)
   SendInput, {Enter}
   Sleep, % Random(75,125)
   SendInput, {UP}
   Sleep, % Random(75,125)
   SendInput, {UP}
   Sleep, % Random(75,125)
   SendInput, {Enter}
   BlockInput Off
}

Random(min,max) {
	Random, out, %min%, %max%
	return out
}

return

[*:1c41lbvg]Copy the code into "whatevernameyouwant.ahk" and save it.

[*:1c41lbvg]run your "whatevernameyouwant.ahk" & PoE ;>

[*:1c41lbvg]write your tradechannel advertisement ingame just like you would normaly do (e.g. "$WTS UBERELITE Icetomb! c/o: 999ex")

[*:1c41lbvg]press F9

[*:1c41lbvg]script now advertises in all tradechannels from 1-10

[*:1c41lbvg]profit incoming?!

Hey dude, did you improve this ?

Can you send me the last version ?

Share this post


Link to post
Share on other sites

not really "improved" but due to some people asking me about an updated version of the script, here's my "final" version:

 

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent ; Only the user can kill the application
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
StringCaseSense, On ; Match strings with case.
SetWorkingDir %A_ScriptDir%
CoordMode, ToolTip, Relative
CoordMode, Mouse, Screen
#MaxThreadsPerHotkey 2

; User config
_tcaStart = F5				; Hotkey to start advertising
_tcaPause = F6				; Hotkey to pause advertising
_tcaExit = F8				; Hotkey to exit script

_chans = 20					; Number of tradechannels you want to advertise at

; Internal config
_scriptName = Magic.Tradechannel.Spam
_scriptVer = v1.2
endchan := (_chans + 1)

; linking Hotkeys
Hotkey, %_tcaStart%, tcaStart
Hotkey, %_tcaPause%, tcaPause
Hotkey, %_tcaExit%, tcaExit

; poor method of "stopping" the script
^!F9::

; main Tradescript for advertising in an array of Tradechannels.
tcaStart:
	; checking if PoE is the active window
	WinActivate, Path of Exile
	#IfWinActive Path of Exile
	TrayTip, Executing the Tradechannel advertisement! , This may take some seconds!`n`n%_scriptName%.%_scriptVer%, 2

	; poor try to remove an active chatmessage...
	WinGetPos, XStart, YStart, Width, Height, Path of Exile
	XPos := XStart+(Width/2)
	YPos := YStart+(Height/2)
	Mousemove %XPos%, %YPos%
	Sleep, % Random(225,275)
	click
	Sleep, % Random(225,275)
	SendInput, {SPACE}
	Sleep, % Random(25,75)

	; main loop
	Loop
	{
	   if a_index > %_chans%
		  break
	   Sleep, % Random(100,175)
	   SendInput, {Enter}
	   Sleep, % Random(100,175)
	   SendInput, {/}trade %a_index%
	   Sleep, % Random(100,175)
	   SendInput, {Enter}
	   Sleep, % Random(100,175)
	   SendInput, {Enter}
	   Sleep, % Random(100,175)
	   SendInput, {UP}{UP}
	   Sleep, % Random(100,175)
	   SendInput, {Enter}
	}
	
	; joining next tradechannel to not spam your advertisment twice on one channel
	Sleep, % Random(100,175)
	SendInput, {Enter}
	Sleep, % Random(100,175)
	SendInput, {/}trade %endchan%
	Sleep, % Random(100,175)
	SendInput, {Enter}
	TrayTip, Finished advertising! , Advertisement was done on %_chans% channels.`n`n%_scriptName%.%_scriptVer% > made by immo, 2 
	Sleep, % Random(75,225)
	
return

; randomization
Random(min,max) {
	Random, out, %min%, %max%
	return out
}

; Simple Pause/Unpause Function
tcaPause:
	if A_IsPaused
	{
		Pause off
		TrayTip, resuming %_scriptName%.%_scriptVer%!, `nPress %_tcaPause% to pause Script again... , 1, 2
	}
	else
	{
		TrayTip, %_scriptName%.%_scriptVer% paused!, `nPress %_tcaPause% to resume script... , 1, 2
		Pause On
	} 
return

; simple exit routine
tcaExit:
	Sleep, % Random(75,125)
	TrayTip, , >> Terminating %_scriptName%.%_scriptVer%! <<, 2
	Sleep, % Random(1775,3225)
	exitapp
return

i dont think that i will do any changes on this script in the future. working as intended i think ;>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...