Jump to content
Sign in to follow this  
fdneal

Any help appreciated

Recommended Posts

fdneal

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 interface
  • Write text (with parameters) to whatever.sc
  • execute swfc whatever.sc
  • delete whatever.sc

So far, I'm stuck by not being able to create a fresh text file.

Any thoughts at all? Thanks in advance.

~Dave!~

Share this post


Link to post
Share on other sites
AlmarM

  • FileWrite
  • GUI functions
  • ShellExecute
  • FileDelete

Mayby 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.

Share this post


Link to post
Share on other sites
Tvern

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.

Share this post


Link to post
Share on other sites
fdneal

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!~

Share this post


Link to post
Share on other sites
fdneal

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.