tradertt Posted March 29, 2006 Share Posted March 29, 2006 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 Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 29, 2006 Moderators Share Posted March 29, 2006 (edited) Try adding this to the top of your script: Opt("WinWaitDelay", 10); By default it waits 250 milliseconds Edited March 29, 2006 by big_daddy Link to comment Share on other sites More sharing options...
tradertt Posted March 29, 2006 Author Share Posted March 29, 2006 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). Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 29, 2006 Moderators Share Posted March 29, 2006 (edited) 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 March 29, 2006 by big_daddy Link to comment Share on other sites More sharing options...
tradertt Posted March 29, 2006 Author Share Posted March 29, 2006 Thanks Free Flash Games Online | Car Modifications Articles | Free Arcade Games Online Link to comment Share on other sites More sharing options...
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