Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/05/2014 in all areas

  1. Hey folks, I just explored the new helpfile and found a new Keyword (dunno if its that new, but i never saw it before) called Volatile. It was made especally for CallBack and Com event functions, so I wanted to try that out. the advantage of this Keyword is, that you can run the Dll while you can do other things in autoit (AutoIt wont freeze/pause anymore while the dllcall is executed!) I made up a little example i want to share with you, the c source is compiled in MinGW, you need at least AutoIt 3.3.10.2. Hope you like it, would be interested in some comments Greetz, Spider testLibCallback.zip
    2 points
  2. PhoenixXL

    Remote Gmail (UDF)

    Remote Gmail UDF Working It uses the Google atom API to get the Summary of the mail, The Summary of the mail is enough to get a direct link or a single function with parameters Execute any Function (or Script) and get the Return Values in your E-mail Requirements Gmail (Email) Account A Remote Computer with Internet Access Representation Functions You can now use you Gmail account to use Autoit Functions in a remote computer Can execute a function through reading the email. Can Email back the return values of an executed function. The parameter can even be a variable present in the script [see Syntax] Execute a Script through Direct Link. Execute multiple scripts zipped together through Direct Link. Can Email back the PID of the running executables with the scripts. Attach any file and get it in your email. Able to send the multiple attachments zipped together. Writes all the return values in a Log file. No email is executed twice, the Message IDs are stored for this purpose. Future Updates Support single line nesting Get the attachment, to execute the script Syntax Syntax for Functions PXL<FuncName>: (<data type>)<first param part a>+(<data type>)<first param part b>|(<data type>)<secondparam>/PXL Colon[:] - Separation of Function Name with the Parameters Bar [ | ] - Separation of different parameters Plus [+] - To Concatenate Values PXL /PXL - The tags where the code is enclosed Brackets [ () ] - For specifying the type of the parameter DataTypes - Always Preceded by any parameter and are enclosed with brackets ; | (s) - String ; | (n) - Number ; | (f) - Floating Number ; | (i) - Integer ; | (b ) - Binary ; | (v) - Variable ; | (h) - Hex ; | (m) - macro ; | (w) - Handle ; | (p) - Pointer Syntax for Direct Links PXL<DirectLink>^<Type>/PXL PXL /PXL - The tags where the code is enclosed Caret [ ^ ] - To Separate the Link and the Type Type - Either Zip or au3 DirectLink WebServer Some of webservers providing Direct Links DropBox [Tested - Recommended] Herosh [Tested]* FileToLink FileDen * DirectLink from Herosh changes therefore Example 4 wont work after a while Credits CaptainClucks - Atom Feed Jos - SMTP Mailer wraithdu - Zip UDF Change Log v1.0 - First Release v1.1 - Added Script Execution with Zipping Functionality v1.2 - Fixed some Minor bugs v1.3 - Added RemoteGmail_Startup v1.4 - Fixed Compiling Issues v1.5 - Added flexibility for execution of scripts from any email. The UDF - Download The UDF is currently tested on x86 All Comments ,Queries , Feedback and Advice are welcomed... The UDF with the Examples have been compiled in the following Zip v1.5 RemoteGmail.7z Previous Downloads : 1119 Regards Phoenix XL
    1 point
  3. Have you opened the Helpfile Send() command page to see what the proper syntax is? Jos
    1 point
  4. If BrewManNH suggestion works within scite, then you might have to write a function to enumerate all windows which have been drawn on. Or simply all visible windows, and redraw them all.
    1 point
  5. mdwerne, I might do it like this... ; script requires 3.3.10+ #include <FileConstants.au3> #include <MsgBoxConstants.au3> #include <GUIConstantsEx.au3> #include <array.au3> #include <GuiComboBox.au3> #include <ComboConstants.au3> _create_test_file() Local $gui010 = GUICreate('BitLocker Key Test', 600, 200) Local $sRecoveryKey = GUICtrlCreateCombo('', 20, 20, 330, 100, $cbs_dropdownlist) _GUICtrlComboBox_SetCueBanner($sRecoveryKey, "Select a Recovery Key") GUICtrlSetData($sRecoveryKey, GetKey()) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $sRecoveryKey ConsoleWrite('Recovery key selected = ' & GUICtrlRead($sRecoveryKey) & @LF) EndSwitch WEnd Func GetKey() ; Create a constant variable in Local scope of the message to display in FileOpenDialog. Local Const $sMessage = "Select the BitLocker Key File." ; Display an open dialog to select a file. Local $sFileOpenDialog = FileOpenDialog($sMessage, @ScriptDir & "\", "Bitlocker Key File (*.txt)", $FD_FILEMUSTEXIST) If @error Then ; Display the error message. MsgBox($MB_SYSTEMMODAL, "", "No file was selected.") EndIf Local $ret = StringRegExp(FileRead($sFileOpenDialog), '(?:\d{6}-){7}\d{6}', 3), $tstr Switch @error Case 0 For $1 = 0 To UBound($ret) - 1 $tstr &= '|' & $ret[$1] Next Return $tstr Case 1 ConsoleWrite('No matches' & @LF) Exit Case 2 ConsoleWrite('Bad pattern at offset ' & @extended & @LF) Exit EndSwitch EndFunc ;==>GetKey ; ----------------------------------------------------------------------------------------------------------------------------- ; ; functions used to create test file ; ; ----------------------------------------------------------------------------------------------------------------------------- Func _create_test_file() Local $str, $FilePath = @ScriptDir & '\bitlocker.txt' For $1 = 1 To 10 For $2 = 1 To 5 $str &= (Mod($2, 2) = 0) ? _garbage() : _bitlockerpattern() Next Next FileDelete($FilePath) FileWrite($FilePath, $str) EndFunc ;==>_create_test_file Func _garbage() Local $tstr = '' For $1 = 1 To Random(1, 50, 1) $tstr &= Chr(Random(1, 256, 1)) Next Return $tstr EndFunc ;==>_garbage Func _bitlockerpattern() Local $tstr = '' For $1 = 1 To 8 For $2 = 1 To 6 $tstr &= Random(0, 9, 1) Next $tstr &= '-' Next Return $tstr EndFunc ;==>_bitlockerpattern The gui is rough and proof of concept only. I dreamed up a test file consisting of junk with valid keys interspersed throughout since you did not provide an example. kylomas
    1 point
  6. It will erase the cross, if the cross is drawn over the desktop. If you're running it from SciTE, more than likely it's being drawn over the SciTE window, and the line is clearing the wrong window. Change the _WinAPI_RedrawWindow line to the line below if running it from SciTE. _WinAPI_RedrawWindow(WinGetHandle("[class:SciTEWindow]"), 0, 0, $RDW_INVALIDATE + $RDW_ALLCHILDREN)
    1 point
  7. If you read line by line it would take time, but in this case file operations would be better rather than regular expressions . Here we go #include <Array.au3> $SourceRead = FileRead ("Test.txt") ;created by fileopendialog $aLayers = FileReadToArray("Test.txt") $aLineNumber = _ArrayFindAll($aLayers, ";Layer:", 0, 0, 0, 1) For $i = 0 To UBound($aLineNumber) - 1 ConsoleWrite($aLayers[$aLineNumber[$i]] & @TAB & "LineNo.: " & $aLineNumber[$i] + 1 & @CRLF) Next Regards
    1 point
  8. Don't guess, use something like DebugBar (or another DOM inspector) to see what it is. If you use DebugBar, use the Drag Target onto the element you want to see it's source and use the "View Source" icon in the DebugBar toolbar to see if you have frames to navigate. Dale
    1 point
×
×
  • Create New...