
jinyue115
Active Members-
Posts
29 -
Joined
-
Last visited
jinyue115's Achievements

Seeker (1/7)
0
Reputation
-
very very very nice !
-
Later releases was by attachment: CodecControl 1.6 (was downloaded 42 times), BUGGY!! Use bugfix 1.7 instead. CodecControl 2.1.1 (was downloaded 24 times), BUGGY!! Use bugfix 2.1.2 instead. CodecControl 2.2.5 (accidentally removed, was downloaded about 31 times), use 2.2.8 instead Hi , Where could i find "LinkedList.au3" ? Thanks .
- 85 replies
-
*** Recursion the treeview ***
jinyue115 replied to jinyue115's topic in AutoIt General Help and Support
recursion fuction does not work -
what 's the break point in below Recursion function ? how use the Recursion function to finish Recursive traversal ? Thanks for your reading ! #include <GuiConstantsEx.au3> #include <GuiTreeView.au3> #include <WindowsConstants.au3> #include <EditConstants.au3> #include <file.au3> #include <array.au3> Global $filepath, $hitem, $path, $i, $j, $filelist, $filelistb $path = @DesktopDir & '\test\' $GUI = GUICreate("(UDF Created) TreeView Create", 400, 640) $hTreeView = _GUICtrlTreeView_Create($GUI, 2, 2, 396, 568);,$iStyle, $WS_EX_CLIENTEDGE) _GUICtrlTreeView_BeginUpdate($hTreeView) ;========================================================================== TreeViewList($path) ;========================================================================== _GUICtrlTreeView_EndUpdate($hTreeView) GUISetState() Do Until GUIGetMsg() = -3 Func TreeViewList($path) ;~ While 1 $filelist = _FileListToArray($path) If @error = 1 then Exit If UBound($filelist) <> '' Then For $i = 1 To $filelist[0] $hitem = _GUICtrlTreeView_Add($hTreeView, 0, $filelist[$i]) $filepath = $path & '\' & $filelist[$i] ;=========================================================================================== $filelistb = _FileListToArray($filepath) If @error = 1 Then Exit If UBound($filelistb) <> '' Then For $j = 1 To $filelistb[0] $hitemb = _GUICtrlTreeView_AddChild($hTreeView, $hitem, $filelistb[$j]) $filepath = $path & '\' & $filelist[$i] & '\' & $filelistb[$j] ;~ Recursion($filepath, $hitemb) ;========================================================================== $filelistc = _FileListToArray($filepath) If @error = 1 Then Exit If UBound($filelistc) <> '' Then For $k = 1 To $filelistc[0] $hitemc = _GUICtrlTreeView_AddChild($hTreeView,$hitemb,$filelistc[$k]) $filepath = $path & '\' & $filelist[$i] & '\' & $filelistb[$j] & '\' & $filelistc[$k] Next EndIf ;========================================================================== Next EndIf ;============================================================================================= ;~ digui($filepath, $hitem) Next EndIf ;~ WEnd EndFunc ;==>TreeViewList Func Recursion($filepath, $hitem) $filelistb = _FileListToArray($filepath) If @error = 1 Then Exit If UBound($filelistb) <> '' Then For $j = 1 To $filelistb[0] $hitemb = _GUICtrlTreeView_AddChild($hTreeView, $hitem, $filelistb[$j]) $filepath = $path & '\' & $filelist[$i] & '\' & $filelistb[$j] ;~ Recursion($filepath, $hitemb) Next EndIf EndFunc ;==>Recursion
-
#include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $msg GUICreate("My GUI combo") ; will create a dialog box that when displayed is centered GUICtrlCreateCombo("item1", 10, 10) ; create first item GUICtrlSetData(-1, "item2|item3", "item3") ; add other item snd set a new default GUISetState() ; Run the GUI until the dialog is closed While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $label0;x Exit Case item2 ;Start item2();here is i want to do -->once select combo data item2 , then perfrom call item2 function -->Till now have not fixed this issue , i have tried with ID and call function , but still not work , pls give me a hand , thank you . EndSwitch WEnd EndFunc ;==>Example Func item2() MsgBox(0,1,1) EndFunc
-
First of all , i can launch the application using "shellexecute" , like "shellexecute("calc")" , then the calc will be launched . Now , I just want to launch the application from Start Menu , like "send("{lwin}")"-->some function that can search the app using the name -->then enter Enter key to launch it . Actually i dont know is there got a function can achieve this . Please help me , thanks . Thanks for your reading .
-
Till now , nobody can fix this issue ! U want try?
jinyue115 replied to jinyue115's topic in AutoIt General Help and Support
Thanks a lot -
Till now , nobody can fix this issue ! U want try?
jinyue115 replied to jinyue115's topic in AutoIt General Help and Support
How foolish i am !!! Global $Path="d:\aa" $dll = DllOpen("user32.dll") $Timer = DllCallbackRegister("Timer", "int", "hwnd;uint;uint;dword") $TimerDLL = DllCall($dll, "uint", "SetTimer", "hwnd", 0, "uint", 0, "int", 100, "ptr", DllCallbackGetPtr($Timer)) ShellExecute($Path) ;Exit ;~ While 1 ;~ Sleep(100) ;~ WEnd Func quit() DllCall($dll, "int", "KillTimer", "hwnd", 0, "uint", $TimerDLL) DllCallbackFree($Timer) DllClose($dll) Exit EndFunc Func Timer($hWnd, $uiMsg, $idEvent, $dwTime) If WinExists($Path) Then ControlClick($Path,"","Button1","left",1) EndFunc -
Till now , nobody can fix this issue ! U want try?
jinyue115 replied to jinyue115's topic in AutoIt General Help and Support
Enjoy yourself !