
Miloud
-
Posts
24 -
Joined
-
Last visited
Reputation Activity
-
Miloud got a reaction from Hashim in get result of ShellExecute
The internet said that shellExecute() is suitable than run() when parameters are needed.
This doesn't work either:
Local $iRc = Run ( '"G:\ffmpeg\bin\ffmpeg.exe" "-version"' , "G:\ffmpeg\bin\") ;Local $iRc = Run ( '"G:\ffmpeg\bin\ffmpeg.exe" -version' , "G:\ffmpeg\bin\") ;Local $iRc = Run ( 'G:\ffmpeg\bin\ffmpeg.exe -version' , "G:\ffmpeg\bin\") ProcessWaitClose($iRc) $Message = StdoutRead($iRc) I need to get output from ffmpeg and determine wether commands finished execution!
-
Miloud got a reaction from Danyfirex in Get contents_of_a_file (and its path) associated with an_application_built_with_autoIt
Thank to: https://commandwindows.com/assoc.htm
The solution is to add " %1" to the 5th line of the association script:
FileExtAssoc("tcr0", "C:\Users\HP\Desktop\crypt\cryptIt.exe") Func FileExtAssoc($sExt, $sApplication) RunWait(@COMSPEC & " /c ASSOC ." & $sExt & "=ExTest", "", @SW_HIDE) RunWait(@COMSPEC & " /c FTYPE ExTest=" & $sApplication & ' "%1"', "", @SW_HIDE) MsgBox(0,"File Extension Application Association",'"' & $sExt & '"is now asscoiated with "' & $sApplication & '"',3) EndFunc
-
Miloud reacted to argumentum in Sciter Dll UDF !
hmmm, the original poster "Last visited September 27, 2010" and that's that.
Now v. 1.0.10.10 from 11/11/1012 works. Too big to attach here, so here is a temporary link to it.
-
-
Miloud got a reaction from rafzDpsd1ByMzIk0J9PL in GUI Input sending via Email
May be it should look like this:
$Body = "Username:Password | " & GUICtrlRead($Username) & ":" & GUICtrlRead($Password)
5:4 aren't in fact the lengths but rather the controls' Id(s)
-
Miloud reacted to water in GUI Input sending via Email
What you see is not the length of the input but the ID of the control.
Edit: Too late
-
Miloud reacted to Tweaky in Predict Text for an Edit Control _PredictText.au3 (UDF)
I think I found a bug.
If I have the word "abcdefxyztg" in the list and I type "a" then only the word "abcdefxy" will be displayed.
Everything including the z is truncated.
I think you should replace this lines
Func _GetItemsArr($sSubString) Return StringRegExp($___nList, "(?sm" & $___C_Sensitive & ")\" & $___sDelimiter & "(\Q" & StringRegExpReplace($sSubString, "\\", "[\1]") & "\E[^\z\" & $___sDelimiter & "]+)" , 3) EndFunc with this lines
Func _GetItemsArr($sSubString) Return StringRegExp($___nList, "(?sm" & $___C_Sensitive & ")\" & $___sDelimiter & "(\Q" & StringRegExpReplace($sSubString, "\\", "[\1]") & "\E[^\" & $___sDelimiter & "]+)" , 3) EndFunc
-
Miloud reacted to InunoTaishou in GroupBox click
Here's one way to do it. You can remove the WM_MOUSEMOVE if you just want it to color the group control when you click in the group control. If you like it coloring the group control if the mouse is in that control then remove the WM_LBUTTONDOWN.
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Dialog", 280, 203, 259, 217) $Group1 = GUICtrlCreateGroup("group1", 8, 8, 129, 185) GUICtrlSetBkColor(-1, 0xA0A0A4) $Input1 = GUICtrlCreateInput("Input1", 24, 48, 97, 21) $Button3 = GUICtrlCreateButton("Button1", 32, 88, 75, 25) $Group2 = GUICtrlCreateGroup("group2", 144, 8, 129, 185) GUICtrlSetBkColor(-1, 0xA0A0A4) $Input2 = GUICtrlCreateInput("Input2", 160, 48, 97, 21) $Button4 = GUICtrlCreateButton("Button2", 168, 88, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### GUIRegisterMsg($WM_MOUSEMOVE, WM_MOUSEMOVE) GUIRegisterMsg($WM_LBUTTONDOWN, WM_LBUTTONDOWN) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func WM_LBUTTONDOWN($hWndFrom, $iMsg, $wParam, $lParam) Local $cursor_info = GUIGetCursorInfo($hWndFrom) If (@error) Then Return $GUI_RUNDEFMSG Switch ($hWndFrom) Case $Form2 Switch ($cursor_info[4]) Case $Group1 GUICtrlSetBkColor($Group1, 0x3A6EA5) GUICtrlSetBkColor($Group2, 0xA0A0A4) Case $Group2 GUICtrlSetBkColor($Group1, 0xA0A0A4) GUICtrlSetBkColor($Group2, 0x3A6EA5) EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_LBUTTONDOWN Func WM_MOUSEMOVE($hWndFrom, $iMsg, $wParam, $lParam) Local Static $set_color_for = 0 Local $cursor_info = GUIGetCursorInfo($hWndFrom) If (@error) Then Return $GUI_RUNDEFMSG Switch ($hWndFrom) Case $Form2 Switch ($cursor_info[4]) Case $Group1 If ($set_color_for = $Group2 Or Not $set_color_for) Then GUICtrlSetBkColor($Group1, 0x3A6EA5) GUICtrlSetBkColor($Group2, 0xA0A0A4) $set_color_for = $Group1 EndIf Case $Group2 If ($set_color_for = $Group1 Or Not $set_color_for) Then GUICtrlSetBkColor($Group1, 0xA0A0A4) GUICtrlSetBkColor($Group2, 0x3A6EA5) $set_color_for = $Group2 EndIf Case Else If ($set_color_for = $Group1) Then GUICtrlSetBkColor($Group1, 0xA0A0A4) ElseIf ($set_color_for = $Group2) Then GUICtrlSetBkColor($Group2, 0xA0A0A4) EndIf $set_color_for = 0 EndSwitch EndSwitch Return $GUI_RUNDEFMSG EndFunc ;==>WM_MOUSEMOVE