Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/29/2012 in all areas

  1. trancexx

    MailSlot

    This way of communication between processes very much resemble to the communication we do with our mail accounts. I would guess (smartly, no doubt) that was the key factor used for naming the functions when they were created. Information about mailslots can be found on microsoft's site, link. Summary could be that datagrams are used for communication and it's one-way and asynchronous. Attached zip file contains MailSlot.au3, AutoIt's implementation of these functions. Also there would be two scripts in there MailSlot_Sender.au3 and MailSlot_Reciever.au3. Both scripts are demos of the mailslot mechanism. Start both and use former to send mails to latter. Examples are basic and should show what's this about. MailSlot.zip Available functions are alphabetically: _MailSlotCheckForNextMessage_MailSlotClose_MailSlotCreate_MailSlotGetMessageCount_MailSlotGetTimeout_MailSlotSetTimeout_MailSlotRead_MailSlotWriteedit: New attachment. _MailSlotGetTimeout() function added to MailSlot.au3.
    1 point
  2. MrCreatoR

    BlockInputEx UDF!

    Hi, This UDF originaly started in this thread, on the latest post you can find rasim's examples and my initial BlockInputEx udf example. But eventualy i improved the UDF and i thought that it would be better to place it here, in Examples forum. This UDF supports few features that built-in BlockInput() function does not. Here is a quick "features list" if you can call it like this : Block seperately mouse or keyboard input.Block specific keyboard/mouse keys/clicks. [+] Not only hex keys are supported, string keys (such as {ENTER}) is also valid.Block all keyboard/mouse keys *except* specific keys/events.Block keys by CLASS Name (see UDF documentation).Block inputs only for specific window.BlockInput does not re-enables input after pressing Ctrl+Alt+Del.Note: This UDF, same as built-in BlockInput function, can not block Ctrl+Alt+Del, however, it will not re-enable the input. Example #1 (hWindows usage): #include <BlockInputEx.au3> ;================== hWindows usage Example ================== HotKeySet("{ESC}", "_Quit") ;This will trigger an exit (on any window except the window of Notepad). Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE) WinWait("[REGEXPCLASS:Notepad.*]") $hNotepad_Wnd = WinGetHandle("[REGEXPCLASS:Notepad.*]") ControlSetText($hNotepad_Wnd, "", "", _ "Now try to input some keys in here..." & @CRLF & _ "Well, that's the idea, you can't, don't you?" & @CRLF & @CRLF & ":)") ;Here we block *All* keyboard keys for specific window (in this case the Notepad's window). _BlockInputEx(3, "", "", $hNotepad_Wnd) ;This is only for testing, so if anything go wrong, the script will exit after 10 seconds. AdlibRegister("_Quit", 10000) While 1 Sleep(100) WEnd Func _Quit() Exit EndFuncExample #2 (CLASSes usage): #include <BlockInputEx.au3> ;================== CLASSes usage Example ================== HotKeySet("{ESC}", "_Quit");This will trigger an exit ;Here we block Numeric keyboard keys, "Test" string (every char in this group), and UP / DOWN arrow keys. _BlockInputEx(3, "", "[:NUMBER:]|[Test]|{UP}|{DOWN}") ;This is only for testing, so if anything go wrong, the script will exit after 10 seconds. AdlibRegister("_Quit", 10000) While 1 Sleep(100) WEnd Func _Quit() Exit EndFuncDownload (In the archive there is 11 nice examples including the two above): BlockInputEx_UDF_1.8.zip BlockInputEx_UDF_1.6.zip _BlockInputEx_UDF_1.5.zip _BlockInputEx_UDF_1.4.zip _BlockInputEx_UDF_1.3.zip _BlockInputEx_UDF_1.2.zip _BlockInputEx_UDF_1.1.zip _BlockInputEx_UDF.zip Enjoy! ================================================================= ChangeLog:
    1 point
  3. Skype UDF v1.2 Introduction :Skype4COM represents the Skype API as objects, with :methodspropertieseventscollectionscachingSkype4COM provides an ActiveX interface to the Skype API. Develop for Skype in a familiar programming environment, such as Visual Studio or Delphi, using preferred scripting languages such as VBScript, PHP, or Javascript. Requirements : Skype 3.0+ must be installedWindows 2000, XP+ Update : Version 1.2 Fixed _Skype_ProfileGetHandle function Version 1.1 Fixed _Skype_ChatGetBookmarked function Added missing _Skype_ChatGetTopic function Version 1.0 Fixed _Skype_ChatGetAll function Version 0.9 Fixed Mute value returned by the _Skype_OnEventMute callback function Version 0.8 Error ObjEvent is set if none already set Version 0.7 Changed _Skype_GetChatActive to _Skype_GetChatAllActive Version 0.6 Added _Skype_GetCache Added _Skype_SetCache Changed Skype_Error function Minor bugs fixed Version 0.5 Fixed _Skype_ChatCreate Version 0.4 Fixed _Skype_ChatGetMessages Fixed "Skype - SciTE.au3" script Version 0.3 Minor changes Updated Skype in AutoIt example Version 0.2 Fixed _Skype_ChatAddMembers Various bugs fixed _Functions list : (346) Example GUI : Notes : Skype's access control must be accepted manually :After running the example script, click on the "Allow access" button of SkypeThis version is NOT complete If you are running on a 64 bits OS, add this line to your script : #AutoIt3Wrapper_UseX64=n Attachments :Pack (UDF + ExampleGUI)Version 1.2 : Skype-UDF_1.0.0.2.zip Examples : (put them into the "Example folder")-Answers to incomming calls even if you are already in a call : Auto Answer.au3-Shows how to use the OnMute event : Mute Event.au3 Happy coding
    1 point
  4. Hi! Very simple plugin to grab frames from any kind of video (anything your computer can play to be specific) using the DirectShow api. I implemented this in a plugin because it sucks to work with any of the DirectX api's in autoit. The plugin only exports this function: GetVideoFrame($filename,$time[,$width,$height]) But who knows? Maybe there will be more. Example shows how to use it. AU3_FrameGrabber.dll example.au3 Enjoy!
    1 point
  5. Example#include-once #include <Array.au3> $sString = "London sdjksdjkfhdskfhsjkfhdsjkf Paris kldfjkldsjfdslkfjsldfkj New York sdjkfhdsjkfhdsjkfdshfksh London blah blah blah ..." RegEx ( $sString ) MsgBox( 64, 'Replaced', $sString ) Func RegEx( ByRef $sString ) $aRet = StringRegExp ( $sString, '(London|Paris|New York)', 3 ) $sString = _ArrayToString( $aRet , ' ' ) EndFunc
    1 point
  6. Clark

    A little elegance required

    Thankyou people czardas had the best answer for me. Here is the code I used: for $index = 1 to 4 $text = 2^($index-1) if BitAND($bResult[9],$text) = $text then GUICtrlSetState($cbImp[$index],$GUI_CHECKED) Next
    1 point
  7. It appears the limit is 4 digits per segment. Source: http://msdn.microsoft.com/en-us/library/zykd2wy5(v=vs.80).aspx
    1 point
  8. johnmcloud

    Disabling a Tab sheet

    You can't disable, but you can avoid from clicking #include <GUIConstantsEx.au3> Global $afTabSheets[3] = [True, False, False] $Gui = GUICreate("Tab",450, 300) $Tab1 = GUICtrlCreateTab(20, 24, 425, 201) $TabSheet1 = GUICtrlCreateTabItem("Tab1") $TabSheet2 = GUICtrlCreateTabItem("Tab2") $TabSheet3 = GUICtrlCreateTabItem("Tab3") GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $Tab1 If $afTabSheets[GUICtrlRead($Tab1)] = False Then _Lock_Tab() EndIf EndSwitch WEnd Func _Lock_Tab() For $i = 0 To 3 If $afTabSheets[$i] = True Then GUICtrlSetState($TabSheet1 + $i, $GUI_SHOW) Return EndIf Next EndFunc
    1 point
  9. alesyt0h, Leaving this thread unlocked was done deliberately to see your reaction. Alas your post makes it quite clear that you do not accept the rules we ask you to follow as a memeber of this forum. As a result you can read the rules carefully over the next 4 days when you will be unable to post so that you understand them fully. If you decide to continue posting here after that time, make sure you follow them rigidly. M23
    1 point
  10. alesyt0h, be careful! You are new on this forum but with this attitude your stay here might be short. This is no democracy. The Mods set up the rules and we as users have to do our best to follow them. Follow them or leave.
    1 point
×
×
  • Create New...