View Full Version : [Request] Program
killer1016x1
17th December 2007, 11:13
Hi, im trying to make either a simple program or something that presses a key over and over in a certain amount of time. Im new at programming stuff so i have no idea where to start. Like for example, mzbot has autoskill where you put the skill on N and put a interval of time to tell it how long between each time it presses the button for the skill. This is all i want to have on one program.. just 1 key to press in a interval of time. Can someone help me get started or point me in some kind of direction please? Thanks.:cheeky:
CioNide
20th December 2007, 23:21
I can make it for you, what key do you want it to press?
But, if you want to make it yourself, I suggest Visual Basics 6.
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Timer1_Timer()
If GetAsyncKeyState(113) <> 0 Then
Timer1.Enabled = False
End If
End Sub
That means if you press F2 it starts auto clicking by starting the timer.
(113) = F2
cuteharez
20th December 2007, 23:40
GetAsyncKeyState is detected by GG.
CioNide
20th December 2007, 23:44
It is? I will find a Module to make it undetected. Brb.
S3NSA
20th December 2007, 23:45
I wouldnt recommends visual basic at all. Soon you will wish to advance to C++ etc. and the knowledge that VB thought you hinders you.
CioNide
20th December 2007, 23:56
I am slowly moving on to C#.
killer1016x1
21st December 2007, 03:11
I want it to press F5. Or.. make it so where i can change the key myself instead of it always being the same key.
CioNide
21st December 2007, 05:18
Here is the f5 one:
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Timer1_Timer()
If GetAsyncKeyState(116) <> 0 Then
Timer1.Enabled = False
End If
End Sub
cwisfa
21st December 2007, 07:04
However, as cuteharez said- it's detected by GG.
How's that module coming along? :\
CioNide
21st December 2007, 08:54
Not so good, can't do it without like defining something. Idk I will try later lol.
XxOsirisxX
21st December 2007, 15:27
I wouldnt recommends visual basic at all. Soon you will wish to advance to C++ etc. and the knowledge that VB thought you hinders you.
Not really, i did strat from VB 6.0, then Delphi, C++, VB.Net, Java, and after all, i still rather a lot more VB for simple stuff than C++, not for secure, but for working. Plus, i did put in practice C++ as i did with VB :\
About GetAsyncKeyState, it's detected, only "SendKeys" works on MapleStory with GGLess.
About the key press, then repeat. (Not recommend for MS)
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal Vkey As Long) As Integer
Private Sub Form_Load()
Timer1.interval = 100
Timer2.interval = 10
Timer2.Enabled = False
End Sub
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyF4) Then
Timer2.Enabled = IIf(Timer2.Enabled = True, False, True)
End If
End Sub
Private Sub Timer2_Timer()
SendKeys "z"
End Sub
So, with that, everytime you press F4, "z" key will be pressed.
cuteharez
21st December 2007, 15:53
But why use GetAsyncKeyState the polling rate is so slow =/
PostMessage Function is not detected by GG. I don't have have the source with with but i seen it on someone blogs before.
scruie
21st December 2007, 20:25
But why use GetAsyncKeyState the polling rate is so slow =/
PostMessage Function is not detected by GG. I don't have have the source with with but i seen it on someone blogs before.
Won't direct input work (http://www.xtremevbtalk.com/archive/index.php/t-212815.html)?
That Asian Guy
21st December 2007, 22:07
sometimes visual basic is not as helpful, but its good to know more than one
scaniaplayer133
24th December 2007, 08:43
Okay, I'm not new to hacking maple, I'm pretty new to programming. (I did some game programming in C or C++, I forgot)
But, how can GG block a line of code that is in a completely different program that isn't even attaching to Maple?
cwisfa
24th December 2007, 14:28
@scaniaplayer133
I'm presuming that it doesn't exactly 'block' a line of code, it searches for strings that are known to be used in CE.
It's innovative because people with little knowledge won't know how to edit these strings, and they have an excuse to leave the system in place.
The theory behind creating UCE's is changing/editing the strings so GG doesn't detect them, rather than blocking them.
cuteharez
25th December 2007, 19:10
Won't direct input work (http://www.xtremevbtalk.com/archive/index.php/t-212815.html)?
Somehow GG only allows input send by the driver and not virtual key stroke :\
scruie
26th December 2007, 10:56
Somehow GG only allows input send by the driver and not virtual key stroke :\
Hook and fake it then.
killer1016x1
26th December 2007, 17:41
@joker
I know that gg will detect it or w.e.. but im just wondering like how would i make something to actualy run the script?
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Sub Timer1_Timer()
If GetAsyncKeyState(116) <> 0 Then
Timer1.Enabled = False
End If
End Sub
killer1016x1
31st December 2007, 23:59
bumpp
XxOsirisxX
1st January 2008, 01:24
you have to find another way or somehow bypass it. It will not works like that, and you know it.
killer1016x1
2nd January 2008, 23:34
you have to find another way or somehow bypass it. It will not works like that, and you know it.
I understand that gg detects it.. if thats what your trying to say.. but my question is how do i actualy make and use a program that does this.. c++,java?..
xTc-Droop
4th January 2008, 14:06
what is this going to be used for anyhow?
scruie
4th January 2008, 16:15
I understand that gg detects it.. if thats what your trying to say.. but my question is how do i actualy make and use a program that does this.. c++,java?..
C++ would be your best bet, plus you can use it to make .dlls for injection. :)
CioNide
5th January 2008, 02:06
C++ would be your best bet, plus you can use it to make .dlls for injection. :)
I suggest C#.
That Asian Guy
5th January 2008, 20:05
C++ has more support than c#, due to how long ppl have been using it for. however, microsoft does hire more forum technicians for C# than C++. In contrast, C++ forums have more non-hired members answering
http://forums.microsoft.com/MSDN/default.aspx?siteid=1
killer1016x1
7th January 2008, 05:28
Ok.. when i compile it, it sais "`Private' does not name a type " or something like that. Im using dev-c++.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.