Jump to content

Search the Community

Showing results for tags 'securitycode'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi. I've been developing a Security Camera Toolkit I want it to play a sound when movement is detected, and when NoCameraMovement function is called, save mouse position, and move the mouse constantly back to his main position so camera doesnt move ("Because it constantly moves left/right to check the area, but the only way to stop the movement is moving your mouse constantly to the center") and both of the functions are not working What's wrong with my script? #include <GUIConstantsEx.au3> HotKeySet("{f1}", "_Check_For_Movement") HotKeySet("{v}", "NoCameraMovement") HotKeySet("{f2}", "_sleep") Opt('MustDeclareVars', 1) Local $_MS_POS = 0 MainGUI() Func MainGUI() Local $Button1, $Button2, $msg GUICreate("Sec_Camera_Tool") Opt("GUICoordMode", 2) $Button1 = GUICtrlCreateButton("MS_Check", 10, 30, 100) $Button2 = GUICtrlCreateButton("RC_Tool", 0, -1) GUISetState() ; Run the GUI until the window is closed While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button1 call ("_Check_For_Movement") Case $msg = $Button2 call ("NoCameraMovement") EndSelect WEnd EndFunc Func _Check_For_Movement() While 1 Local $MovementCheck = PixelChecksum ( 0, 0, 1279, 1023, 1) $MovementCheck = PixelChecksum ( 0, 0, 1279, 1023, 1) If IsArray($MovementCheck) = True Then SoundPlay("beep.mp3") EndIf WEnd EndFunc Func NoCameraMovement() while 1 $_MS_POS = MouseGetPos() MouseMove($_MS_POS[0], $_MS_POS[1], 5) WEnd EndFunc func _sleep() while 1 sleep(1000) WEnd EndFunc Any help is appreciated
×
×
  • Create New...