careca Posted January 8, 2013 Share Posted January 8, 2013 Hi, is it possible to make a change somewhere, somehow, to stop the script from scite with a single key of choice? Right now, if i remember right, the way to stop a script is by pressing ctrl-break or something like that, i was wondering if i can change this to F6 or some key thats free. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Bowmore Posted January 8, 2013 Share Posted January 8, 2013 Unless you have disabled it via opt() pressing Esc should stop the running script . "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
careca Posted January 8, 2013 Author Share Posted January 8, 2013 Ok thank you, but i still would like to know if i can change the stop key.. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 8, 2013 Moderators Share Posted January 8, 2013 You can also set a HotKey to exit. Look in the helpfile under HotKeySet. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 8, 2013 Moderators Share Posted January 8, 2013 Bowmore, pressing Esc should stop the running scriptNot so. The Opt option you are thinking of is GUICloseOnESC. AutoIt normally interprets ESC as a $GUI_EVENT_CLOSE event and closes the script GUI - the Opt can change this behaviour. But ESC does not stop a script with no GUI as you can see if you run this simple code: While 1 Sleep(10) WEnd All clear? M23  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area  Link to comment Share on other sites More sharing options...
PhoenixXL Posted January 8, 2013 Share Posted January 8, 2013 Create a script thatwould look for {F5}get the latest PID of Autoit.exe or occurance of Autoit.exe [through WMI]would set a HotKey of your own choice to terminate the process when activatedand unset the HotKey when the PID of that process doesnt exist My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 8, 2013 Moderators Share Posted January 8, 2013 Or, you could make it simple, something like this. HotKeySet("{F5}", "Quit") While 1 Sleep(1000) WEnd Func Quit() Exit EndFunc "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
PhoenixXL Posted January 8, 2013 Share Posted January 8, 2013 You can try capturing [Ctrl+Break] and proceed as said by JLogan3o13 telmob 1 My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
careca Posted January 8, 2013 Author Share Posted January 8, 2013 Thank you all, i understand the hotkey idea, but thats not what im looking for, sometimes, in some applications, the hotkeys are set on a plain text file, or ini, or something like that, and my idea was to be able to change Ctrl+Break hotkeybind to something else, you can call it bindings list or whatever. See what i mean? I was thinking this could be done in the SciTe config files.. Anyone know what im talking about? Has happened to me before, some situations where the script was looping and stuck and no hotkeys would work, had to close it from scite, thats what i need, but with a more accessible key. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Bowmore Posted January 8, 2013 Share Posted January 8, 2013 @Melba23Thanks, I had not realised that Esc only triggered a $GUI_EVENT_CLOSE event. I must pay more attention to the help file. "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted January 8, 2013 Moderators Share Posted January 8, 2013 Bowmore,I must pay more attention to the help fileA good New Year's resolution for us all! M23  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area  Link to comment Share on other sites More sharing options...
Developers Jos Posted January 8, 2013 Developers Share Posted January 8, 2013 When you use the full version of SciTE4AutoIt3 you can use Ctrl+Alt+F5 to interrupt the running of Autoit3wrapper and the shelled autoit3. When you use the lite version you could add something like the following to SciTE User: user.shortcuts=\ Ctrl+x|IDM_STOPEXECUTE| Ctrl+x will now interrupt the process. Be aware this will not work with the Full version in combination with AutoIt3Wrapper. Let me know when you have questions, Jos 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...
careca Posted January 8, 2013 Author Share Posted January 8, 2013 Thank you, that is on the track with what im looking for, but i don't really use the lite version, as i find it, well, too "lite". Question is, how can i do the same in the full version? If possible. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Developers Jos Posted January 8, 2013 Developers Share Posted January 8, 2013 (edited) Thank you, that is on the track with what im looking for, but i don't really use the lite version, as i find it, well, too "lite".Question is, how can i do the same in the full version? If possible.AutoIt3Wrapper has the Ctrl+Alt+F5 for restart and Ctrl+Break shortcut by default to interrupt the execution.That is hardcode in AutoIt3Wrapper so you need to modify the provided source yourself.Jos Edited January 8, 2013 by Jos 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...
careca Posted January 8, 2013 Author Share Posted January 8, 2013 Thank you, thats what i needed to know. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Developers Jos Posted January 8, 2013 Developers Share Posted January 8, 2013 (edited) I take that back... the posted solution will also work for the full version of SciTE. Just give it a try. Edited January 8, 2013 by Jos 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...
careca Posted January 9, 2013 Author Share Posted January 9, 2013 solution will also work for the full version of SciTE. Just give it a try. Thank you very much!Just did, and it works perfectly, even tried with a single key and it worked.This is exactly what i was looking for, although, is there a reason i can't use F6?Is it because its reserved for AU3Info and recorder, so i cant bind to that key?It must be that, because with F4, it works! and this is next to perfect.Sometimes i just want to test the gui, a quick button position check or something,and with f5 to start and f4 to stop, its just what i needed, some may argue that i could click to close,but i don't care, i like practical stuff. Thanks a million! Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
VAN0 Posted June 26, 2022 Share Posted June 26, 2022 On 1/8/2013 at 2:47 PM, Jos said:  AutoIt3Wrapper has the Ctrl+Alt+F5 for restart and Ctrl+Break shortcut by default to interrupt the execution. That is hardcode in AutoIt3Wrapper so you need to modify the provided source yourself.  Jos 9 years later, is there a way to disable/overwrite the default hotkeys? (I'm trying use VSCode editor and this hotkey interfere) Link to comment Share on other sites More sharing options...
Danp2 Posted June 26, 2022 Share Posted June 26, 2022 @VAN0Are you using the AutoIt extension for VSCode? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
VAN0 Posted June 26, 2022 Share Posted June 26, 2022 Yes, I'm trying to extend it to handle properly multiple launched scripts: https://github.com/loganch/AutoIt-VSCode/pull/99 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