|
You last visited: Today at 19:03
Advertisement
[Help] AmmoChange Please
Discussion on [Help] AmmoChange Please within the DarkOrbit forum part of the Browsergames category.
04/29/2013, 04:08
|
#1
|
elite*gold: 0
Join Date: Sep 2012
Posts: 22
Received Thanks: 7
|
[Help] AmmoChange Please
Hello Epvp  I'm looking for someone who can help in the creation of a AmmoChange
It's something simple I need, if not too much trouble .. infinite thanks leave a couple of pictures, how I need this tool
- The goal would be that I can adjust the time, preferably in seconds
- Selecting the key
|
|
|
04/29/2013, 04:17
|
#2
|
elite*gold: 108
Join Date: Feb 2012
Posts: 2,622
Received Thanks: 1,029
|
Quote:
Originally Posted by ᶠᶸᶜᵏᵧₒᵤ!BugPoint!
Hello Epvp  I'm looking for someone who can help in the creation of a AmmoChange
It's something simple I need, if not too much trouble .. infinite thanks leave a couple of pictures, how I need this tool
- The goal would be that I can adjust the time, preferably in seconds
- Selecting the key
|
There are already a lot of ammochangers...
Just use the search function...
Regards. StormTempest
|
|
|
04/29/2013, 05:16
|
#3
|
elite*gold: 0
Join Date: Sep 2012
Posts: 22
Received Thanks: 7
|
Quote:
Originally Posted by StormTempest
There are already a lot of ammochangers...
Just use the search function...
Regards. StormTempest
|
Yes, I understand
But none of the ammo changer that are available, have the function of establishing the time
please wait until someone can help me. do not close the thread
|
|
|
04/29/2013, 09:57
|
#4
|
elite*gold: 0
Join Date: May 2011
Posts: 1,764
Received Thanks: 1,577
|
Quote:
Originally Posted by ᶠᶸᶜᵏᵧₒᵤ!BugPoint!
Hello Epvp  I'm looking for someone who can help in the creation of a AmmoChange
It's something simple I need, if not too much trouble .. infinite thanks leave a couple of pictures, how I need this tool
- The goal would be that I can adjust the time, preferably in seconds
- Selecting the key
|
Hmm it al depends in what language you want to write, i would take VB  Its not a hard language..
And what you ask is all possible, but not easy to do .. It depends on the Commands you want to use..
For example, in Visual studio you can use Timers, that wil repeat after ... Ticks 
You can choose how many mili sec are in one tick. But these ticks are never correct haha .. So you have to find out how many you need exactly by playing with it ..
atleast thats a problem i am having :P
Like with the timer i would do this :
If you have timer on 100 ticks standard, this wil make 1000 ticks ..
Put the timer on 10 ticks, and it wil do 100 ticks and then send whatever you have in the textbox 
Timer 1
Ticks += 1
If Ticks = 10 Then
SendKeys.Send(TextBox1.Text)
Ticks = 0
End If
Or you dont want textbox? You use something like this SendKeys.Send("1")
Good luck
Edit : found something that might help you.
Dim milliSecs As Integer = Timer1.Interval
If (Int32.TryParse(TextBox.Text, milliSecs) AndAlso milliSecs = 0 Then
Timer1.Interval = milliSecs
End If
|
|
|
04/29/2013, 12:07
|
#5
|
elite*gold: 0
Join Date: Sep 2012
Posts: 22
Received Thanks: 7
|
Quote:
|
Originally Posted by Microsoft Visual Basic 2008 Express Edition
Public Class Form1
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
SendKeys.Send(TextBox1.Text)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Interval = TextBox2.Text
Timer1.Start()
Timer2.Interval = TextBox4.Text
Timer2.Start()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
Timer2.Stop()
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
SendKeys.Send(TextBox3.Text)
End Sub
End Class
|
this is what you get done, watching a tutorial ...
but when I run it, there is only precionas a key or two keys precionan all same time, is there any way that when you finish precionar one pass to the other and then repeat the process (Loop)
|
|
|
04/29/2013, 12:29
|
#6
|
elite*gold: 0
Join Date: May 2011
Posts: 1,764
Received Thanks: 1,577
|
Quote:
Originally Posted by ᶠᶸᶜᵏᵧₒᵤ!BugPoint!
this is what you get done, watching a tutorial ...
but when I run it, there is only precionas a key or two keys precionan all same time, is there any way that when you finish precionar one pass to the other and then repeat the process (Loop)
|
Public Class Form1
Dim Ticks As Integer
Dim Ticks2 As Integer
You need this
example ticks 'timer 1'
Ticks += 1
If Ticks = 75 Then
SendKeys.Send(TextBox2.Text)
End If
If Ticks = 100 Then
SendKeys.Send(TextBox3.Text)
Ticks = 0
End If
Example ticks1 'timer2"
Ticks1 += 1
If Ticks1 = 75 Then
SendKeys.Send(TextBox2.Text)
End If
If Ticks1 = 100 Then
SendKeys.Send(TextBox3.Text)
Ticks1 = 0
End If
hmm, but why you want to choose time? Why not make it random between 2 timings??
like this :
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Ticks += 1
If Ticks = 10 Then
SendKeys.Send(TextBox1.Text)
End If
If Ticks >= Randx.Next(200, 250) Then
SendKeys.Send(TextBox2.Text)
Ticks = 0
End If
End Sub
|
|
|
04/29/2013, 13:10
|
#7
|
elite*gold: 0
Join Date: Sep 2012
Posts: 22
Received Thanks: 7
|
Quote:
Originally Posted by jorg*
hmm, but why you want to choose time? Why not make it random between 2 timings??
|
I appreciate all your help, I'm really new to VB
I want to make a tool to change the ammo automatically. because I have different configurations and recharge time of some weapons is different from other
look I made a vbs script
Quote:
Set wshShell = wscript.CreateObject("WScript.Shell")
WScript.Echo "¿Iniciar Sript?"
do
wscript.sleep 1400
wshshell.sendkeys "1"
wscript.sleep 1400
wshshell.sendkeys "2"
loop
|
but now I want to move to another level, creating my own. exe
without having to modify with notepad
|
|
|
04/29/2013, 13:37
|
#8
|
elite*gold: 0
Join Date: May 2011
Posts: 1,764
Received Thanks: 1,577
|
Quote:
Originally Posted by ᶠᶸᶜᵏᵧₒᵤ!BugPoint!
I appreciate all your help, I'm really new to VB
I want to make a tool to change the ammo automatically. because I have different configurations and recharge time of some weapons is different from other
look I made a vbs script
but now I want to move to another level, creating my own. exe
without having to modify with notepad
|
Hmm well, then i suggest you to buy/download visual studio 
there you can work on youre project
and you can release it and find the .EXE in the project map in release/bin or something like that
|
|
|
04/29/2013, 16:21
|
#9
|
elite*gold: 0
Join Date: May 2012
Posts: 868
Received Thanks: 947
|
Might aswell use a different thread... assuming you're using C#:
Code:
partial class Example
{
Thread thread;
public volatile bool ShouldStop;
const int stop1 = 150;
const int stop2 = 3200;
const string key1 = "key1";
const string key2 = "key2";
public Example()
{
this.InitializeComponent();
thread = thread ?? new Thread(() => { while (!ShouldStop) { SendKeys.Send(key1); Thread.Sleep(stop1); SendKeys.Send(key2); Thread.Sleep(stop2); } });
Button startButton = new Button();
startButton.Click += (sender, e) =>
{
ShouldStop = false;
thread.Start();
};
Button stopButton = new Button();
stopButton.Click += (sender, e) =>
{
ShouldStop = true;
};
this.FormClosing += (sender, fEvArgs) =>
{
ShouldStop = true;
};
}
}
Of course, the buttons have to be the ones in your form
You can also use the ThreadPool:
Code:
ThreadPool.QueueUserWorkItem(delegate
{
while (!ShouldStop) { SendKeys.Send(key1); Thread.Sleep(stop1); SendKeys.Send(key2); Thread.Sleep(stop2); }
});
|
|
|
04/29/2013, 20:55
|
#10
|
elite*gold: 0
Join Date: Aug 2012
Posts: 291
Received Thanks: 66
|
You can also do it with autoIT, with a little GUI, that's not hard
|
|
|
04/30/2013, 01:22
|
#11
|
elite*gold: 0
Join Date: Sep 2012
Posts: 22
Received Thanks: 7
|
|
|
|
04/30/2013, 14:57
|
#12
|
elite*gold: 0
Join Date: May 2012
Posts: 868
Received Thanks: 947
|
You'll need to use Windows API for that, it's a bit more difficult than you think.
(that's if you want to use global hotkeys)
But if you only want key recognition on the form, handle the KeyDown, KeyUp, KeyPress events. Also, set KeyPreview = true;
or you can override ProcessCmdKey.
|
|
|
05/01/2013, 14:18
|
#13
|
elite*gold: 0
Join Date: Apr 2013
Posts: 49
Received Thanks: 21
|
Please C# Cod Send .
|
|
|
05/01/2013, 14:31
|
#14
|
elite*gold: 0
Join Date: Feb 2013
Posts: 766
Received Thanks: 333
|
when you will release it?
|
|
|
05/02/2013, 18:21
|
#15
|
elite*gold: 0
Join Date: Sep 2012
Posts: 22
Received Thanks: 7
|
Quote:
Originally Posted by By-Soul
Please C# Cod Send .
|
I have programmed in Visual basic
and have improved their appearance a little.
This tool is used to automatically change the ammo, so takes advantage of the cooling time to cause another attack
Quote:
Originally Posted by DarkorbitExpected
when you will release it?
|
This is not a tool to darkorbit .... is for nova raider
|
|
|
All times are GMT +1. The time now is 19:03.
|
|