Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › [Help]Hotkeys for combat arms

[Help]Hotkeys for combat arms

Posts 1–13 of 13 · Page 1 of 1
bayley60
bayley60
[Help]Hotkeys for combat arms
Hey guys i have made a spammer for combat arms with hotkeys but at the moment the hotkeys only work in notepad and not for combat arms

This is my hotkey code so far

Code:
Public Class Form1
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
    Dim maybe1 As Boolean
    Dim maybe2 As Boolean
Code:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
        If GetAsyncKeyState(Keys.F7) Then
            Button1_Click(sender, e)
        End If
        If GetAsyncKeyState(Keys.F8) Then
            Button2_Click(sender, e)
        End If
    End Sub
End Class
now im just wondering if you guys could plz help me get the code to work in combat arms.
#1 · edited 15y ago · 15y ago
freedompeace
freedompeace
The following lines can be removed, as they are not used.

Code:
    Dim maybe1 As Boolean
    Dim maybe2 As Boolean
And this just clicks your FORM's button :
Code:
Button1_Click(sender, e)
What kind of a spammer are you trying to do?
#2 · 15y ago
Kallisti
Kallisti
Quote Originally Posted by freedompeace View Post
The following lines can be removed, as they are not used.

Code:
    Dim maybe1 As Boolean
    Dim maybe2 As Boolean
And this just clicks your FORM's button :
Code:
Button1_Click(sender, e)
What kind of a spammer are you trying to do?
a spammer that spams game chat.
#3 · 15y ago
freedompeace
freedompeace
Quote Originally Posted by Kallisti View Post


a spammer that spams game chat.
Are you completely sure?
#4 · 15y ago
bayley60
bayley60
yea i want it to spam the ingame chat thing in combat arms

and the code u said i should get rid of is important
#5 · 15y ago
Hassan
Hassan
You will have to use the virtual keyboard API. Sendkeys or any other faulty method won't work in DX.

First declare this in your form:

Code:
Declare Function keybd_event Lib "user32" Alias "keybd_event" _
     (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, _
     ByVal dwExtraInfo As Long) As Long
Private Const KEYEVENTF_KEYUP = &H2
Then add this sub-procedure to your form:

Code:
 
Sub PressKey(K as Keys)
Call keybd_event(k, 0, 0, 0)
System.Threading.Thread.Sleep(20)
Call keybd_event(k,0,KEYEVENTF_KEYUP, 0)
End Sub
After that modify the code you posted, so it looks like this:

Code:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
        If GetAsyncKeyState(Keys.F7) Then
'Press the required key by using the following line. Use the following statement multiple times to stimulate multiple keys at a time. (Combination)
            PressKey(Keys.A)
 
        End If
        If GetAsyncKeyState(Keys.F8) Then
           'Press the required key by using the following line. Use the following statement multiple times to stimulate multiple keys at a time. (Combination)
 
'Prints the screen            
PressKey(Keys.PrintScreen)
 
        End If
    End Sub
End Class
This should work if done correctly. Tested and working !!
#6 · 15y ago
bayley60
bayley60
hi where do i add the sub-procedure to the form
#7 · 15y ago
Hassan
Hassan
Quote Originally Posted by bayley60 View Post
hi where do i add the sub-procedure to the form
Any white space in the form but between:
Code:
 
 
Class Form1
 
 
Sub here...
 
End Class
#8 · 15y ago
bayley60
bayley60
ok dude for this

If GetAsyncKeyState(Keys.F7) Then
'Press the required key by using the following line. Use the following statement multiple times to stimulate multiple keys at a time. (Combination)
PressKey(Keys.A)

End If
If GetAsyncKeyState(Keys.F8) Then
'Press the required key by using the following line. Use the following statement multiple times to stimulate multiple keys at a time. (Combination)

'Prints the screen
PressKey(Keys.PrintScreen)

does the user press f8 or the printscreen button?
and what is this bit for?
'Press the required key by using the following line. Use the following statement multiple times to stimulate multiple keys at a time. (Combination)

'Prints the screen
PressKey(Keys.PrintScreen)
#9 · 15y ago
Jason
Jason
http://www.mpgh.net/forum/33-visual-...ender-dll.html

Basically sort of the same as what Xscapism just told you to do, I wrote a whole thread with a tutorial about the .DLL so you should be able to pick it up pretty easily.
#10 · 15y ago
bayley60
bayley60
thanks bt im looking 4 code not dll things bt ill try
#11 · 15y ago
Jason
Jason
Quote Originally Posted by bayley60 View Post
thanks bt im looking 4 code not dll things bt ill try
It is code, but compacted into a neat .DLL. Have you even attempted to read the thread to see what it's about?
#12 · 15y ago
bayley60
bayley60
no i have not had time just started school again after holidays
#13 · 15y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • i need help finding a hack or speedhack for combat armsBy kibbles18 in General Game Hacking
    0Last post 17y ago
  • Help me to make a Hack for Combat ArmsBy cheatmaker in Visual Basic Programming
    10Last post 17y ago
  • HELP I NEED HACKS FOR COMBAT ARMS EU SONO ITALIANOBy slafer in Combat Arms Europe Hacks
    3Last post 17y ago
  • i need hack bypass for combat arms can some one help me?By haven377 in Combat Arms Hacks & Cheats
    12Last post 17y ago
  • HELP ME NED AIMBOT FOR COMBAT ARMSBy alex11598 in General Game Hacking
    2Last post 16y ago

Tags for this Thread

#combat arms#hotkeys