Sign in to follow this  
Followers 0
Ármányos Kő

Invisible MsgBox?

8 posts in this topic




I am sure the invisible message box is not the only way to solve your problem :D, 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_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: 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 Program

AutoIt_Icon_small.pngUDFs: 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
 
AutoIt_Icon_small.pngExamples: 
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 AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ClipPut("")
Send("^c")
$all = ""
While Not $all <> ""
    Sleep(10)
    $all = ClipGet()
WEnd
MsgBox(0,"",$all) ;<== send("^v")

Edited needed to work harder

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
Share on other sites

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

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

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").

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

I am sure the invisible message box is not the only way to solve your problem :D, 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.

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  
Followers 0