naru Posted August 13, 2017 Posted August 13, 2017 I have autoit script like this : winActivate ("BillReceipt") ControlClick ( "BillReceipt", "", "[NAME:winviewer]", "right") Send ( "{ENTER}") WinWait ("Print") ControlClick ("Print", "", "[CLASS:Button; INSTANCE:13]") Winwait ("Save As") WinActivate ("Save As") Send ("{TAB 5} {Backspace} ^v {Enter}") I need Saved successfully msgbox with file name as i saved like Filename.extension (Example = test.pdf is saved successfull) Please Help
232showtime Posted August 13, 2017 Posted August 13, 2017 use msgbox in "if statement", check help file for more info... if True then MsgBox<0,"","Successfully Saved") else MsgBox<0,"","Error") Endif ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon.
naru Posted August 13, 2017 Author Posted August 13, 2017 39 minutes ago, 232showtime said: use msgbox in "if statement", check help file for more info... if True then MsgBox<0,"","Successfully Saved") else MsgBox<0,"","Error") Endif @232showtime I need msgbox like this : test.pdf is saved successful
Developers Jos Posted August 13, 2017 Developers Posted August 13, 2017 3 hours ago, Nareshm said: I need msgbox like this : test.pdf is saved successful So what is your problem changing it to your needs? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Trong Posted August 13, 2017 Posted August 13, 2017 (edited) =]] Local $iFileName = "test.pdf" ; Some code here If (True) Then ; Replace TRUE to your expression! MsgBox(Null, "MyApp", $iFileName & " is saved successful !") Else MsgBox(Null, "MyApp", $iFileName & " is saved Error !") EndIf sorry spam! Edited August 13, 2017 by VIP PS Enjoy my work? Buy me a 🍻 or tip via ❤️ PayPal
naru Posted August 14, 2017 Author Posted August 14, 2017 14 hours ago, VIP said: =]] Local $iFileName = "test.pdf" ; Some code here If (True) Then ; Replace TRUE to your expression! MsgBox(Null, "MyApp", $iFileName & " is saved successful !") Else MsgBox(Null, "MyApp", $iFileName & " is saved Error !") EndIf sorry spam! @VIP Every time my file name is changed/Variable file name/Everytime i want to save file with different name
kosamja Posted August 14, 2017 Posted August 14, 2017 (edited) @Nareshm is it just me, or your answers really sound like you are expecting that someone will write you exact script you need so that you dont need to try to make it yourself based on examples? Edited August 14, 2017 by kosamja
Developers Jos Posted August 14, 2017 Developers Posted August 14, 2017 (edited) 2 hours ago, Nareshm said: Every time my file name is changed/Variable file name/Everytime i want to save file with different name @Nareshm, Ignoring me totally will not help and I will still impose a restriction on your account when you refuse to show some effort and keep on begging for code. So consider this the last warning. @everybody else, I do not need to be assisted in telling people to get their act together. Jos Edited August 14, 2017 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
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