Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/10/2014 in all areas

  1. Hello everyone! As always, I'm proud to present you vPaint. It's an image editor. It uses GDI+ as its drawing library. I want to thank to all members of this forum. Without you, this app wouldn't be ever written. Thank you for everything. Download: vPaint 4 image editor
    1 point
  2. DrRobert, Look at the Ini* functions in the Help file - they cover everything you could want to do. M23
    1 point
  3. Very easy using ImageMagick, takes as little as.... $img = ObjCreate("ImageMagickObject.MagickImage.1") $img.Montage(@ScriptDir & "\Temp\*.bmp","montage.bmp") ...that takes all bmp images in scriptdirtemp and makes a montage of it. You can change size, crop, how many images you want in each row/column and much more. Read up on it here... http://www.imagemagick.org/Usage/montage/
    1 point
  4. Seminko, Then you need to create a delimited string to load the combo and add the newly created section name as the default: Case $cAdd ; Get new section name $sSection = "Section " & $iIndex ; Write to ini IniWrite($sIni, $sSection, "1" , $iIndex) ; Just for this example $iIndex += 1 ; Re-read the ini $aSections = IniReadSectionNames($sIni) ; Create a string to hold the data $sData = "" ; Loop through the returned array For $i = 1 To $aSections[0] ; Add each string with a delimiter - note we begin with a delimiter to overwrite the current data $sData &= "|" & $aSections[$i] Next ; Now load the combo and set the new section name as default GUICtrlSetData($cCombo, $sData, $sSection) Better? M23
    1 point
  5. You could also use re-execution with ShellExecute with the "runas" verb. Then use the IsAdmin function at the top of the script, with the section of code that needs to be with full admin rights. Here is a very simple example. ;Run Admin part. Put at top of script. If IsAdmin() Then MsgBox(0, "Is Admin", IsAdmin()) Exit EndIf MsgBox(0, "Is NOT Admin", IsAdmin()) ;Run with UAC Elevation If @Compiled Then ShellExecute(@AutoItExe, '', '', 'runas') Else ShellExecute(@AutoItExe, '"' & @ScriptFullPath & '"', '', 'runas') EndIf Adam
    1 point
  6. _ScreenCapture_CaptureWnd #include <ScreenCapture.au3> Example() Func Example() Local $hGUI ; Create GUI $hGUI = GUICreate("Screen Capture", 400, 300) GUISetState(@SW_SHOW) Sleep(250) ; Capture window _ScreenCapture_CaptureWnd(@MyDocumentsDir & "\GDIPlus_Image.jpg", $hGUI) ShellExecute(@MyDocumentsDir & "\GDIPlus_Image.jpg") EndFunc ;==>Example
    1 point
  7. You need two separate scripts/exes to do this, the second one should have the #RequireAdmin directive in it so that when it is run it asks for permission. You can use FileInstall to package your second script with the first one, you could also compile the second one to an A3X instead of an exe to make it smaller and run it with the first script.
    1 point
  8. Technically they are the same thing. Both are pointers to struct but one is explicitly labeled as a pointer to struct instead of just a pointer. At the business end, the pointer is just a number and works the same both ways.
    1 point
  9. search in the forum for keywords like: findbmp imagesearch bmpsearch bitblt gdi opencv exact pixelmatching: '?do=embed' frameborder='0' data-embedContent>>
    1 point
  10. To those members who reported this thread, Thanks for trying to help - but how about leaving the moderation decisions to the Mods? If one of them has already posted in a thread you can probably take it that they are happy with it. If anyone wants to take the matter further, please PM me and we can discuss it without further polluting this thread. M23
    1 point
  11. Melba23

    _ArrayAdd problem

    RTFC, Sorry, but we did warn that "THIS IS A SCRIPT BREAKING CHANGE" when we released the new Array library. We felt the added functionality was worth the inconvenience. I thought I did that in post #5. What happens in that script is exactly how the UDF is designed. I am afraid that you understood incorrectly - and this has nothing to do with 2D functionality. Did you run the first of the associated examples in the Help file - the section headed: ; Add a delimited string - each item adds new element shows exactly what happens with a "|" delimited string - as stated each item adds a new element. I do not believe that is necessary. All you need do is set the required delimiter to a non-used character (we used one of the user-defined Unicode characters in _ArrayDisplay) when you call the function - as I also demonstrated in post #5. That way your string will never be converted to multiple elements as the delimiter will never match - so a simple fix which you can simply paste in every time you call the function. I will look into the _ArraySwap code later - thanks for the heads-up. M23 Edit: Looks like I got the Help file the wrong way round for the parameter in _ArraySwap - thanks again for pointing it out.
    1 point
  12. JohnOne

    Code Scanner

    If there are many of them, just write your own _lif function.
    1 point
×
×
  • Create New...