Jump to content
Sign in to follow this  
tradertt

Trying To Do A Script That Does Not Allow The Save As Window To Appear

Recommended Posts

Hi

Does anyone know how I can prevent the Save As window from appearing when I click on File --> Save As

I tried using @sw_hide but I can still see it appearing before it becomes hidden.

Any help?

while 1

   AutoItSetOption("WinTitleMatchMode", 4)
    WinWaitActive( "classname=#32770", "", 5 )
    WinSetState ("classname=#32770", "", @sw_hide)
    Sleep(2000)
    WinSetState ("classname=#32770", "", @sw_show)
    Sleep(2000)
wend

Share this post


Link to post
Share on other sites

Try adding this to the top of your script:

Opt("WinWaitDelay", 10); By default it waits 250 milliseconds
Edited by big_daddy

Share this post


Link to post
Share on other sites

Opt("WinWaitDelay", 10); By default it waits 250 milliseconds
while 1

   AutoItSetOption("WinTitleMatchMode", 4)
    WinWaitActive( "classname=#32770", "", 5 )
    WinSetState ("classname=#32770", "", @sw_hide)
    Sleep(2000)
    WinSetState ("classname=#32770", "", @sw_show)
    Sleep(2000)
wend

Won't this slow down the execution of the script to hide the window and cause the window to appear on screen even longer?

Alters how long a script should briefly pause after a successful window-related operation.

Time in milliseconds to pause (default=250).

Share this post


Link to post
Share on other sites

Won't this slow down the execution of the script to hide the window and cause the window to appear on screen even longer?

Acctually the code that I provided will make it disapear 240 milliseconds faster.

If this option is not manually set then by default every window-related operation will delay the script for 250 milliseconds.

Edited by big_daddy

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.

×
×
  • Create New...