Diana (Cda) Posted 1 hour ago Posted 1 hour ago I'm in the process of creating 4 years of calendars. In another thread i received very kind help for the same type of thing for a different file creation process and it works flawlessly. But here I've been coming back to the script over and over since last night, editing and changing, but I just can't figure out this time where it's going wrong. Better eyes than mine have to see this 'cause I'm just not seeing it <lol>! Here is the script with the 2 original lines in it from the other task that produce results as the first 2 lines: #Region --- CodeWizard generated code Start --- ;InputBox features: Title=Yes, Prompt=Yes, Default Text=No, Input Length=4, Width=500, Height=125 If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer ;$sInputBoxAnswer = InputBox("Year?","What year do you wish to create calendars for?",""," 4","500","125","250","250") $sInputBoxAnswer = InputBox("Year?","What year do you wish to create calendars for?",""," 4","500","125") ; width, height, left, top -- leaving out LEFT and TOP centers box. Select Case @Error = 0 ;OK - The string returned is valid FileWrite(@ScriptDir & "\" & $sInputBoxAnswer & ".01 - JAN " & $sInputBoxAnswer & " - Wall Calendar .pdf", "") ; empty file -- THIS LINE WORKS FileWrite(@ScriptDir & "\" & $sInputBoxAnswer & ".02 - FEB " & $sInputBoxAnswer & " - Wall Calendar .pdf", "") ; empty file -- THIS LINE WORKS FileWrite(@ScriptDir & "\IC w-date (70perc)- " & $sInputBoxAnswer & ".01 - JAN " & $sInputBoxAnswer & " .txt, ") ; error: INCORRECT # OF PARAMETERS IN FUNCTION CALL FileWrite(@ScriptDir & "\IC w-date (70perc)- " & $sInputBoxAnswer & ".02 - FEB " & $sInputBoxAnswer & " .txt, ") ; error: INCORRECT # OF PARAMETERS IN FUNCTION CALL Case @Error = 1 ;The Cancel button was pushed Exit ; finished Case @Error = 3 ;The InputBox failed to open Exit ; finished EndSelect #EndRegion --- CodeWizard generated code End --- Thank you!!!
Danyfirex Posted 1 minute ago Posted 1 minute ago (edited) this part & " .txt, " should be & " .txt" , so you end up with FileWrite(@ScriptDir & "\IC w-date (70perc)- " & $sInputBoxAnswer & ".01 - JAN " & $sInputBoxAnswer & " .txt","") Saludos Edited just now by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
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