Ármányos Kő Posted January 30, 2008 Share Posted January 30, 2008 Hi,Simple question:How to make a time-outed (1 sec is OK) MsgBox invisible?Sounds stupid, but it is the only solution for a special problem talked here> http://www.autoitscript.com/forum/index.ph...mp;#entry471962 Link to comment Share on other sites More sharing options...
MrCreatoR Posted January 31, 2008 Share Posted January 31, 2008 I am sure the invisible message box is not the only way to solve your problem , but you can create a custom message box with GUI, without showing it (don't use GUISetState()).Something like that:DummyMsgBox(1) Func DummyMsgBox($iWait=1) GUICreate("Dummy MsgBox", 300, 200) Sleep($iWait * 1000) EndFunc Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
bogQ Posted January 31, 2008 Share Posted January 31, 2008 (edited) ClipPut("") Send("^c") $all = "" While Not $all <> "" Sleep(10) $all = ClipGet() WEnd MsgBox(0,"",$all) ;<== send("^v") Edited needed to work harder Edited January 31, 2008 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
seandisanti Posted January 31, 2008 Share Posted January 31, 2008 Hi,Simple question:How to make a time-outed (1 sec is OK) MsgBox invisible?Sounds stupid, but it is the only solution for a special problem talked here> http://www.autoitscript.com/forum/index.ph...mp;#entry471962What kind of database are you searching? It seems like you may be able to import your data source into your script, then have it do the lookup, so it's only waiting on itself, and you'd not need to use the clipboard, there are also some SQL functions i believe in the example scripts forum that may help you to directly interact with your data so you don't have to worry about timing execution or using the clipboard... Link to comment Share on other sites More sharing options...
Ármányos Kő Posted January 31, 2008 Author Share Posted January 31, 2008 ClipPut("") Send("^c") $all = "" While Not $all <> "" Sleep(10) $all = ClipGet() WEnd MsgBox(0,"",$all) ;<== send("^v") Edited needed to work harder Yeah, starting on this path I learned about the bl**dy internal clipboard of Indy. The point is that my data passes to the clipboard. But from there it is up to InDesign how and when to fetch to be able to send("^v"). Link to comment Share on other sites More sharing options...
Ármányos Kő Posted January 31, 2008 Author Share Posted January 31, 2008 What kind of database are you searching? It seems like you may be able to import your data source into your script, then have it do the lookup, so it's only waiting on itself, and you'd not need to use the clipboard, there are also some SQL functions i believe in the example scripts forum that may help you to directly interact with your data so you don't have to worry about timing execution or using the clipboard...I am searching my own two-column text database. It is a short stuff, only 35.000 records in it having 2*80 byte in each record average. And it's got to be shown in a kind of html window to let user to choose which record to insert. Anyway, the data passes to Windows clipboard nicely. Then comes Indesign to fetch and chew and do the Send({^v}). It comes arbitrary unfortunatelly. And I am after speedy Send({^v})-s. Link to comment Share on other sites More sharing options...
seandisanti Posted January 31, 2008 Share Posted January 31, 2008 I am searching my own two-column text database. It is a short stuff, only 35.000 records in it having 2*80 byte in each record average. And it's got to be shown in a kind of html window to let user to choose which record to insert. Anyway, the data passes to Windows clipboard nicely. Then comes Indesign to fetch and chew and do the Send({^v}). It comes arbitrary unfortunatelly. And I am after speedy Send({^v})-s.Right, i completely get what you're after, i'm just saying that you may not need to use Indesign to do your fetching if you have access to the data. Your script can fetch and present without the need of ^c/^v Link to comment Share on other sites More sharing options...
Ármányos Kő Posted January 31, 2008 Author Share Posted January 31, 2008 I am sure the invisible message box is not the only way to solve your problem , but you can create a custom message box with GUI, without showing it (don't use GUISetState()). Something like that: DummyMsgBox(1) Func DummyMsgBox($iWait=1) GUICreate("Dummy MsgBox", 300, 200) Sleep($iWait * 1000) EndFuncoÝ÷ Ûú®¢×{)}Ø¢éué²u¬·Ü'{$Évl¡y§m¢®r'¶¬¦ºéÂ÷ö×âÛazȦ¦W¬¶Ê%ºØ¨·ë^¨ºØ^¶§8b±Ú²z-ÂäÖ®¶s`vä7FfFRgV÷C´Fö&RäFW6vâgV÷C²ÂgV÷C²gV÷C² våvD7FfRgV÷C´Fö&RäFW6vâgV÷C²ÂgV÷C²gV÷C² 6ÆVW b7G&ætå7G"b33c¶æFF&ƲÂgV÷C´Fö&RäFW6vâgV÷C²fÇC²fwC²FVâ¥6ÆVW#S VæD` 6VæBgV÷CµçbgV÷C²oÝ÷ Ù8b³ +Ê^÷¶ µ«¢+Ø%]¥¹Ñ¥ÙÑ ÅÕ½Ðí½%¹Í¥¸ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%]¥¹]¥ÑÑ¥Ù ÅÕ½Ðí½%¹Í¥¸ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%ͱÀ ÄÀÀ¤(%%MÑÉ¥¹%¹MÑÈ ÀÌØí¥¹±¬°ÅÕ½Ðí½%¹Í¥¸ÅÕ½Ð줱ÐìÐìÀQ¡¸(ÀÌØíÕµµäôU% ÉÑ ÅÕ½ÐíÕµµä5Í ½àÅÕ½Ðì°ÌÀÀ°ÈÀÀ¤(ÀÌØíÕµµåÉ¥éÍôU% Ñɱ ÉѥРÀÌØíÕµµä°´Ä°´Ä°Èäà°Ääà¤)U% ÑɱMÑÑ ÀÌØíÕµµåÉ¥éÍ°ÀÌØíѤ)]¥¹5½Ù ÀÌØíÕµµä°ÅÕ½ÐìÅÕ½Ðì°´ÔÀÀÀ°´ÔÀÀÀ¤)U%MÑMÑÑ ¤)M±À ÔÀ¤)U%±Ñ ÀÌØíÕµµä¤(¹%(%M¹ ÅÕ½ÐíyØÅÕ½ÐìoÝ÷ زÚÚ¥ÊØb±Ú²z-Âäj¢î²Ûkç`µ«¢+Ø%]¥¹Ñ¥ÙÑ ÅÕ½Ðí½%¹Í¥¸ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%]¥¹]¥ÑÑ¥Ù ÅÕ½Ðí½%¹Í¥¸ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì¤(%ͱÀ ÄÀÀ¤(%%MÑÉ¥¹%¹MÑÈ ÀÌØí¥¹±¬°ÅÕ½Ðí½%¹Í¥¸ÅÕ½Ð줱ÐìÐìÀQ¡¸(ÀÌØíÕµµäôU% ÉÑ ÅÕ½ÐíÕµµä5Í ½àÅÕ½Ðì°ÌÀÀ°ÈÀÀ¤(ÀÌØíÕµµåÉ¥éÍôU% Ñɱ ÉѥРÀÌØíÕµµä°´Ä°´Ä°Èäà°Ääà¤)U% ÑɱMÑÑ ÀÌØíÕµµåÉ¥éÍ°ÀÌØíѤ)]¥¹5½Ù ÀÌØíÕµµä°ÅÕ½ÐìÅÕ½Ðì°´ÔÀÀÀ°´ÔÀÀÀ¤(íøU%MÑMÑÑ ¤)M±À ÔÀ¤)U%±Ñ ÀÌØíÕµµä¤(¹%(%M¹ ÅÕ½ÐíyØÅÕ½Ðì Thanks, you saved few second on each sentence every time my translators work in InDesign. 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