Go Back   Steam Users' Forums > Steam Discussions > VAC Discussion

Reply
 
Thread Tools Display Modes
Old 06-03-2012, 01:32 AM   #1
Da9L
 
Join Date: Sep 2006
Reputation: 59
Posts: 916
Will this piece of code trigger a VAC ban?

Hello

Im coding a simple program to minimize one of my games autimaticly. It works by grabbing the exes window handler and then minimize it .. heres the code:

Code:
        If Minimized.CheckState = CheckState.Checked Then
            Dim MW3 As New Process
            Try
                RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "* - Starting Modern Warfare 3"
                MW3.StartInfo.FileName = (My.Settings.path_mw3)
                MW3.StartInfo.UseShellExecute = False
                MW3.StartInfo.RedirectStandardInput = False
                MW3.StartInfo.RedirectStandardOutput = False
                MW3.StartInfo.RedirectStandardError = True
                MW3.Start()
                MW3.WaitForInputIdle(-1)
                Dim tmp_hWnd As IntPtr = MW3.MainWindowHandle
                For i As Integer = 1 To 10
                    tmp_hWnd = MW3.MainWindowHandle
                    If Not tmp_hWnd.Equals(IntPtr.Zero) Then Exit For
                    Threading.Thread.Sleep(300)
                Next
                If Not tmp_hWnd.Equals(IntPtr.Zero) Then
                    ShowWindow(tmp_hWnd, ShowWindowCommand.Minimize)
                    'ShowWindow(tmp_hWnd, ShowWindowCommand.Hide)
                    MW3_hWnd = tmp_hWnd
                Else
                    RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "! - Error - Could not get Window handle for MW3"
                End If

            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        Else
        End If
Obviously im not sure that this is working or not, since i cant test before i know if it would trigger a VAC ban or not ..

Can anyone here assist?

Last edited by Da9L: 06-03-2012 at 01:36 AM. Reason: Notification setup
Da9L is offline  
Reply With Quote
Old 06-03-2012, 01:37 AM   #2
DoYouCareBro
 
Join Date: Mar 2012
Reputation: 96
Posts: 352
Probably not. Since your program doesn't have any of cheating functions, you are safe. But use at your own risk of course.
DoYouCareBro is offline   Reply With Quote
Old 06-03-2012, 03:53 AM   #3
durrchet
 
Join Date: Mar 2012
Reputation: 204
Posts: 895
It will not. It has nothing to do with memmory manipulation and even if it was it still needs to be in the database of known cheats.

Also visual basic. Wat : p
durrchet is offline   Reply With Quote
Old 06-03-2012, 03:54 AM   #4
Da9L
 
Join Date: Sep 2006
Reputation: 59
Posts: 916
Quote:
Originally Posted by durrchet View Post
It will not. It has nothing to do with memmory manipulation and even if it was it still needs to be in the database of known cheats.

Also visual basic. Wat : p
Visual BASIC :P its my first time using any programming tool, so please give me a break
Da9L is offline   Reply With Quote
Old 06-03-2012, 10:22 AM   #5
NabsterHax
 
 
 
Join Date: Aug 2008
Reputation: 336
Posts: 1,971
You will get no official word from Valve, but I think you should be safe using this. AFAIK, VAC only bans for known cheats, and there are plenty of tools out there that hook into game processes without triggering VAC.

On the other hand, it looks like you're trying to do this with MW3, which i have no experience with.
NabsterHax is offline   Reply With Quote
Old 06-08-2012, 12:01 PM   #6
bha2597
 
 
 
Join Date: Aug 2011
Reputation: 2
Posts: 325
Ask support. But use at your own risk
bha2597 is offline   Reply With Quote
Old 06-08-2012, 01:34 PM   #7
NabsterHax
 
 
 
Join Date: Aug 2008
Reputation: 336
Posts: 1,971
Quote:
Originally Posted by bha2597 View Post
Ask support. But use at your own risk
Don't ask support. All they will tell you is that they cannot provide VAC information on third party software and you must use it at your own risk. Waste of a ticket that someone who genuinely has a support problem that needs answering.
NabsterHax is offline   Reply With Quote
Old 06-08-2012, 01:36 PM   #8
Custom333
 
 
 
Join Date: Dec 2010
Reputation: 626
Posts: 3,673
Even opening the console in MW3 is ban-able, don't risk it.
Custom333 is offline   Reply With Quote
Old 06-10-2012, 10:50 AM   #9
Stryker7990
 
 
 
Join Date: Jan 2010
Reputation: 17
Posts: 47
I would'nt use it, it looks that you want to change how MW3 starts up, that would be classed as a Ban m8.
Stryker7990 is offline   Reply With Quote
Old 06-10-2012, 02:45 PM   #10
azzonie
 
Join Date: Dec 2003
Reputation: 387
Posts: 3,542
It looks safe to me. I think it would be easier and safer to use Autoit for something like this though.
azzonie is offline   Reply With Quote
Old 06-11-2012, 12:12 AM   #11
CTRL ALT DEL !
 
 
 
Join Date: Jan 2011
Reputation: 2431
Posts: 3,413
I would be really surprised if it caused a ban, isn't there a startup parameter you could use within Steam to get the game windowed?
CTRL ALT DEL ! is offline   Reply With Quote
Old 06-11-2012, 02:31 AM   #12
Cryzbl
 
Join Date: Jul 2008
Reputation: 537
Posts: 1,686
Quote:
Originally Posted by Custom333 View Post
Even opening the console in MW3 is ban-able, don't risk it.
Enabling the console itself isn't VAC ban-able/detectable (well, depends on how you achieve it, but it should be possible without triggering VAC at all).

The way VAC catches you is to detect the program that performs the task. Meaning you can write your own console enabler, not share it with anyone and it'll never get you banned.
Cryzbl is offline   Reply With Quote
Old 06-11-2012, 09:15 AM   #13
Heisterburg
 
Join Date: Aug 2011
Reputation: 166
Posts: 1,751
I doubt you will get banned, as I cannot imagine how Valve could get this code and add it to their database.

However, I believe there is a launch option for windowed mode for Steam games, and that would be completely risk freel, so I would reccomend looking into that.
Heisterburg is offline   Reply With Quote
Old 06-12-2012, 02:40 AM   #14
GTX2GvO
 
 
 
Join Date: Jul 2011
Reputation: 240
Posts: 597
How about you try your code on a single player NON-VAC secured game first for functionality testing?

That way you can determine IF it would work.

Finding out if something is VAC ban able can only be confirmed if it ends up banning you.
(You're not likely to get any definite answer otherwise)
GTX2GvO is offline   Reply With Quote
Old 06-13-2012, 03:09 PM   #15
Lostie
 
Join Date: Apr 2004
Reputation: 40
Posts: 348
Lightbulb

It is 100% safe, because all you're doing is starting a process in exactly the same way that windows explorer does, and then platform invoking the ShowWindow() API with SW_MINIMIZE. Nothing even remotely dodgy about that - it's safe and you need not worry. I made a similar program to you many years ago although it went a bit further - it bound global hotkeys to SetDeviceGammaRamp() in order to adjust the screen gamma (brightness) when I pressed PGUP and PGDN. I used this when playing counterstrike due to a dodgy CRT monitor that made dark areas too dark; one keypress and I could see again

Don't knock the guy for using VB, this is VB.NET not VB6 which is just as powerful as any other language! Language snobbery is sooo 1990's Anyway he could easily convert his code to C# if he wanted using an online converter like this or this.
The learning of any programming language should be encouraged, so if you get stuck and need any help with your code then feel free to PM me and I'll do my best (time allowing).
Lostie is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Discussions > VAC Discussion


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -7. The time now is 02:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.