prakashteki Posted January 23, 2012 Share Posted January 23, 2012 I am working in embedded domain. Without hardware, I want to test my logic writtedn in C language. How can I write the AutoIt script for this ? Please help if any body knows it. Link to comment Share on other sites More sharing options...
Beege Posted January 23, 2012 Share Posted January 23, 2012 Thats pretty vague..but check out It might help you. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
prakashteki Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks Beege, Its not fulfilling my hungryness. I will give my requirement in some more detail: 1. My code has to display "CD loading" when CD got inserted. 2. Now my logic is ready for that 3. But, now there is no hardware to insert a CD 4. I will write some stub code to give a CD insert event to my logic which will display "CD Loading" 5. My requiremnt is that, am I able to write a GUI button such a way that whenever I click on that button, it has to call the stub function which will send a CD insert event to my Logic. 6. How Can I achieve this above point 5. Please help me. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 23, 2012 Moderators Share Posted January 23, 2012 Hi, Prakashteki. From your requirements list you need to:1. Build your GUI (See GuiCreate example in the help file)2. Add a button (See _GUICtrlButton_Create in the help file)3. Add code to have that button call your CD insert logic (try _GUICtrlButton_GetState in the help file) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
prakashteki Posted January 23, 2012 Author Share Posted January 23, 2012 Thanks JLogan3o13. I will go through it. Link to comment Share on other sites More sharing options...
prakashteki Posted February 3, 2012 Author Share Posted February 3, 2012 (edited) Hey, These functions GuiCreate, _GUICtrlButton_Create.... are for creating GUI. That is fine. Now when I want to call my C language function definition. It is throughing error. When I click that button, I am simply calling a function which is in another file (say abc.c). May I need to compile with different compiler or need to change anything. Please help me. Edited February 3, 2012 by prakashteki Link to comment Share on other sites More sharing options...
Beege Posted February 3, 2012 Share Posted February 3, 2012 Now when I want to call my C language function definition. It is throughing error.When I click that button, I am simply calling a function which is in another file (say abc.c).I'm hoping I'm reading this wrong. AutoIt can only execute code written with the AutoIt language. Your not actually trying to call a function written in c with AutoIt are you?Also Its hard to help you find whats wrong with your script without actually seeing your script. Post your code and we will be able to help you much better Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
prakashteki Posted February 3, 2012 Author Share Posted February 3, 2012 Yes. You are correct. I am calling a function written in C language style (My whole project has been done in C only) not in AutoIt style. I am finding out for the way by which I can do it. I hope I will get a solution. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted February 3, 2012 Moderators Share Posted February 3, 2012 Prakashteki, can you please confirm that this is what you have? 1. A compiled C - language executable. 2. An AutoIt script that, when you choose the CD insert event, calls to that EXTERNAL C-language executable "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Beege Posted February 3, 2012 Share Posted February 3, 2012 Sorry if its actual c source code that your trying to call thats just not going to work ( for pretty obvious reasons IMOP). The only possible solution that I have ever seen on these forums is the one I put in post 2. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted February 3, 2012 Moderators Share Posted February 3, 2012 I agree, Beege. My original (probably mistaken) assumption was he was calling to some external app... "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
prakashteki Posted February 22, 2012 Author Share Posted February 22, 2012 Currently we are using Altia for creating the button inputs, and we connect this to Matlab simulink. It will interact with the Matlab Stateflow. For this we need to to connect Altia for Matlab. Is it possible to replace Altia by Autoit ? 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