MilesAhead Posted October 26, 2008 Share Posted October 26, 2008 (edited) I just tried this tool today to make a simple dialog using a form. As an old Delphi 5 guy I felt right at home! I like it. I like it. Edited October 26, 2008 by MilesAhead My Freeware Page Link to comment Share on other sites More sharing options...
RickJ Posted November 3, 2008 Share Posted November 3, 2008 Very nice work! Iam having a little problem with the code generator. I can create new code templates and/or modify the existing "Loop Example" and "Event Example" templates and the changes are reflected in the fd.xml file that is in same directory as the fd.exe program. The problem is that koda doesn't seem to be using that fd.xml file when it generates the code. Does koda expect to be installed in a specific folder/path or does it use a registry key or something to find fd.xml when it generates code? I have to believe it's something simple that's causing the problem for me. If anyone has any ideas about what's going on and/or how to correct it, your help will be greatly appreciated. Thanks. Link to comment Share on other sites More sharing options...
RickJ Posted November 3, 2008 Share Posted November 3, 2008 Sorry about the double post. I tried to do an edit but the forum isn't cooperating. . Ok, I had been trying out different things for a couple of days before I made the previous post. Minutes later I thought of one more thing to try and it worked. It seems that using "Tools=>Generating Options=>Save&Generate Code" doesn't work and produces the behavior described in the previous post It appears that this command can't even be used to select the desired template; it just has not effect. The only way a template can be selected AFIK is to use the "Options=>Options=>Template" dialog and then set one of the templates to be the default. To generate the code the "Tools=>Generate Form Code" command must be used.It would appear that that the "Tools=>Generating Options:" dialog is not working correctly.=================SUGGESTION: %GUI_ID% or %FORM_NAME%I have one small suggestion with regard to the code template/generating mechanism. I would like to enclose the GUI code within a function. I would like to use the from name to compose the function name and perhaps a couple of variables as well. So I was wondering if a variable containing the form's name could be added. It would perhaps also be desirable to have access to the form's caption text as well. %FORM_NAME% or %GUI_ID% %FORM_CAPTION% or %GUI_CAPTION%Thanks for all your hard work. It's greatly appreciated.Best RegardsRick Link to comment Share on other sites More sharing options...
Lazycat Posted November 5, 2008 Author Share Posted November 5, 2008 It seems that using "Tools=>Generating Options=>Save&Generate Code" doesn't work and produces the behavior described in the previous post It appears that this command can't even be used to select the desired template; it just has not effect. The only way a template can be selected AFIK is to use the "Options=>Options=>Template" dialog and then set one of the templates to be the default. To generate the code the "Tools=>Generate Form Code" command must be used.It would appear that that the "Tools=>Generating Options:" dialog is not working correctly.To be honest, I don't recall the reason why chosen template is not save in the form. While Koda is saving last choosen template in configuration, it not apply when using "Generate" command. Agree, this is break the logic of "Generating Options" dialog. Probably will be more logical if form will keep chosen template.SUGGESTION: %GUI_ID% or %FORM_NAME%I have one small suggestion with regard to the code template/generating mechanism. I would like to enclose the GUI code within a function. I would like to use the from name to compose the function name and perhaps a couple of variables as well. So I was wondering if a variable containing the form's name could be added. It would perhaps also be desirable to have access to the form's caption text as well. %FORM_NAME% or %GUI_ID% %FORM_CAPTION% or %GUI_CAPTION%Though this is not hard to implement, this is particularity and I don't sure about profit of this, especially form caption. Also is not obvious, should %GUI_ID% include $ sign or not - if yes you can't use it in fuction name, if no - it will be inconsistent with other substitutes. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
CodyBarrett Posted November 11, 2008 Share Posted November 11, 2008 i think this is a very well designed program. i like it better than scite, BUT i have a problem that is probably just an easy fix, how do i change the event. i cant get it from LOOP to EVENT mode... did i miss something that was clearly outlined? if so please tell me how to fix it great job on the program its easyer to learn that guess and check of Scite. well done [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Zedna Posted November 19, 2008 Share Posted November 19, 2008 I have updated Czech Koda translation to the latest version (1.7.0.8).Some little issues:1) in English version (lang_eng.xml) is spelling mistake: <msgWrongIconFormat>File you are try to open is not an icon.</msgWrongIconFormat>should be <msgWrongIconFormat>File you are trying to open is not an icon.</msgWrongIconFormat>2) in Czech version (lang_cze.xml) are buttons in ImageList Editor too small to fit whole translationas you can see on attached screenshot. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Lazycat Posted November 19, 2008 Author Share Posted November 19, 2008 I have updated Czech Koda translation to the latest version (1.7.0.8).Some little issues:1) in English version (lang_eng.xml) is spelling mistake: <msgWrongIconFormat>File you are try to open is not an icon.</msgWrongIconFormat>should be <msgWrongIconFormat>File you are trying to open is not an icon.</msgWrongIconFormat>Thanks, I'll update all. Talking about such kind "spelling mistakes" - I think there alot more My english is bad, I know... If someone from english native speaking people would check and tell me badly spelled sentences - this will be appreciated, and I can update internal strings. 2) in Czech version (lang_cze.xml) are buttons in ImageList Editor too small to fit whole translationas you can see on attached screenshot.Of course, it's better to think out shorter english terms... which probably will be translated shorter too. Wide buttons not too aesthetic imo, though make them wider no problem. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Zedna Posted November 19, 2008 Share Posted November 19, 2008 Of course, it's better to think out shorter english terms... which probably will be translated shorter too. Wide buttons not too aesthetic imo, though make them wider no problem.I know about that general solution (shorter translations) but in this case it would be difficultand there are missing only 1 or 1 chars so in this case I prefer little wider buttons. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Valik Posted November 25, 2008 Share Posted November 25, 2008 The Update Script command does not obey indentation options. Use the attached project and open it in Koda. Now go to Tools -> Generating Options -> Formatting. Change the Indent code settings. For example, set Initial to 1, Indent char to Tab and Count to 1. Hit Save to store the settings and dismiss the dialog. Now use Tools -> Update Script to update Test.au3. Open Test.au3 and notice that the code is not indented. Test.zip Link to comment Share on other sites More sharing options...
Lazycat Posted November 26, 2008 Author Share Posted November 26, 2008 The Update Script command does not obey indentation options. Use the attached project and open it in Koda. Now go to Tools -> Generating Options -> Formatting. Change the Indent code settings. For example, set Initial to 1, Indent char to Tab and Count to 1. Hit Save to store the settings and dismiss the dialog. Now use Tools -> Update Script to update Test.au3. Open Test.au3 and notice that the code is not indented.Confirmed, something wrong there. Will fix in next beta. Thanks. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Valik Posted December 6, 2008 Share Posted December 6, 2008 (edited) It appears that Align -> Center Horizontal In Window calculates the center position using the GUI's Width, not it's Client Width. This is wrong and causes the control to be offset to the right. It needs to be calculated using the Client Width value. I didn't test, but I suspect the vertical center calculation is also wrong.Edit: I also couldn't figure out how to get Up-Down control limits to work. No matter what I set the limits to, no GUICtrlSetLimit() code was generated. Edited December 6, 2008 by Valik Link to comment Share on other sites More sharing options...
martin Posted December 6, 2008 Share Posted December 6, 2008 Here is my version of lang_eng.xml, it includes Zedna's correction. lang_eng.xml Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Lazycat Posted December 8, 2008 Author Share Posted December 8, 2008 It appears that Align -> Center Horizontal In Window calculates the center position using the GUI's Width, not it's Client Width. This is wrong and causes the control to be offset to the right. It needs to be calculated using the Client Width value. I didn't test, but I suspect the vertical center calculation is also wrong.Yes, this using full width now. Since Autoit work with client sizes, it's sound reasonable that align functions should be consistent with it.Edit: I also couldn't figure out how to get Up-Down control limits to work. No matter what I set the limits to, no GUICtrlSetLimit() code was generated.Weird, it's work for me. The only case when code is not generated - when both limits are equal.Here is my version of lang_eng.xml, it includes Zedna's correction.Thanks, I'll update internal strings! Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Valik Posted December 8, 2008 Share Posted December 8, 2008 Weird, it's work for me. The only case when code is not generated - when both limits are equal.Hmm. It does seem to work. I'm not sure what the scenario was where I couldn't get it to work. However I have a new issue. When attempting to enter a number out of the accepted range it throws a nasty error. It makes more sense to just silently truncate the number to the maximum (or minimum) value without the error. Link to comment Share on other sites More sharing options...
Lazycat Posted December 8, 2008 Author Share Posted December 8, 2008 When attempting to enter a number out of the accepted range it throws a nasty error. It makes more sense to just silently truncate the number to the maximum (or minimum) value without the error.Agree, this can be done. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
corgano Posted December 8, 2008 Share Posted December 8, 2008 (edited) i have been using this program for a while and i like it, however, i have some sugestions i made a gui for a program and it worked well, but then i added a transperency settings gui when i added them together there were bugs because the transperency select gui and the main program had the same controll names could it be posable to export to an au3 script instead of clipboard, and if there is already a gui / controll named say $form1 = guicreate(yourfirstgui) $Label1 = guicreatelabel(yourfirstguislabel) $Label2 = guicreatelabel(unimportant for now) $Label3 = guicreatelabel(unimportant for now) instead of adding $form1 = guicreate(yourfirstgui) $Label1 = guicreatelabel(yourfirstguislabel) $Label2 = guicreatelabel(unimportant for now) $Label3 = guicreatelabel(unimportant for now) $form1 = guicreate(youaddyoursecondgui) $Label1 = guicreatelabel(thisiswhereyougetbugs) have sumthing more like $form1 = guicreate(yourfirstgui) $Label1 = guicreatelabel(yourfirstguislabel) $Label2 = guicreatelabel(unimportant for now) $Label3 = guicreatelabel(unimportant for now) $form11 = guicreate(youaddyoursecondgui) $Label11 = guicreatelabel(itwouldrenamedubbleentry) so that instad of copying and pasting and renaming it all yourself, it will do it for you. it would also have to rename the guigetmsg part of the script too this would be nice for programs that you add fetures/extra gui's later on and you dont want to rename it Edited December 8, 2008 by corgano 0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e Link to comment Share on other sites More sharing options...
martin Posted December 8, 2008 Share Posted December 8, 2008 i have been using this program for a while and i like it, however, i have some sugestions i made a gui for a program and it worked well, but then i added a transperency settings gui when i added them together there were bugs because the transperency select gui and the main program had the same controll names could it be posable to export to an au3 script instead of clipboard, and if there is already a gui / controll named say $form1 = guicreate(yourfirstgui) $Label1 = guicreatelabel(yourfirstguislabel) $Label2 = guicreatelabel(unimportant for now) $Label3 = guicreatelabel(unimportant for now) instead of adding $form1 = guicreate(yourfirstgui) $Label1 = guicreatelabel(yourfirstguislabel) $Label2 = guicreatelabel(unimportant for now) $Label3 = guicreatelabel(unimportant for now) $form1 = guicreate(youaddyoursecondgui) $Label1 = guicreatelabel(thisiswhereyougetbugs) have sumthing more like $form1 = guicreate(yourfirstgui) $Label1 = guicreatelabel(yourfirstguislabel) $Label2 = guicreatelabel(unimportant for now) $Label3 = guicreatelabel(unimportant for now) $form11 = guicreate(youaddyoursecondgui) $Label11 = guicreatelabel(itwouldrenamedubbleentry) so that instad of copying and pasting and renaming it all yourself, it will do it for you. it would also have to rename the guigetmsg part of the script too this would be nice for programs that you add fetures/extra gui's later on and you dont want to rename itIt is already possible to export directly to an au3 file by using the menu Tools|Update script. To use this you have to have saved the script in the same folder as the kxf file, AND have the region heading to the gui design that Koda creates for you. The scripts which contain this region header are only searched for when the kxf form is open (loaded) by Koda. One script can contain more than one gui design. It is a simple matter to set the name of the form in Koda so that you don't have conflicts. It is well worth the time to get the names in Koda just right, and you should not have to edit the code that Koda creates exsept in rare cases IMO. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
powerpoison Posted December 15, 2008 Share Posted December 15, 2008 Thks for the program man! so useful for me! but i just tried it i didn't figured how to add the code in the buttons or in the labels.... or in any element... did you implemented to add the code or this will only make the guy not linked tot the code ? if i can even add the code can u tell me how? Link to comment Share on other sites More sharing options...
Skrip Posted December 17, 2008 Share Posted December 17, 2008 Can we get an update for this? When I attempt to add a picture, or add styles to a button and click the Run Form button, it errors saying it can't find one of the styles.. Or how can I add things for it to include before it runs? [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left] Link to comment Share on other sites More sharing options...
Zedna Posted December 17, 2008 Share Posted December 17, 2008 Can be implemented support for GUIStartGroup()? GUICtrlCreateGroup() - for visible group of radio itemsGUIStartGroup() - for invisible group of radio itemsSee this post/example:http://www.autoitscript.com/forum/index.ph...st&p=618070 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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