Mixam Posted April 5, 2008 Share Posted April 5, 2008 msgbox() pausing the script is driving me nuts. Is there a way for me to popup a message box that doesn't pause the script? Only thing i have been able to think of is making myself a new gui message box. All I want is a popup box that has a message and can be closed when you have read the message. If only msgbox() had an option to not pause the scipt I would use that. While I'm already asking a question, I might as well ask another. How do i get my gui to open to the tab i want? It has 4 tabs, and i want to be able to open it to a specific tab when it opens depending on what menu option i click in the toolbar menu. Like first tab is setup and 4th is about. So if i click setup in the menu i want the gui to open up to setup and if i click about I want it to open up to the about tab. Any help would be greatly appreciated Link to comment Share on other sites More sharing options...
Swift Posted April 5, 2008 Share Posted April 5, 2008 (edited) First Question: Make a script, and compile it as a .exe and run it Second Question: Use: GUICtrlSetState($MyTab3, $GUI_FOCUS) Edited April 5, 2008 by R6V2 Link to comment Share on other sites More sharing options...
Tomb Posted April 5, 2008 Share Posted April 5, 2008 message boxes always seem to pause a script. can you use a balloon tooltip instead? ToolTip("This is a Message", 400, 400, "message", 0, 1) sleep(4000) Link to comment Share on other sites More sharing options...
Mixam Posted April 5, 2008 Author Share Posted April 5, 2008 Thank you for your quick response. One more question while i'm here: How do i get a txt file to open up in notepad ?? I could run notepad, but then don't know how to get it to load the file i want. There has to be an easy way to do this and i just can't find it. I've been searching the help file but I can't figure it out. I ran accros word.au3 but i just want it to open in notepad. I don't even have word... Link to comment Share on other sites More sharing options...
Swift Posted April 5, 2008 Share Posted April 5, 2008 ShellExecute("notepad", $FileToOpen) Link to comment Share on other sites More sharing options...
Mixam Posted April 5, 2008 Author Share Posted April 5, 2008 message boxes always seem to pause a script. can you use a balloon tooltip instead? ToolTip("This is a Message", 400, 400, "message", 0, 1) sleep(4000) No i want the message to stay open till someone clicks ok or cancel or whatever. I though of tootip, or splashtoscreen, but both just stay open till sleep is over. I want it to stay open indefinately until it gets closed. However i don't want the script remaining paused during this time. Link to comment Share on other sites More sharing options...
cppman Posted April 5, 2008 Share Posted April 5, 2008 (edited) Global $sFile = "file.txt" Run("notepad.exe " & $sFile)EDIT: or you can use ShellExecute like R6V2 said. Edited April 5, 2008 by cppman Miva OS Project Link to comment Share on other sites More sharing options...
Mixam Posted April 5, 2008 Author Share Posted April 5, 2008 ShellExecute("notepad", $FileToOpen) Thank you very much! I used ShellExecute("notepad", "readme.txt", @ScriptDir) and it worked Link to comment Share on other sites More sharing options...
JustinReno Posted April 5, 2008 Share Posted April 5, 2008 Why not just use /AU3ExecuteLine? Link to comment Share on other sites More sharing options...
Swift Posted April 5, 2008 Share Posted April 5, 2008 Why not just use /AU3ExecuteLine?Maybe because that requires AutoIt? Link to comment Share on other sites More sharing options...
JustinReno Posted April 5, 2008 Share Posted April 5, 2008 (edited) No it doesn't. Edit: You don't have to have AutoIt installed. Edited April 5, 2008 by JustinReno Link to comment Share on other sites More sharing options...
Nevin Posted April 6, 2008 Share Posted April 6, 2008 I guess you could write stand-alone scripts to call, that had msgboxs in them and nothing more. Then they would be running separately and it would not pause anything... Seems kind of silly and cumbersome, but that's the best idea I've got...Because I suck. Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 You could put it in the script itself. Link to comment Share on other sites More sharing options...
Swift Posted April 6, 2008 Share Posted April 6, 2008 You could put it in the script itself.Another useless remark. If he puts it in the script...It pauses the script. Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 Your mind cannot comprehend the most basic things, can it? Link to comment Share on other sites More sharing options...
Swift Posted April 6, 2008 Share Posted April 6, 2008 Your mind cannot comprehend the most basic things, can it?My mind can comprehend, alot more than yours can. Yours just goes, in, and then out. Your problem is, that you never give enough information, so you leave room for alot of errors, and then when they're wrong, you insult them. I wonder why know one likes you? Dbak didn't, thats why he banned you. And im pretty sure, more people like me than you. Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 I did not leave errors. Your mind did not comprehend what I said, your too young (Especially with that childish remark) This is in the helpfile. Run(@ScriptFullPath & ' /AutoIt3ExecuteLine "MsgBox(0, ''Hello World!'', ''Hi!'')"') PS. I'm LS Link to comment Share on other sites More sharing options...
BrettF Posted April 6, 2008 Share Posted April 6, 2008 Please keep it on topic and play nicely kiddies... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
JustinReno Posted April 6, 2008 Share Posted April 6, 2008 (edited) I did keep it on topic. Don't call me a kiddy. I'm not a software cracker. Edited April 6, 2008 by JustinReno Link to comment Share on other sites More sharing options...
Swift Posted April 6, 2008 Share Posted April 6, 2008 I did keep it on topic. Don't call me a kiddy. I'm not a software cracker.Haha, you are a kiddie. I'm childish? Have you ever seen yourself post? 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