simusphere Posted February 8, 2008 Share Posted February 8, 2008 (edited) Why can't I place a simple jpg pic or icon on a blank form without getting a undeclared variable error whilst in preview mode? I am using the latest beta version of autoit right now. Anyone else notice this? Edited February 8, 2008 by simusphere Link to comment Share on other sites More sharing options...
martin Posted February 8, 2008 Share Posted February 8, 2008 Why can't I place a simple jpg pic or icon on a blank form without getting a undeclared variable error whilst in preview mode? I am using the latest beta version of autoit right now. Anyone else notice this?Don't have this problem but I don't know what you mean by preview mode. Can you post a minimal example code that Koda produces to give the error? 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...
Tomb Posted February 8, 2008 Share Posted February 8, 2008 Why can't I place a simple jpg pic or icon on a blank form without getting a undeclared variable error whilst in preview mode? I am using the latest beta version of autoit right now. Anyone else notice this?it must be something new in beta Link to comment Share on other sites More sharing options...
simusphere Posted February 9, 2008 Author Share Posted February 9, 2008 (edited) Don't have this problem but I don't know what you mean by preview mode. Can you post a minimal example code that Koda produces to give the error?I am very impressed with the koda form designer and it really speeds up the whole GUI design process. As you build your form there is a preview button on the "tool bar" under the menu bar. See attachment for preview button. The green triangle pointing to the right is the preview button. The other attachment is the actual error which doesn't make sense since the variables called out in the error are constants defined in the GUIConstants.au3 file. As far as sample code, just fire up koda and try to put an icon or jpg on a blank form and then press the preview button. Or you can generate the code with F9. I guess this is a bug in the new beta vesion of autoit but I shocked no one else has mentioned it. Edited February 9, 2008 by simusphere Link to comment Share on other sites More sharing options...
BrettF Posted February 9, 2008 Share Posted February 9, 2008 Do believe there was a change in GUIConstants.au3. Not sure what it contains now though. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
martin Posted February 10, 2008 Share Posted February 10, 2008 I am very impressed with the koda form designer and it really speeds up the whole GUI design process. As you build your form there is a preview button on the "tool bar" under the menu bar. See attachment for preview button. The green triangle pointing to the right is the preview button. The other attachment is the actual error which doesn't make sense since the variables called out in the error are constants defined in the GUIConstants.au3 file. As far as sample code, just fire up koda and try to put an icon or jpg on a blank form and then press the preview button. Or you can generate the code with F9. I guess this is a bug in the new beta vesion of autoit but I shocked no one else has mentioned it. Presumably you haven't looked in GUIConstants to verify that $SS_NOTIFY is in there. $SS_NOTIFY is now defined in StaticConstants.au3 so you need to add that to your includes. Koda doesn't produce code with the includes for the latest Betas yet. 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...
simusphere Posted February 10, 2008 Author Share Posted February 10, 2008 (edited) Presumably you haven't looked in GUIConstants to verify that $SS_NOTIFY is in there.$SS_NOTIFY is now defined in StaticConstants.au3 so you need to add that to your includes. Koda doesn't produce code with the includes for the latest Betas yet.You can't modify generated code except after the fact in the editor AFAIK -- HELLO -- It's generated.The purpose of preview mode is to correctly generate the code so it works, right? Anyways, the latest beta version of koda handles the includes much better and my simple example works properly now. Check koda 1.7.0.4. Edited February 10, 2008 by simusphere 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