basel1998 Posted September 7, 2012 Share Posted September 7, 2012 how to check if bloutooth mac Address in range? Link to comment Share on other sites More sharing options...
water Posted September 7, 2012 Share Posted September 7, 2012 Welcome to AutoIt and the forum! What have you tried so far? Can you post the code? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
basel1998 Posted September 7, 2012 Author Share Posted September 7, 2012 #RequireAdmin #NoTrayIcon if $CmdLine[1] = "/wait" then $wait = $CmdLine[1+1] elseif $CmdLine[1+1+1] = "/mac" then $mac = $CmdLine[1+1+1+1] elseif $CmdLine[1+1+1+1+1] = "/log" then $log = $CmdLine[1+1+1+1+1+1] endif if $mac then sleep $wait else msgbox(0+64,"Information","Windows will lock after "&$wait,$wait-1) Run(@WindowsDir & "\system32\rundll32.exe user32.dll, LockWorkStation", "", @SW_HIDE) if $log = "1" then Local $file = FileOpen("log.txt", 1) FileWrite($file, "Windows locked at "&@SEC&":"&@MIN&":"&@HOUR&" "&@MDAY&"/"&@MON&"/"&@YEAR) FileWrite($file, @CRLF) FileClose($file) endif endif Link to comment Share on other sites More sharing options...
basel1998 Posted September 7, 2012 Author Share Posted September 7, 2012 i also tried#RequireAdmin#NoTrayIconif $CmdLine[1] = "/wait" thenConst $wait = $CmdLine[1+1]elseif $CmdLine[1+1+1] = "/mac" thenConst $mac = $CmdLine[1+1+1+1]elseif $CmdLine[1+1+1+1+1] = "/log" thenConst $log = $CmdLine[1+1+1+1+1+1]endifif $mac thensleep $waitelsemsgbox(0+64,"Information","Windows will lock after "&$wait,$wait-1)Run(@WindowsDir & "\system32\rundll32.exe user32.dll, LockWorkStation", "", @SW_HIDE)if $log = "1" thenLocal $file = FileOpen("log.txt", 1)FileWrite($file, "Windows locked at "&@SEC&":"&@MIN&":"&@HOUR&" "&@MDAY&"/"&@MON&"/"&@YEAR)FileWrite($file, @CRLF)FileClose($file)endifendif Link to comment Share on other sites More sharing options...
water Posted September 7, 2012 Share Posted September 7, 2012 What does the script you posted have to do with Bluetooth? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
baselsayeh Posted September 7, 2012 Share Posted September 7, 2012 (edited) lock pc if bt device is not in range Edited September 7, 2012 by baselsayeh Link to comment Share on other sites More sharing options...
water Posted September 7, 2012 Share Posted September 7, 2012 Have you tried anything to determine the MAC of the bluetooth adapter? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
baselsayeh Posted September 7, 2012 Share Posted September 7, 2012 Have you tried anything to determine the MAC of the bluetooth adapter?How to do this? Link to comment Share on other sites More sharing options...
water Posted September 7, 2012 Share Posted September 7, 2012 Haven't done it myself before but you can try WMI. Search the Example Scripts fourm for Scriptomatic and try WMI Class "Win32_NetworkAdapter" or something similar. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
stormbreaker Posted September 8, 2012 Share Posted September 8, 2012 I made a tool to find bluetooth devices in range. See my signature for more info. ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
baselsayeh Posted September 9, 2012 Share Posted September 9, 2012 (edited) thanks MKISHHave you tried anything to determine the MAC of the bluetooth adapter?now yesbut i tried searching bt devices in MKISH toolits always found!!!i want somtheng to try to Authenticate to my bt device (mobile)i found one in http://msdn.microsoft.com/en-us/library/windows/desktop/aa362770%28v=vs.85%29.aspxbut how to use it? Edited September 9, 2012 by baselsayeh Link to comment Share on other sites More sharing options...
stormbreaker Posted September 10, 2012 Share Posted September 10, 2012 Then perhaps ur device has been added as a remembered device and thats why it is always found. Remove it from this list and it will work fine. ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now