caramen Posted October 4, 2018 Posted October 4, 2018 Hmmm i am sorry i had simular problem but i cant find back post. How to hide a gui button ? I Want to dodge the variable non déclaréd when i make button in if statment thx before My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
caramen Posted October 4, 2018 Author Posted October 4, 2018 I a so stupid nvm GUICtrlSetState(-1, $GUI_HIDE) pixelsearch 1 My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
pixelsearch Posted October 5, 2018 Posted October 5, 2018 Hi caramen, In fact, your post just helped me in a script, replacing 5 different Autoit instructions with 1 only ! These 5 instructions are : ControlHide(), ControlShow(), ControlDisable(), ControlEnable(), ControlFocus() I replaced them all with GUICtrlSetState(), which does exactly the same, as long as you provide the correct state parameter. Concerning GUICtrlSetState(), another parameter intrigued me in the help file : $GUI_DEFBUTTON But after the negative comments I read from Melba23 and Zedna, I'll never use that one !https://www.autoitscript.com/forum/topic/123817-gui_defbutton-seens-to-stick-after-guictrldelete/ So finally, thanks for your... forgetting "I think you are searching a bug where there is no bug... don't listen to bad advice."
caramen Posted October 5, 2018 Author Posted October 5, 2018 (edited) Haha i like the Your...forgetting. Even stupideness can lead to a good way then By the way i am on a projet of 50 000 - 100 000 lignes so i am structuring a script actually so Replace 5 func with 1 is v good. Maybe 500 Case I never did that what do you think ? It s better to have a function file in include or a single file ... wo did a so big project already ? Edited October 5, 2018 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
FrancescoDiMuro Posted October 5, 2018 Posted October 5, 2018 33 minutes ago, caramen said: It s better to have a function file in include or a single file ... You can think to do your own UDF and use it in your project Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
caramen Posted October 5, 2018 Author Posted October 5, 2018 I structured things to have maleable code atm i coded 500 lines i can have understanding of var without check the gui And all are fractioned in func so i just code them when i need to do similar things But is it good to do it ? It change somthing ? My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now