Fixed Control Editor respond too slow
Verfasst: Mi 27. Dez 2017, 04:49
First, I love this project very much, I can't think that AutoIt can make this big Project. But I have some problem about speed (I think something can't be change with this limited language) in Formstudio2 (Control Editor respond to slow when I click to change Tab), Editor (when using to much variables, it make Editor lag when something inputted) and I don't know why new Plugin can't add (When I add regex_toolkit.icp plugin, the ISN show error: Plugin could not be imported)
I decide to find the reason why the responding to slow in Control Editor and I figure out it's problem
I fixed this problem by using an array to define variable and use For ... In .. to @SW_SHOW and @SW_HIDE the control, so that I can just Hide and Show a specific control to reduce loading time and fixed other things can't use array by the same way
Then main problem make Control Editor too slow are _Tab_SetImage_with_Text() and I figure out that the code use _Minieditor_tab_select(-1) two times when it's loading a Tab, so that I delete 1 time.
Things changed: I just modified 2 file: formstudio2.au3 and Addons3.au3
- In formstudio2.au3:
+ I redefine a Local variable: $iLastTab1 = 0 to save last Tab chose, delete a If WinActive($GUI_Editor) Then (I don't know what changed when I cut off this line)
+ Move Local $Pos_oldpos out of While loop
+ Move the $iLastTab1 = $iCurrTab1 down
+ Add _Minieditor_tab_select(-1) before _Minieditor_tab_select(0)
+ Delete sleep(10) in While loop
- In Addons3.au3: I define 3 variables on the top:
+ $Gui_Setting_Tab_Var[5], $Control_Editor_Setting_Var[5], $Control_Editor_Setting_LastTab = 0.
+ Change Func _Form_bearbeitenGUI_tab_select($tab = -1) to _Form_bearbeitenGUI_tab_select($tab, $lasttab = -1) to save last Tab
+ Change the code in 2 Func: _Form_bearbeitenGUI_tab_select($tab, $lasttab = -1) and _Minieditor_tab_select($tab = -1)
I changed _Form_bearbeitenGUI_tab_select() because at first I think this Func control the Control Editor and it work so beautiful so I keep this changed
Can others small things changed but I don't remember
Thank you for making this beautiful IDE! Hope it more complete day by day!
(Sorry for my bad English)
I decide to find the reason why the responding to slow in Control Editor and I figure out it's problem
I fixed this problem by using an array to define variable and use For ... In .. to @SW_SHOW and @SW_HIDE the control, so that I can just Hide and Show a specific control to reduce loading time and fixed other things can't use array by the same way
Then main problem make Control Editor too slow are _Tab_SetImage_with_Text() and I figure out that the code use _Minieditor_tab_select(-1) two times when it's loading a Tab, so that I delete 1 time.
Things changed: I just modified 2 file: formstudio2.au3 and Addons3.au3
- In formstudio2.au3:
+ I redefine a Local variable: $iLastTab1 = 0 to save last Tab chose, delete a If WinActive($GUI_Editor) Then (I don't know what changed when I cut off this line)
+ Move Local $Pos_oldpos out of While loop
+ Move the $iLastTab1 = $iCurrTab1 down
+ Add _Minieditor_tab_select(-1) before _Minieditor_tab_select(0)
+ Delete sleep(10) in While loop
- In Addons3.au3: I define 3 variables on the top:
+ $Gui_Setting_Tab_Var[5], $Control_Editor_Setting_Var[5], $Control_Editor_Setting_LastTab = 0.
+ Change Func _Form_bearbeitenGUI_tab_select($tab = -1) to _Form_bearbeitenGUI_tab_select($tab, $lasttab = -1) to save last Tab
+ Change the code in 2 Func: _Form_bearbeitenGUI_tab_select($tab, $lasttab = -1) and _Minieditor_tab_select($tab = -1)
I changed _Form_bearbeitenGUI_tab_select() because at first I think this Func control the Control Editor and it work so beautiful so I keep this changed
Can others small things changed but I don't remember
Thank you for making this beautiful IDE! Hope it more complete day by day!
(Sorry for my bad English)