Jump to content

my quake3 script. help?


Recommended Posts

I have no clue why this doesn't work. I planned on timing myself on how quick I can beat Quake3 building my own little "tool". I was able to make the models in the game a solid color ( 0x00FF00 ). I used the window info to find out this information. I want this to work like such as..

-Shoots at computer when crosshair goes over him.

When I enter the tier I don't even shoot...I thought I was going to get it on my first try because I read a lot of helpmefiles and what not...well, here it is. Sorry for the messy code.

-

#include <GUIConstantsEx.au3>



WinWaitActive ("Quake 3: Arena")

Global $Paused
Global $green;--- Global variables


HotKeySet ("{right}", "terminate")
hotkeyset("{DOWN}", "ON")
HotKeySet("{UP}", "TogglePause")


func ON()

While 1; Main code of the program
sleep(100)
$green = PixelSearch (16, 21, 1009, 729, 0x00FF00, 255, 40)

If @Error Then
    ToolTip('Che cazzo, tu sei stunad!"',0,0)
; The color was not found
Else
; The color was found
MouseClick('left', $green[0], $green[0], 1, 0)

EndIf



WEnd
endfunc

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch


WEnd



Func terminate(); Function to terminate the program
exit 0
EndFunc

"I think, therefore I am"[size="1"]René Descartes[/size]

Link to comment
Share on other sites

I have no clue why this doesn't work. I planned on timing myself on how quick I can beat Quake3 building my own little "tool". I was able to make the models in the game a solid color ( 0x00FF00 ). I used the window info to find out this information. I want this to work like such as..

-Shoots at computer when crosshair goes over him.

When I enter the tier I don't even shoot...I thought I was going to get it on my first try because I read a lot of helpmefiles and what not...well, here it is. Sorry for the messy code.

-

#include <GUIConstantsEx.au3>



WinWaitActive ("Quake 3: Arena")

Global $Paused
Global $green;--- Global variables


HotKeySet ("{right}", "terminate")
hotkeyset("{DOWN}", "ON")
HotKeySet("{UP}", "TogglePause")


func ON()

While 1; Main code of the program
sleep(100)
$green = PixelSearch (16, 21, 1009, 729, 0x00FF00, 255, 40)

If @Error Then
    ToolTip('Che cazzo, tu sei stunad!"',0,0)
; The color was not found
Else
; The color was found
MouseClick('left', $green[0], $green[0], 1, 0)

EndIf



WEnd
endfunc

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

EndSwitch


WEnd



Func terminate(); Function to terminate the program
exit 0
EndFunc
Most first person shooters lock the mouse position. So when the mouse moves it is almost instantly moved back. This makes these kind of scripts not work. Sorry to be the one to tell you this probably won't work after all this time... Don't take my word for it though, I may be wrong.

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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