Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 13:26

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

Advertisement



Pc locker

Discussion on Pc locker within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Wink Pc locker

Hi everyone , i decided to share some little home-made creation.
This is a pc locker.
HTML Code:
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <WindowsConstants.au3>
#include <Misc.au3> 
#include <ScreenCapture.au3>
Opt ("GuicloseOnEsc",1)
$SW = @DesktopWidth
$SH = @DesktopHeight
MsgBox (0,"Slider","Combination is '100,'20','70'")


_ScreenCapture_Capture(@TempDir & "\Temposlide.jpg")
$Form1 = GUICreate("The locker.", 615, 104, -1, -1,$WS_POPUP, $WS_EX_TOPMOST)
$1 = GUICtrlCreateSlider(0, 0, 612, 31, $GUI_SS_DEFAULT_SLIDER)
GUICtrlSetCursor (-1, 0)
$2 = GUICtrlCreateSlider(0, 35, 612, 31, $GUI_SS_DEFAULT_SLIDER)
GUICtrlSetCursor (-1, 0)
$3 = GUICtrlCreateSlider(0, 70, 612, 31,$GUI_SS_DEFAULT_SLIDER)
GUICtrlSetCursor (-1, 0)
GUISetState(@SW_SHOW)
$Pic = GUICreate("TheLocker2",$SW,$SH,0,0,$WS_POPUP,$WS_EX_TOPMOST)
GUICtrlCreatePic(@Tempdir & "\TempoSlide.jpg", 0 , 0 , $SW, $SH)
GUISetState(@SW_SHOW)
WinActivate ($Form1)
While 1
   $Msg = GUIGetMsg()
	  Select
		 Case $Msg =  $GUI_EVENT_CLOSE
			ExitLoop
		 EndSelect
	  If _Ispressed ("11") And _IsPressed ("12") And _IsPressed ("2E")  Then
		 _Taskkill()
	  EndIf
	  If _Ispressed ("12") Then
		 Send ("{ALT}")
	  EndIf
	  _KeyPass()
WEnd

Func _KeyPass()
If _IsPressed ("0D") Then
   $4 = GUICtrlRead ($1)
   $5 = GUICtrlRead ($2) 
   $6 = GUICtrlRead ($3)
   $Combo = $4 & $5 & $6
   If $Combo = "1002070" 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
I know i could do it in a faster and easyer way , i just figured it now that i'm posting it.
kimboy600 is offline  
Thanks
1 User
Old 08/26/2013, 12:46   #2
 
CantShutMyMouth's Avatar
 
elite*gold: 0
Join Date: Apr 2012
Posts: 380
Received Thanks: 163
Good ideea for a script like this. ! Good Job. Btw, i improoved the security a little bit:



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.
CantShutMyMouth is offline  
Old 08/26/2013, 13:12   #3
 
elite*gold: 0
Join Date: Apr 2011
Posts: 65
Received Thanks: 12
Quote:
Originally Posted by CantShutMyMouth View Post
Good ideea for a script like this. ! Good Job. Btw, i improoved the security a little bit:



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.
kimboy600 is offline  
Reply


Similar Threads Similar Threads
[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...



All times are GMT +1. The time now is 13:26.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.