Jump to content

Error after Compile Script...


Recommended Posts

  • Developers

WTF IS THAT ?

I think the last time I replied to you I asked for some comprehensive sentenses when explaining your issues or asking questions.

It seem I wasn't clear so let me try again:

What the hell were you thinking when posting this thread?

You have an error which you capture as a full screen shot in stead of showing us your script that has the error and asking a NORMAL question.

Now try again and this time think before posting!

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

#RequireAdmin
#include 
#include 
AutoItSetOption("SendKeyDelay", 0)
Global $aRecords, $bRecords
Local $Patch = @ScriptDir & "\userlists.tmp", $Patch2 = @UserProfileDir & "\AppData\Local\PunkBuster\BFP4F\pb", $Patch3 = @ScriptDir & "\BLOCKFILES.tmp", $Patch4 = @UserProfileDir & "\AppData\Local\PunkBuster\BFP4F\pb"
Local $Title = "Checking..."


If Not FileExists(@ScriptDir & "\userlists.tmp") Then
RunWait("cmd.exe /c " & "wmic USERACCOUNT get Name >"&@ScriptDir&"\userlists.tmp",@ScriptDir,@SW_HIDE) ; Wypisuje surowe nazwy userów do pliku userlist.tmp na pulpicie
_checkallgood()
Else
_checkallgood()
EndIf


Func _checkallgood()
SplashTextOn($Title, "Preparing to block, please wait...", 300, 50, -1, -1, 33, "Comic Sans MS", 10)
Run("cmd.exe")
If ProcessExists("cmd.exe") Then
ProcessClose("cmd.exe")
Sleep(2000)
SplashOff()
_block()
Else
SplashOff()
MsgBox(16, "Error", "Can't run Command Prompt, try to Execute program as Admin!")
Exit
EndIf
EndFunc

Func _block()
;#####PLIKI DO ZABLOKOWANIA############PLIKI DO ZABLOKOWANIA############PLIKI DO ZABLOKOWANIA#######
;#####PLIKI DO ZABLOKOWANIA############PLIKI DO ZABLOKOWANIA############PLIKI DO ZABLOKOWANIA#######
If FileExists($Patch3) Then
_block2()
Else
$avUser = _FileListToArray($Patch4)
$sFile = $Patch3
$hFile = FileOpen($sFile, 1)
_FileWriteFromArray($hFile, $avUser, 1)
FileClose($hFile)
_block2()
EndIf
endfunc


Func _block2()
; MsgBox(64, "Warrning !", "Don't do nothing if
;#####ZAMIENIA PUSTE ZNAKI W NIC XD ############ZAMIENIA PUSTE ZNAKI W NIC XD ##################
;#####ZAMIENIA PUSTE ZNAKI W NIC XD ############ZAMIENIA PUSTE ZNAKI W NIC XD ##################
$Czytaj = FileRead($Patch)
$Zamien = StringReplace($Czytaj, " ", "")
$Otworz = FileOpen($Patch, 2)
FileWrite($Patch, $Zamien)
_FileWriteToLine($Patch, 1, "SYSTEM", 1)
_FileWriteToLine($Patch, 1, "Administratorzy", 0)
FileClose($Otworz)
;#####BLOKUJE PODANE PLIKI NA KAŻDEGO USERA KTÓRY JEST NA KOMPIE##############BLOKUJE PODANE PLIKI NA KAŻDEGO USERA KTÓRY JEST NA KOMPIE#########
;#####BLOKUJE PODANE PLIKI NA KAŻDEGO USERA KTÓRY JEST NA KOMPIE##############BLOKUJE PODANE PLIKI NA KAŻDEGO USERA KTÓRY JEST NA KOMPIE#########
$Users = FileOpen($Patch)
$Blokuj = FileOpen($Patch2)
;$Czytaj2 = _FileReadToArray($Patch, $aRecords) ; READS USERNAMES TO ARRAY
$Czytaj3 = _FileReadToArray($Patch3, $bRecords) ; READS THIS FILENAMES TO ARRAY
$Czytaj2 = _FileReadToArray($Patch, $aRecords)
Run("cmd.exe")
Sleep(500)
For $z = 1 to $aRecords[0]
For $x = 1 to $bRecords[0]
Send("cacls " & $Patch2 & "\" & $bRecords[$x] & " /E /P " & $aRecords[$z]& ":R" )
Send("{ENTER}")
Next
Next


FileClose($Users)
FileClose($Blokuj)
FileDelete($Patch)
FileDelete($Patch3)
ProcessClose("cmd.exe")
Return()
EndFunc

Here....

Script crashes after it do everything...

Edited by Melba23
Restored post after OP deleted it
Link to comment
Share on other sites

That and its in a PBBbypass folder named gg.exe

and there it is - a script to avoid PunkBuster...

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

  • Developers

Here....

Script crashes after it do everything...

Make sure you run au3check on your scripts since there is clearly an error there.

Install the full SciTE4AutoIt3 to help you with that.

"...test\test.au3"(82,10) : error: syntax error
Return ()
~~~~~~~~^

Other that that:Topic locked for obvious reasons.

Read the forum rules.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Moderators

Keniger,

PunkBusterBFP4F

Googling this brings up lots of hits for "Battlefield Play4Free - PunkBuster Online Countermeasures" - would you care to comment on what you are doing with thsi script? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...