OutdatedSpammer Tool

Posts 115 of 26 · Page 1 of 2
File is safe to use. Approved.
I'll add hotkeys in the next update. Someone else said that he would, he didn't so I decided to make it myself
Quote Originally Posted by AzzyG View Post
I'll add hotkeys in the next update. Someone else said that he would, he didn't so I decided to make it myself
Yeah that would be nice .
I'll also change the speed. It spams way to fast now. @ @DarknzNet , how do you add change speed buttons?

- - - Updated - - -

If no one knows, I'll just change the speed
Quote Originally Posted by AzzyG View Post
I'll also change the speed. It spams way to fast now. @ @DarknzNet , how do you add change speed buttons?

- - - Updated - - -

If no one knows, I'll just change the speed
If you could instead make a button to change speed that would be great, sometimes on my alts I like to spam fast af.
Quote Originally Posted by AzzyG View Post
I'll also change the speed. It spams way to fast now. @ @DarknzNet , how do you add change speed buttons?

- - - Updated - - -

If no one knows, I'll just change the speed
To change spam speed you can use Sleep function

Code:
int Delay = 5;

//Spam
Thread.Sleep(Delay);
Or what do you mean?
Quote Originally Posted by DarknzNet View Post


To change spam speed you can use Sleep function

Code:
int Delay = 5;

//Spam
Sleep(Delay);
Or what do you mean?
I meant. How do I add a button to the form, and make it change speed when you click the button.

Also I added the hotkeys, but they don't work. I added them like:
Code:
if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control)
{
       timer1.Start();
}
Quote Originally Posted by AzzyG View Post


I meant. How do I add a button to the form, and make it change speed when you click the button.

Also I added the hotkeys, but they don't work. I added them like:
Code:
if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control)
{
       timer1.Start();
}
Both those are easy to do if you understand C# .NET

You gotta learn more .
Quote Originally Posted by AzzyG View Post


I meant. How do I add a button to the form, and make it change speed when you click the button.

Also I added the hotkeys, but they don't work. I added them like:
Code:
if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control)
{
       timer1.Start();
}
You have to use global keyboard hook
So it will work not only in app


- - - Updated - - -

Quote Originally Posted by AzzyG View Post


I meant. How do I add a button to the form, and make it change speed when you click the button.

Also I added the hotkeys, but they don't work. I added them like:
Code:
if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control)
{
       timer1.Start();
}
+ button: int delay +10
- button: int delay -10

spam thread:
while(true) {
doSpam();
Thread.Sleep(delay);
}
Quote Originally Posted by DarknzNet View Post


To change spam speed you can use Sleep function
<...>
Didn't find any threads in OP's code, Thread.Sleep would freeze the GUI thread.

Instead I suggest OP uses tasks: (instead of timers as well)
Code:
 
const int DELAY = 5;
public async void sendMsg(){
//send keys

await Task.Delay(DELAY);
}
or even better
Code:
const int DELAY = 5;
public async void sendMsg(){
//Sometimes sendkeys runs too fast, give some delay
SendKeys("{ENTER}");
await Task.Delay(DELAY);
SendKeys(message);
await Task.Delay(DELAY);
SendKeys("{ENTER}");
await Task.Delay(DELAY);
}
Then, put it in a do{}while() or call it recursively (not sure if tasks can cause stack memory overflow, so I suggest do while loop)

PS: code written without an IDE or testing, so excuse possible false syntax.
Quote Originally Posted by New View Post


Didn't find any threads in OP's code, Thread.Sleep would freeze the GUI thread.

Instead I suggest OP uses tasks: (instead of timers as well)
Code:
 
const int DELAY = 5;
public async void sendMsg(){
//send keys

await Task.Delay(DELAY);
}
or even better
Code:
const int DELAY = 5;
public async void sendMsg(){
//Sometimes sendkeys runs too fast, give some delay
SendKeys("{ENTER}");
await Task.Delay(DELAY);
SendKeys(message);
await Task.Delay(DELAY);
SendKeys("{ENTER}");
await Task.Delay(DELAY);
}
Then, put it in a do{}while() or call it recursively (not sure if tasks can cause stack memory overflow, so I suggest do while loop)

PS: code written without an IDE or testing, so excuse possible false syntax.
Only stupid ppl use Thread.Sleep() in the gui thread
Async isn't perfect.
Everything before await is beeing invoked in the gui thread what means that it isn't 100% new thread and still can freeze the gui
Create new thread instead
Async is good for button clicks etc.
If you use infinite loop use Thread.
You can always abort it
Quote Originally Posted by Zaczero View Post


Only stupid ppl use Thread.Sleep() in the gui thread
Async isn't perfect.
Everything before await is beeing invoked in the gui thread what means that it isn't 100% new thread and still can freeze the gui
Create new thread instead
Threads are an overkill for sendkeys, also, his code uses Sendkeys(textbox1.text) which would crossthread with the gui thread since it tries to access textbox1, and could cause a deadlock, if crossthread checking is disabled

Not to mention that closing the app doesn't always terminate the thread.
Quote Originally Posted by New View Post


Threads are an overkill for sendkeys, also, his code uses Sendkeys(textbox1.text) which would crossthread with the gui thread since it tries to access textbox1.

Not to mention that closing the app doesn't always terminate the thread.
It doesn't terminate the thread because you don't set thr.IsBackground = true;
I would suggest adding textbox1 value change event to change global variable and then use this variable in the new thread without crash
Ofc there is a way to invoke it in the gui thread but it is quite inefficient
Quote Originally Posted by Zaczero View Post
If you use infinite loop use Thread.
You can always abort it
Afaik, op has a stop button, thus he doesn't want an infinite loop.

You can always abort it? Internally maybe, with the return keyword, but good luck with thread.abort
Throwing an exception to the thread is unstable, you don't know where the code will stop running. Sure, it doesnt matter in this certain program, but why be lazy and do it like that.

Tasks work just fine, sendkeys wouldnt freeze the GUI even if you run it on the GUI thread, it's very lightweight.
Posts 115 of 26 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?