#include <GUIConstantsEx.au3> #include <SliderConstants.au3> #include <WindowsConstants.au3> #include <Misc.au3> #include <ScreenCapture.au3> Opt ("GuicloseOnEsc",1) $SW = @DesktopWidth $SH = @DesktopHeight Opt("TrayIconHide",1) $4=InputBox("First","The First Combination .0-100") If $4<0 or $4>100 Then MsgBox(0,"ERROR","The combination is not in the 0-100 range. Closing") Exit EndIf $5=InputBox("Second","The First Combination .0-100") If $5<0 or $5>100 Then MsgBox(0,"ERROR","The combination is not in the 0-100 range. Closing") Exit EndIf $6=InputBox("Third","The Third Combination .0-100") If $6<0 or $6>100 Then MsgBox(0,"ERROR","The combination is not in the 0-100 range. Closing") Exit EndIf _ScreenCapture_Capture(@TempDir & "\Temposlide.jpg") $Pic = GUICreate("TheLocker2",$SW,$SH,0,0,$WS_POPUP,$WS_EX_TOPMOST) GUICtrlCreatePic(@Tempdir & "\TempoSlide.jpg", 0 , 0 , $SW, $SH) GUISetState(@SW_SHOW) GUISetState(@SW_ENABLE) GUISetState(@SW_LOCK)
WinActivate ($Form1) While 1 $Msg = GUIGetMsg() Select Case $Msg = $GUI_EVENT_CLOSE ExitLoop EndSelect If ProcessExists("taskmgr.exe") Then ProcessClose("taskmgr.exe") EndIf
If _Ispressed ("11") And _IsPressed ("12") And _IsPressed ("2E") Then _Taskkill() EndIf If _Ispressed ("12") Then BlockInput(1) Sleep(3000) BlockInput(0) EndIf _KeyPass() If WinActive($Pic) then WinActivate ($Form1) EndIf GUISetState(@SW_ENABLE)
WEnd
Func _KeyPass() If _IsPressed ("0D") Then If $4 = GUICtrlRead ($1) And $5 = GUICtrlRead ($2) And $6 = GUICtrlRead ($3) Then WinSetOnTop ($Form1,"",0) WinSetOnTop ($Pic,"",0) Sleep (500) MsgBox(64,"Info","Combination is right , good continuing. .",1.5) Exit Else WinSetOnTop ($Form1,"",0) WinSetOnTop ($Pic,"",0) Sleep (500) MsgBox(64,"Info","Combination wrong, retry.",1.5) WinSetOnTop ($Form1,"",1) WinSetOnTop ($Pic,"",1) EndIf Endif EndFunc Func _Taskkill() ProcessWait ("taskmgr.exe") Sleep(500) ProcessClose("taskmgr.exe") EndFunc
Now , if you have win vista/ 7 , the func taskKill wont work, so i check for task manager in the loop.
The Pic Gui si Locked, so using ALT+TAB will let it up on the screen. But the slider goes down. locking it will make it unuseable, so in the loop i check if the Active Win is Pic, and then , if yes, i activate the Form1 window.
And i hided the TrayIcon, so if you ALT+TAB to desktop, you won't be able to pause the script
I tried to block ALT+F4 also, but didn't work, i tried to BlockInput for 3 seconds if the ALT is pressed, but it doesn't work, dont know why.
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <WindowsConstants.au3>
#include <Misc.au3>
#include <ScreenCapture.au3>
Opt ("GuicloseOnEsc",1)
$SW = @DesktopWidth
$SH = @DesktopHeight
Opt("TrayIconHide",1)
$4=InputBox("First","The First Combination .0-100")
If $4<0 or $4>100 Then
MsgBox(0,"ERROR","The combination is not in the 0-100 range. Closing")
Exit
EndIf
$5=InputBox("Second","The First Combination .0-100")
If $5<0 or $5>100 Then
MsgBox(0,"ERROR","The combination is not in the 0-100 range. Closing")
Exit
EndIf
$6=InputBox("Third","The Third Combination .0-100")
If $6<0 or $6>100 Then
MsgBox(0,"ERROR","The combination is not in the 0-100 range. Closing")
Exit
EndIf
_ScreenCapture_Capture(@TempDir & "\Temposlide.jpg")
$Pic = GUICreate("TheLocker2",$SW,$SH,0,0,$WS_POPUP,$WS_EX_TOPMOST)
GUICtrlCreatePic(@Tempdir & "\TempoSlide.jpg", 0 , 0 , $SW, $SH)
GUISetState(@SW_SHOW)
GUISetState(@SW_ENABLE)
GUISetState(@SW_LOCK)
WinActivate ($Form1)
While 1
$Msg = GUIGetMsg()
Select
Case $Msg = $GUI_EVENT_CLOSE
ExitLoop
EndSelect
If ProcessExists("taskmgr.exe") Then
ProcessClose("taskmgr.exe")
EndIf
If _Ispressed ("11") And _IsPressed ("12") And _IsPressed ("2E") Then
_Taskkill()
EndIf
If _Ispressed ("12") Then
BlockInput(1)
Sleep(3000)
BlockInput(0)
EndIf
_KeyPass()
If WinActive($Pic) then
WinActivate ($Form1)
EndIf
GUISetState(@SW_ENABLE)
WEnd
Func _KeyPass()
If _IsPressed ("0D") Then
If $4 = GUICtrlRead ($1) And $5 = GUICtrlRead ($2) And $6 = GUICtrlRead ($3) Then
WinSetOnTop ($Form1,"",0)
WinSetOnTop ($Pic,"",0)
Sleep (500)
MsgBox(64,"Info","Combination is right , good continuing. .",1.5)
Exit
Else
WinSetOnTop ($Form1,"",0)
WinSetOnTop ($Pic,"",0)
Sleep (500)
MsgBox(64,"Info","Combination wrong, retry.",1.5)
WinSetOnTop ($Form1,"",1)
WinSetOnTop ($Pic,"",1)
EndIf
Endif
EndFunc
Func _Taskkill()
ProcessWait ("taskmgr.exe")
Sleep(500)
ProcessClose("taskmgr.exe")
EndFunc
Now , if you have win vista/ 7 , the func taskKill wont work, so i check for task manager in the loop.
The Pic Gui si Locked, so using ALT+TAB will let it up on the screen. But the slider goes down. locking it will make it unuseable, so in the loop i check if the Active Win is Pic, and then , if yes, i activate the Form1 window.
And i hided the TrayIcon, so if you ALT+TAB to desktop, you won't be able to pause the script
I tried to block ALT+F4 also, but didn't work, i tried to BlockInput for 3 seconds if the ALT is pressed, but it doesn't work, dont know why.
Thanks for the script, good work.
This was my testing script , in the compiled version there wasn't the TrayIcon.
[S] Personal Locker [B]VSS 06/24/2013 - Infestation Trading - 5 Replies Hallo liebe Epvp Community,
ich bin auf der Suche nach ein paar Personal Locker. Ich könnte euch aus meinem Sortiment 2 VSS Vintorez geben. Bitte keine Spaßgebote.
MfG
Just²
New Metin2 mob locker 09/23/2011 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 8 Replies Here my Realas newMob Locker!
download ; http://uploaded.to/file/ox29a1og
Have fun with it ;)
Auto-Locker 07/31/2011 - DarkOrbit - 10 Replies German:
Hey epvpers,
hab vorgestern Autoit für mich entdeckt und ein wenig herumexperimentiert und mich durch viele tuts gelesen.
Nun habe ich mal einen simplen klickbot zum Anvisieren von NPCs gebastelt.
Bei mir funktioniert er bislang prima ;-).
Hier mal ne kleine Beschreibung:
Nach dem Start könnt ihr Hotkeys auswählen, die ihr zum Anvisieren, bzw. zum Beenden des Bots benutzen wollt. Außerdem müsst ihr mit Hilfe von den eingebauten Hotkeys F1 und F2 die obere linke Ecke und die...