Sign in to follow this  
Followers 0
meetrix

Variable

5 posts in this topic

Hello All,

Can anyone help?

I have this script that is kinda of working. I can't find the problem. It must be something really simple that I'm missing. Plese take a look and advise. If it can be improve, please let me know.

Meetrix

Variable.au3

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If $answer = 7 Then
;Create the file or over-write  
    $file = Fileopen("V:"& "\" & ($var) & ".log", 2)
    EndIf
Else
;messeage the user that file has been created
    MsgBox(4096, "Good Job", "The Serial Number has been Crated")      
;   EndIf
;command here to open file and printed.
;command here to close all windows.
EndIf

Lol, you put in a couple of extra endifs in there ;P

try replacing this with that.

If $answer = 7 Then
;Create the file or over-write  
    $file = Fileopen("V:"& "\" & ($var) & ".log", 2)
Else
;messeage the user that file has been created
    MsgBox(4096, "Good Job", "The Serial Number has been Created")     
;command here to open file and printed.
;command here to close all windows.
EndIf
Edited by fear1313

[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

Have you tried to run the script I have? It does not create the serial number file when I have the ifexist and over write options. Why is this?

Thank you for helping. Let me know

Meetrix

If $answer = 7 Then
;Create the file or over-write  
    $file = Fileopen("V:"& "\" & ($var) & ".log", 2)
    EndIf
Else
;messeage the user that file has been created
    MsgBox(4096, "Good Job", "The Serial Number has been Crated")      
;   EndIf
;command here to open file and printed.
;command here to close all windows.
EndIf

Lol, you put in a couple of extra endifs in there ;P

try replacing this with that.

If $answer = 7 Then
;Create the file or over-write  
    $file = Fileopen("V:"& "\" & ($var) & ".log", 2)
Else
;messeage the user that file has been created
    MsgBox(4096, "Good Job", "The Serial Number has been Created")     
;command here to open file and printed.
;command here to close all windows.
EndIf

Share this post


Link to post
Share on other sites

No, I'm at the library and I can't run anything :think: sorry, I just noticed that when looking at your script and thought that was the problem, sorry I can't help you more.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

Is ok. Thank you for helping..

Take care and hopefullly someone else can give me some feedback. I am new to scripting and alll the commands. It will take me some time to get it..

See ya.

No, I'm at the library and I can't run anything :think: sorry, I just noticed that when looking at your script and thought that was the problem, sorry I can't help you more.

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