Jump to content

Leaderboard

Popular Content

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

  1. Function Reference _GUIRegisterMsgEx.au3 Register a user defined function for a known Windows Message ID (WM_MSG) to an individual ctrl using Call Back! Sintax: _GUICtrlMsg_Register( controlID, MsgID, "Function" ) _GUICtrlMsg_UnRegister( hWnd [, MsgID ]) Supports: ; AutoIt GUI controls to register message! Downloads: Version: 0.9b _GUIRegisterMsgEx_(RedirectLink).html Note: The functions have new parameters!, see fixes below! You can use this UDF in controls that consume internally specific Windows Message ID that we could not register with the GUIRegisterMsg function, eg: WM_CHAR, WM_KEYDOWN, WM_KEYUP are consumed by an edit control. Usage example is included! Sample: Fixes: I.e: Func _MyRegisterFunc( $hCtrlID, $iMsgID, $WParam, $LParam ) ;... EndFunc The 4 parameters have the following values: hCtrlID, The control handle in which the message is registered.iMsg, The Windows message ID.wParam, The first message parameter as hex value.lParam, The second message parameter as hex value. (Position. Parameter, Meaning) 0.9.0812.2600b09/09/2012 -> First release!I like to use UDFs, although I think this will not be very useful, I hope someone will find useful! Regards, João Carlos.
    1 point
  2. Xandy

    SDL UDF

    If you need webspace I can host you now through Oct 2014. Let me know if you are interested, I'll setup an FTP account for you on my site. I love SDL and AutoIt I am in the process of converting my previous SDL C++ programs to your SDL_UDF, and I'm picking up ?do=embed' frameborder='0' data-embedContent> aswell.. It's going very well, I want to learn AutoIt structs better. Quick project drawing animated tank objects on the desktop. (It will become a action multiplayer, joystick desktop fighter) http://www.youtube.com/watch?v=t_n6INq_Yzw&feature=youtu.be (source zip) Please note that the source still contains the NOT CLOSING properly bug. I use CTRL+BREAK, wait 3-5seconds and press CTRL+BREAK again to close it. My prog is just an example of how SDL_UDF and ?do=embed' frameborder='0' data-embedContent> are totally awesome. { Player controls, keyboard Tank_1:up, down, left, right, DRILL: pgdown, NITRO: end, JUMP: spacebar Tank_2:w, s, a, d, DRILL: pgup, NITRO: home, JUMP: b } use a Nitro to pickup speed fast In C++ SDL It can say surface->w, surface->h. and rect.x, rect.y, rect.w, rect.h (good, clean) In AutoIt I say $struct= DllStructCreate($tagSDL_SURFACE, $surface) $surfw= DllStructGetData($Struct, "w") $surfh= DllStructGetData($Struct, "h") $struct= 0(bad, clutter and I'm not going to function call each time)If the struct method I used above is the only way to access members in AutoIt, then I will make an updater function to update script variables to reflect the width and height of surfaces. Just looking for a clean way to access the members and a clean way to set the rect without a _SDL_Rect_Create() I'm asking if you know a better way to access and change members of a struct in AutoIt. I feel like I must not know what I'm doing. edit: within 6 hours I solved my issue; I almost died. DllStructGetData() to access members. Thank you AdmiralAlkex for bringing SDL to AutoIt and for Joe Zimmerman I only tested the function on the linked case. It returned happyness.
    1 point
  3. MrCreatoR

    GUISpoiler UDF

    The main idea for this UDF came from by Melba23. Example: #include <GUIConstantsEx.au3> #include <GUIButton.au3> #include "GUISpoiler.au3" $hGUI = GUICreate('GUISpoiler Example', 400, 80) $iSpoiler = _GUICtrlSpoiler_Create(20, 20, '', '', 0) GUICtrlCreateLabel('Label', 20, 20, 50, 20) $hButton = _GUICtrlButton_Create($hGUI, 'External', 20, 40, 60, 20, $BS_SPLITBUTTON) _GUICtrlSpoiler_AddExternalControl($iSpoiler, $hButton) _GUICtrlSpoiler_Close($iSpoiler) $iSpoiler2 = _GUICtrlSpoiler_Create(120, 20, '', '', 4) GUICtrlCreateLabel('Simple', 10, 20, 50, 20) GUICtrlCreateLabel('Group', 20, 40, 50, 20) GUICtrlCreateLabel('Style', 40, 60, 70, 20) _GUICtrlSpoiler_Close($iSpoiler2) $iSpoiler3 = _GUICtrlSpoiler_Create(250, 20, 'Show', 'Hide', 6) GUICtrlCreateLabel('Textual push button', 60, 80, 100, 20) _GUICtrlSpoiler_Close($iSpoiler3) GUISetState(@SW_SHOW, $hGUI) While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd This is still work in progress, UDF needs more testing and polishing. Download: GUISpoiler.zip (Counter: )
    1 point
  4. hey guyz, I am new in this community , As My query is i have created a window which will be having Combo Box which will be activated when a checkbox is checked , then i have already listed the files with extension from a folder view using _GUICtrlComboBox_BeginUpdate($VDID_1) _GUICtrlComboBox_AddDir($VDID_1, $dir1 & "\*.SCP") _GUICtrlComboBox_AddDir($VDID_1, $dir2 & "\*.SCP") _GUICtrlComboBox_AddDir($VDID_1, $dir3 & "\*.SCP") _GUICtrlComboBox_EndUpdate($VDID_1) after that , i want that when i select the file the file location should be copied in variable say some $xyz , let me clear this like this teher are 3 more checkboxes and Combo Box .... so i want all those 4 selected full file location to be copied. and can be read in next process of executing statement. Thanks & Regards, G6
    1 point
×
×
  • Create New...