Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



can someone please look why hotkey is not working.

Discussion on can someone please look why hotkey is not working. within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
Smile can someone please look why hotkey is not working.

here is the script autoit debugger does not show that func _lookpix() works.
and when testing it does not look for pixel ....


Code:
#include <GDIPlus.au3>
#include <WinApi.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{F10}", "_Toggle")
HotKeySet("{q}", "_lookpix")
$Size1 = 760
$Size2 = 530
$Color = 0xFFFFAA00
$Thick = 3
$Toggle = False



#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Aimbot", $Size1, $Size2, -1, -1, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_TOPMOST))
$Pic1 = GUICtrlCreatePic("bg.gif", 0, 0, $Size1, $Size2)
_WinAPI_SetLayeredWindowAttributes($Form1, 0x00FF00)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###

_GDIPlus_Startup()
$Handle = _GDIPlus_GraphicsCreateFromHWND($Form1)
$Pencil = _GDIPlus_PenCreate($Color, $Thick)
_GDIPlus_GraphicsDrawRect($Handle, 5, 5, $Size1 - 10, $Size2 - 10, $Pencil)


While 1
	If $Toggle Then
		ToolTip("Move your mouse (f10 to end)")
		$pos = MouseGetPos()
		WinMove("Aimbot", "", $pos[0], $pos[1])
	Else
		ToolTip("")
		Sleep(200)
	EndIf
WEnd


_GDIPlus_Shutdown()



Func _Toggle()
	$Toggle = Not $Toggle
EndFunc   ;==>_Toggle

HotKeySet("{ESC}", "_Exit")

Func _Exit()
	Exit
EndFunc   ;==>_Exit


Func _lookpix()
	$Bpos = WinGetPos("Aimbot")
	$Variable = PixelSearch($Bpos[0], $Bpos[1], $Bpos[2], $Bpos[3], 0x3B0B06)
	If IsArray($Variable) = True Then
		MouseClick("primary", $Variable[0], $Variable[1], 2, 1)
		Sleep(80)
		Send("{LCTRL}")
	EndIf
	Return
	If IsArray($Variable) = False Then
		$Variable2 = PixelSearch($Bpos[0], $Bpos[1], $Bpos[2], $Bpos[3], 0xE79186)
	EndIf
	If IsArray($Variable2) = True Then
		MouseClick("primary", $Variable2[0], $Variable2[1], 2, 1)
		Sleep(80)
		Send("{LCTRL}")
	EndIf
	Return
EndFunc
#SOLVED
sander2828 is offline  
Old 06/25/2013, 12:38   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
-PixelSearch($Bpos[0], $Bpos[1], $Bpos[0]+$Bpos[2], $Bpos[1]+$Bpos[3])
-delete "Return"
-not sure if MouseClick("primary") works... ( use "left" if not)

€and maby
HotKeySet("{q}" -> HotKeySet("q"
omer36 is offline  
Old 06/25/2013, 16:12   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 278
Received Thanks: 67
ty for the answer it is totaly right and mouse primary is working. if i use left ppl with reverted mouse can't use it
sander2828 is offline  
Old 06/28/2013, 14:34   #4


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
#closed
Lawliet is offline  
Closed Thread


Similar Threads Similar Threads
CF NA Public Hotkey version 3.0 [3/21/11] *WORKING*
03/20/2011 - CrossFire Hacks, Bots, Cheats & Exploits - 8 Replies
Screen Shots: Features/Hotkeys: Virus Scan:
Public Hotkey version 2.0 [3/16/11] *WORKING* 1 hit kill, no nade damage, fly, more!
03/18/2011 - CrossFire Hacks, Bots, Cheats & Exploits - 23 Replies
Screen Shots: http://i54.tinypic.com/2mev8mv.png http://i53.tinypic.com/2qbamwm.png http://i56.tinypic.com/29xf7mc.png Features/Hotkeys: F5: One Hit Kill F6: Instant Reload F7: No Fall Damage
Davids Hack ! Fully Working ! 100 % ! Hotkey Hack !
08/27/2010 - Combat Arms Hacks, Bots, Cheats & Exploits - 265 Replies
THIS HACK IS FOR COMBAT ARMS EU ! This Hack is made by David.97 !!! This Hack is made by David.97 !!! This Hack is made by David.97 !!! This Hack is made by David.97 !!! This Hack is made by David.97 !!! This Hack is made by David.97 !!! This Hack is made by David.97 !!!



All times are GMT +2. The time now is 16:40.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.