Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/18/2016 in all areas

  1. argumentum, In my SciTE Help file it says: #AutoIt3Wrapper_Res_Icon_Add= ; Filename[,ResNumber[,LanguageCode]] of ICO to be added. ; Add extra ICO files to the resources ; Use full path of the ico files to be added ; ResNumber is a numeric value used to access the icon: TraySetIcon(@ScriptFullPath, ResNumber) ; If no ResNumber is specified, the added icons are numbered from 201 up So it already explains that when you use a specific ResNumber that is used to access the icon. M23
    1 point
  2. @Jos I think you post old history log ? Or I'm blind ?
    1 point
  3. Melba23

    Help GUICtrlRead

    232showtime, You need to read the input after the button has been pressed - at the moment you are doing so as it is created, when it will always be empty. M23
    1 point
  4. water

    Help GUICtrlRead

    Should be: #include <GUIConstantsEx.au3> #include <GUIListView.au3> #include <GUIListViewEx.au3> GUICreate("My GUI", 300, 100) Local $sInput = GUICtrlCreateInput("", 150, 50, 50, 20) Local $sAdd = GUICtrlCreateButton("Read", 80, 50, 50, 20) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $sAdd $sRead = GUICtrlRead($sInput, 0) MsgBox(0, "Input!!!", $sRead) EndSwitch WEnd
    1 point
  5. Thanks guys. I fixed the problem by creating a new GUI (its like the upload page of MediaFire ), and its work great XD Example Again, thanks for helping me
    1 point
  6. Danyfirex

    Problem with drag & drop

    Hello. you can do this: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPISys.au3> #include <APIConstants.au3> #include <Array.au3> #include <WinAPIEx.au3> #include "File.au3" Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Form1", 623, 442, 192, 124, -1, BitOR($WS_EX_ACCEPTFILES, $WS_EX_WINDOWEDGE)) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") ;~ GUISetOnEvent($GUI_EVENT_DROPPED, "DropFile") Global $Edit1 = GUICtrlCreateEdit("", 104, 48, 361, 233) GUICtrlSetState(-1, $GUI_DROPACCEPTED) GUICtrlSetData(-1, "") GUISetState(@SW_SHOW) GUIRegisterMsg($WM_DROPFILES, 'WM_DROPFILES') #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func WM_DROPFILES($hWnd, $iMsg, $wParam, $lParam) #forceref $hWnd, $lParam Switch $iMsg Case $WM_DROPFILES Local Const $aReturn = _WinAPI_DragQueryFileEx($wParam) If UBound($aReturn) Then Local $Dir = "", $Drive = "", $Name = "", $Extension = "" $Source = _PathSplit($aReturn[1], $Drive, $Dir, $Name, $Extension) If $Source[4] <> ".txt" And $Source[4] <> ".ini" Then MsgBox(16 + 262144, "Message", "File not allowed!") Return False EndIf EndIf EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_DROPFILES Func Form1Close() Exit EndFunc ;==>Form1Close Saludos
    1 point
×
×
  • Create New...