Jump to content

Leaderboard

Popular Content

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

  1. I'm feeling nice. #include <GUIButton.au3> #include <GUIConstantsEx.au3> #include <GUIImageList.au3> Local $hGUI = GUICreate('') GUICtrlCreateButton('Add', 10, 10, 100, 25) Local $hImageList = _GUIImageList_Create(16, 16, 5, 3) _GUIImageList_AddIcon($hImageList, 'add.ico') _GUICtrlButton_SetImageList(-1, $hImageList, 0) GUISetState(@SW_SHOW, $hGUI) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI)
    2 points
  2. JohnOne

    Encrypt Binary file

    usera, you have been a member here for over 5 years, and not once have you posted a single line of code to help yourself. I think it's about time you started.
    1 point
  3. You could have done this with StringInStr, StringLeft and StringStripWS.
    1 point
  4. Local $aArray[4] = [3] $aArray[1] = 'AutoIt Test(1.26a) (243)' ConsoleWrite(StringRegExpReplace($aArray[1], '(V+)s+(d{3})$', '1') & @CRLF) ; Desired Output: AutoIt Test(1.26a) $aArray[2] = 'Some Text(new Version) (21)' ConsoleWrite(StringRegExpReplace($aArray[2], '(V+)s+(d{2})$', '1') & @CRLF) ; Desired Output: Some Text(new Version) $aArray[3] = 'Blah Blah(Blah Blah Blah)(8)' ConsoleWrite(StringRegExpReplace($aArray[3], '(V+)(d)$', '1') & @CRLF & @CRLF) ; Desired Output: Blah Blah(Blah Blah Blah) ; This will work on all. For $i = 1 To $aArray[0] ConsoleWrite(StringRegExpReplace($aArray[$i], '(V+)s*(w*)$', '1') & @CRLF) Next
    1 point
  5. $smallIconsdll ==> ISN AutoIt StudioDatasmallIcons.dllImageList_Create ==> _GUIImageList_Create() ExtractIconEx ==> _WinAPI_ExtractIconEx() ImageList_AddIcon ==> _GUIImageList_AddIcon() DestroyIconm ==> _WinAPI_DestroyIcon() JS
    1 point
  6. Simple answer. No.
    1 point
  7. Your best bet is to look at the GUICreate functions in the help file as it's a lot easier to achieve what you want to do. My advice look at GUI management and search for $WS_EX_TOPMOST. Otherwise you can do it like this, but InputBox is very limited when you want to delve into bigger and better things >> Local $hWnd = WinGetHandle(AutoItWinGetTitle()) ; Get the handle of AutoIt's hidden window. WinSetOnTop($hWnd, '', 1) ; Set it ontop. InputBox('', '', '', '', Default, Default, Default, Default, 0, $hWnd) ; Pass $hWnd to the handle parameter.
    1 point
  8. I'd start by using the tutorials that are in the wiki to learn how to do the basics before attempting a larger script that you're not properly trained to handle.
    1 point
  9. My code is: $in = '["1230A1+4560B3B","Inspect door, install knob, replace hinge",False,$K99P2],_' $vec = StringSplit($in,",") local $vec2[ubound($vec)] $i = 0 $j = 0 $saved = "" For $i = 1 to ubound($vec)-1 . . . I have a breakpoint on for line. In Watch, $vec[1] shows as ["1230A1+4560B3B . It should be ["1230A1+4560B3B" i.e. the last character is mssing. This is also the case for $vec[4] Thank you for the Debugger! It is a signifcant advance! ...chris BTW I tried to report this problem through the Debugger, but The Fool on the Hill forum complained, inter alia, that my email address is too short.
    1 point
×
×
  • Create New...