Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/15/2015 in all areas

  1. Function Reference _GUIResourcePic.au3 Functions related to the image control in the GUI. Sintax: _GUICtrlPic_Create( FileName, Left, Top [, Width [, Height [, Style [, ExStyle ]]]]]] ) _GUICtrlPic_SetImage( controlID, FileName [, FixSize ]]) _GUICtrlPic_Delete( controlID ) _GUICtrlPic_Release( controlID ) _GUICtrlPic_SetState( controlID, state ) _GUICtrlPic_GetInfo( FileName or Control ID ) Supports: ; Images in the format: .bmp, .jpg, .png, .gif {animated} and other formats of files for resources (.exe, .dll, .ocx, .cpl...). ; For the "resources", use the "FileName" in this format: "MyFile.ext|RessourceName|ResourceType". ; It can be a URL path as well! Download: Version: 1.8.2012.2600b _GUIResourcePic_(RedirectLink).html 17.0k (Previous downloads: 140) Example_Include_HD_GIF_(RedirectLink).html 36.08k (Previous downloads: 135) Note: Added new function! I've made significant changes in the code, including the syntax of some functions! Now uses GDI+ to render the images. Example of use is included! Sample: CPU in 0,60%. http://www.youtube.com/watch?v=NZZB-G9C1Kg Direct download: _GUIResourcePic.mp4 Fixes: $GUI_GIFSTART ; If image is GIF animated, start/resume animation! $GUI_GIFSTOP ; If image is GIF animated, stop/pause animation! ;----> Style (GIS = Gif Image Styles) $GIS_ASPECTRATIOFIX ; Fix the image size based on aspect ratio. $GIS_HALFTRANSPARENCY ; The images are rendered with the window background color. This Style is default. $GIS_FULLTRANSPARENCY ; The frames are rendered in full transparency independent of the background color of the window! Note: This Style consumes more CPU because the exstyle $WS_EX_TRANSPARENT is added to each frame in real time! Not valid if the image does not have transparency! ;----> Default Style to _GUICtrlPic_Create()! $GIS_SS_DEFAULT_PIC = BitOR($GIS_HALFTRANSPARENCY, $SS_NOTIFY) ;----> ExStyle (GIS_EX = Gif Image Extended Styles) $GIS_EX_DEFAULTRENDER ; To use _GUIImageList_Draw in rendering of images, use less CPU. This ExStyle is default! $GIS_EX_CTRLSNDRENDER ; The frames is render using GUICtrlSendMsg, but consumes much more CPU!!! Note: If you use this ExStyle, only $GRP_FULLTRANSPARENCY is used for rendering images! 1.02b 09/05/2012 -> After updating the code, the images with transparency were not being shown as they should, changed code again!09/05/2012 -> Fixes in the _GUICtrlPic_SetImage() function, the measures were not being updated according to the parameter FixSiz , identified by @Belini, thank you!Regards, João Carlos.
    1 point
  2. Jos

    schedule task inetget

    Likely is your workdir not equal to the scriptdir when the exe is scheduled, so it can't find the INI. Jos
    1 point
  3. water

    Mouse X&Y Between Functions

    Both coordinates form a rectangle. I assume that X1/Y1 is the upper left corner and X2/Y2 the lower right corner. So you are looking for something like this: Global $aMousePosition Global $iLocationX1 = 200 Global $iLocationY1 = 150 Global $iLocationX2 = 300 Global $iLocationY2 = 600 While 1 $aMousePosition = MouseGetPos() If $aMousePosition[0] < $iLocationX1 Or $aMousePosition[0] > $iLocationX2 Or $aMousePosition[1] < $iLocationY1 Or $aMousePosition[1] > $iLocationY2 Then ToolTip("Mouse is out of the area. X: " & $aMousePosition[0] & ", Y: " & $aMousePosition[1]) Else ToolTip("Mouse is in the area. X: " & $aMousePosition[0] & ", Y: " & $aMousePosition[1]) EndIf Sleep(50) WEnd
    1 point
  4. wakillon

    StringFinder

    Version 1.2.3

    1,344 downloads

    StringFinder - Find String in Files.
    1 point
  5. It is already active so you can just send ALT + N for allow now and I think ALT + R for Remember. For future reference it's the letter that's underlined when you press the ALT button. cya, Bill
    1 point
  6. Neutro

    Excel Example Scripts

    Just a basic script for noobs like me #Include <Excel Rewrite.au3> $prog_excel = _Excel_Open() ;opens a new instance of the Excel software if $prog_excel == 0 then msgbox("","Error", "Unable to open MS Excel") exit endif $workbook = _Excel_BookOpen($prog_excel, "Path to file\Excel_file.xlsx") ; open an existing excel file if $workbook == 0 then msgbox("","Error", "Unable to open the specified excel file") exit endif ;read or write values $read = _Excel_RangeRead($workbook, $workbook.Activesheet, "A1", 1) ; read the content of the A1 case of the excel file _Excel_RangeWrite($workbook, $workbook.Activesheet, "TEST", "A1") ; write "TEST" in the A1 case of the excel file ; changing fonts / case styles $prog_excel.Activesheet.range("A1").Font.ColorIndex = 3 ; set font color to red $prog_excel.Activesheet.range("A1").Font.Bold = True ; set font to bold $prog_excel.Activesheet.range("A1").HorizontalAlignment = -4108 ; center text in cell ;exit Excel _Excel_Close($prog_excel) ; closes the instance of the Excel software
    1 point
×
×
  • Create New...