Sign in to follow this  
Followers 0
PAGeek

Trouble with Input Boxes...please help me!

2 posts in this topic

#1 ·  Posted (edited)

OK, I'm new to auto-it, and I may be slightly retarded, so I need some help. :lmao:

I've made a couple of InputBoxes. What I want to do is take the text entered by a user in these 2 boxes and rename a bunch of files in a directory with this input ( and maybe add either a sequence or time to the end to get different file names) and then move all the files to another directory.

Can anyone give me some help? Please! ;) It would be greatly appreciated.

Here's what I have now, I can handle moving the files no problem after the end message box, I'm just not sure how to do the renaming with the input, I've made several attempts and now removed them all form the code and will be patiently awaiting some assistance.

If Not IsDeclared("TickBox") Then Dim $TickBox

$TickBox = InputBox("Ticket Number","Please enter the ticket number for picture processing below.",""," M25","-1","-1","-1","-1")

Select

Case @Error = 0 ;OK - The string returned is valid

Case @Error = 1 ;The Cancel button was pushed

Case @Error = 3 ;The InputBox failed to open

EndSelect

If Not IsDeclared("LocBox") Then Dim $LocBox

$LocBox = InputBox("Locator Number","Please enter your locator number below. Please use your name if you do not have an assigned locator number.",""," M25","-1","-1","-1","-1")

Select

Case @Error = 0 ;OK - The string returned is valid

Case @Error = 1 ;The Cancel button was pushed

Case @Error = 3 ;The InputBox failed to open

EndSelect

If Not IsDeclared("iMsgBoxAnswer") Then Dim $iMsgBoxAnswer

$iMsgBoxAnswer = MsgBox(1,"Process Pictures?","Click OK to process your ticket pictures. To Re-enter any information, Cancel now.")

Select

Case $iMsgBoxAnswer = 1 ;OK

Case $iMsgBoxAnswer = 2 ;Cancel

EndSelect

Edited by PAGeek

Share this post


Link to post
Share on other sites



would u mind posting your current code?

~cdkid


AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!

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  
Followers 0