fdneal Posted August 15, 2010 Share Posted August 15, 2010 Hi, All!I'm new to AutoIt, but not to scripting. This seems like the perfect tool for the project I'm attempting. I'd like to use swfc.exe (from swftools.com) to create flash rollover buttons without using Flash. I can do it by writing the appropriate .sc file and running it through swfc.exe, but I'd like to automate the this process. Here's my punch-list of AutoIt needs:Create a new text file (whatever.sc)Gather parameters via gui interfaceWrite text (with parameters) to whatever.scexecute swfc whatever.scdelete whatever.scSo far, I'm stuck by not being able to create a fresh text file. Any thoughts at all? Thanks in advance.~Dave!~ Link to comment Share on other sites More sharing options...
AlmarM Posted August 15, 2010 Share Posted August 15, 2010 FileWriteGUI functionsShellExecuteFileDeleteMayby these provide you with some help. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Tvern Posted August 15, 2010 Share Posted August 15, 2010 FileOpen (in write mode) and FileWrite will create a new file if the specified filename does not exist. If you use FileOpen, then don't forget to FileClose. If you are writing the entire file at once, you can specify a path in FileWrite directly and not bother with FileOpen and FileClose. Link to comment Share on other sites More sharing options...
fdneal Posted August 15, 2010 Author Share Posted August 15, 2010 FileOpen (in write mode) and FileWrite will create a new file if the specified filename does not exist.If you use FileOpen, then don't forget to FileClose. If you are writing the entire file at once, you can specify a path in FileWrite directly and not bother with FileOpen and FileClose.Wow! Thanks for the quick response! I choked up on FileWrite because I thought the file needed to exist first. Silly me. I'll be back with my progress.~Dave!~ Link to comment Share on other sites More sharing options...
fdneal Posted August 15, 2010 Author Share Posted August 15, 2010 Wow! Thanks for the quick response! I choked up on FileWrite because I thought the file needed to exist first. Silly me. I'll be back with my progress. ~Dave!~ And, I'm back. I got the file to write and have my variables working. Now, I need to put together the GUI. I have an input box, but when I try to retrieve the contents I get a value instead. The following code returns "5" regardless of what is typed in the input box. $fyle = GUICtrlCreateInput("", 10, 100, 100, 20) MsgBox(0, "GUI Event", $fyle) I know I'm missing something obvious, but I can't figure out what the obvious thing is...yet. Link to comment Share on other sites More sharing options...
JohnOne Posted August 15, 2010 Share Posted August 15, 2010 MsgBox(0, "GUI Event", GUICtrlRead($fyle)) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
fdneal Posted August 15, 2010 Author Share Posted August 15, 2010 Again, my thanks! 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