Ultratech Posted November 5, 2006 Share Posted November 5, 2006 I noticed shift+esc closes my GUI, there any way to prevent that? I have shift+esc set to send on one of my buttons when I click it. Link to comment Share on other sites More sharing options...
Paulie Posted November 5, 2006 Share Posted November 5, 2006 (edited) @OP, For future reference, when posting a thread , make its title remotely pertinent to question/subject you are posting about. This is the support section of the forum, its meant for questions, so naming a thread "I Have A Problem", or "Question", or "Help Me My, Code Doesn't Work", or "Noob Requesting Assistance" Is redundant, and makes it harder for anyone else who has the same/similar questions as you to find the answer by searching the forums, which in turn means people often have to make extra threads and people who are answering the threads just end up repeating themselves several times over. It is counter-productive. EDIT: I wonder how many times I'll have to post this before people start to get it... Edited November 5, 2006 by Paulie Link to comment Share on other sites More sharing options...
Ultratech Posted November 5, 2006 Author Share Posted November 5, 2006 Haven't found anything in the readme. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 5, 2006 Developers Share Posted November 5, 2006 I am pretty sure its line 5 of your script you didn't show .... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Paulie Posted November 5, 2006 Share Posted November 5, 2006 I am pretty sure its line 5 of your script you didn't show .... Nope, definitely line 23... Link to comment Share on other sites More sharing options...
Ultratech Posted November 5, 2006 Author Share Posted November 5, 2006 This is what I have for the button. While 1 $msg = GUIGetMsg() Select Case $msg = $test2 Send("{SHIFTDOWN}{ESC}{SHIFTUP}") EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend It's pressing shift and esc for something else but it's also closing my GUI. Link to comment Share on other sites More sharing options...
Paulie Posted November 5, 2006 Share Posted November 5, 2006 (edited) This is what I have for the button.(Snip)It's pressing shift and esc for something else but it's also closing my GUI.Well, is there a reason that you can't show us the entire code?It sounds demanding, but its like you are asking us to read your mind... Edited November 5, 2006 by Paulie Link to comment Share on other sites More sharing options...
Richard Robertson Posted November 5, 2006 Share Posted November 5, 2006 We need the whole script. Errors are rarely single location things. Link to comment Share on other sites More sharing options...
Ultratech Posted November 5, 2006 Author Share Posted November 5, 2006 That is pretty much my entire code, expect for creategui and that. All I need to know is if there's a command for disabling shift+esc to close my script. Link to comment Share on other sites More sharing options...
Developers Jos Posted November 5, 2006 Developers Share Posted November 5, 2006 (edited) This is what I have for the button.While 1 $msg = GUIGetMsg() Select Case $msg = $test2 Send("{SHIFTDOWN}{ESC}{SHIFTUP}")EndSelect If $msg = $GUI_EVENT_CLOSE Then ExitLoopWendIt's pressing shift and esc for something else but it's also closing my GUI.Ok, let me give you another hint when posting a question.Post an short script that shows/demos the problem and stop posting stuff that only let us guess..Also be CLEAR in what your exact problem is..You might get some real help ..... Edited November 5, 2006 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
xcal Posted November 5, 2006 Share Posted November 5, 2006 Try this...your answer is there. $path = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', "InstallDir") $find = 'Opt' Run($path & '\AutoIt3Help.exe ' & $find) How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
cppman Posted November 5, 2006 Share Posted November 5, 2006 (edited) I get what your saying..... Opt("GUICloseOnESC", 0) GUICreate("test") GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg == -3 Exit EndSelect WEnd you need to use Opt("GUICloseOnESC", 0). Edited November 5, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
theguy0000 Posted November 5, 2006 Share Posted November 5, 2006 Try this...your answer is there. $path = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', "InstallDir") $find = 'Opt' Run($path & '\AutoIt3Help.exe ' & $find)lol nice The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Ultratech Posted November 5, 2006 Author Share Posted November 5, 2006 Nevermind I found a way around it. Link to comment Share on other sites More sharing options...
Paulie Posted November 5, 2006 Share Posted November 5, 2006 (edited) Try this...your answer is there. $path = RegRead('HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt', "InstallDir") $find = 'Opt' Run($path & '\AutoIt3Help.exe ' & $find) oÝ÷ Ûú®¢×¯*.q©Ý¢+bÞ)Þjëh×6Run("hh.exe "&@ProgramFilesDir&"\AutoIt3\AutoIt.chm","", @SW_MAXIMIZE) (Without the find thing though...) Edited November 5, 2006 by Paulie Link to comment Share on other sites More sharing options...
xcal Posted November 5, 2006 Share Posted November 5, 2006 Ya, but my way actually opens the help file to the relevant section. How To Ask Questions The Smart Way 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