Jump to content
Sign in to follow this  
naru

Help for Create Autoit Msgbox ?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites
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
 

 

Share this post


Link to post
Share on other sites
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.
  :)

Share this post


Link to post
Share on other sites
14 hours ago, VIP said:

:lmao: =]]

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

Share this post


Link to post
Share on other sites

@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 by kosamja

Share this post


Link to post
Share on other sites
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 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.
  :)

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By lee321987
      Sometimes when I call several MsgBox's they start popping up under other windows, which the requires ALT + TAB or click the taskbar icon.
      I just wanted to share this workaround:
      Just add a simple GUI in your program:
      #include <GUIConstantsEx.au3> $Form1 = GUICreate("Form1", 1, 1, 0, 0) GUISetState(@SW_SHOW) The GUI window size here is 1x1 so it will be nearly invisible, and at the top-left of your screen.
      It seems as long as that GUI is there all MsgBox's appear on top!
      I only tend to create several MsgBox's in a row when I'm actually writing and testing scripts, so the GUI being there is no big deal (I just remove/comment the GUI creation right before I build the .EXE).
      Have a great day!!!
       
       
    • By editcheck
      Hi, after years of use autoit i am tired to type all time:
      msgbox('','','Hi')
      So, wanna mod the function for set default values... or some more changes.
      where is the function?
      or there are another modes for debug messages that i do not knowed ? XD [just wanna like alert('text')]
      And is there any place for all integrates functions ?
      Thank. Sry my english =E
    • By Ackerz
      Hi guys,
      So I am trying to automate a task and this task has an input box with an already set character "9". 
      I have just decided that I don't really need the input as an option but it's good to leave however for this instance I would like it to run past this point automatically. I've tried numerous ways to try and automate the use of the "OK" button using ControlClick and various other options. I just can't seem to see where this point in the script is. Scoured the forums for anything similar but didn't have any luck finding anything. Sorry to be a pain and I hope someone can help, if I haven't explained in enough detail please don't hesitate to ask for more.
      Many thanks,
      Ackerz
       
      Local $len Local $n Local $buff Local $aMyDate $Len = InputBox("Test",$msgPrompt,"9") $len = StringStripWS($len,$STR_STRIPALL) ;Check that user has entered a vaild password length if not StringIsDigit($len) or $len = 0 Then MsgBox(48,"Error","Invaild Integer was entered" & @CRLF & "Program will now exit.") Exit EndIf ;This creates the random password. for $i = 1 to $Len ;Pick a random char between 1 and the pwsMask Length $n = int(random(1,StringLen($pwsMask))) ;Concat each char that has been picked out of pwsMask to $buff $buff = $Buff & StringMid($pwsmask,$n,1) Next  
    • By xtcislove
      Hello,
      as a start in Autoit i tried something i was missing since im using Autoit. 

      I build a custom MessageBox which has a large amount of custom options and which scales its size on the parameters you set. 

      Aviable Settings:
      -Title
      -Unlimited Buttons
      -Text Color (Buttons, Text)

      -Background Color (Msgbox, Buttons, Label) 

      -Button Timeout
      -Autoclose Timeout
      -Icon (Default, No Icon, Custom)

      -Label/ Button Style. 
      -Transparency

      I tried to keep this as close as i could to a Msgbox i was used too on my batch times.

      After i was ready i realised, @Melba23 probably build a way better msgbox which would have suit my needs enterly, anyway thanks to @Melba23 because i use his Stringsize UDF. 

       
       
      local $Message = _sMsgBox("Test", 6, "Continue?") if @extended <> -1 Then MsgBox(0, @extended, $Message&" Button pressed")  
      ScalingMessageBox.au3
    • By SkysLastChance
      I am having a hard time understanding why this is not working. I was hoping some one could help explain it to me. 
      $tags = $oIE.document.GetElementsByTagName("input") For $tag in $tags $class_value = $tag.GetAttribute("class") If string($class_value) = "fTs-p3298-l0 wplEditControl" Then $target = $tag ExitLoop EndIF Next MsgBox(0,"",$target) If $target = "fTs-p3298-l0 wplEditControl" THEN MsgBox(0,"","itworked") I have tried 
       MsgBox(0,"",$target.Attribute)  MsgBox(0,"",$target.Value)  MsgBox(0,"",$target.InnerText) I would expect to see this in the msgbox
      fTs-p3298-l0 wplEditControl  
×
×
  • Create New...