kcvinu Posted March 8, 2015 Posted March 8, 2015 (edited) Hi all, Ctrl + Break is not working in my laptop. When i try to stop a running script, if i press Ctrl + Break (Pause Break) there is no response from SciTE. But same short key is working in my PC. I tried with script contains these lines Send("^{Break}") and Send("{LCTRL}{Break}") But didn't work. Lap top's OS = Win 8.1 64 bit. Edit : Can i change this hot key ? if so how ? Edited March 8, 2015 by kcvinu Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
sdfaheemuddin Posted March 8, 2015 Posted March 8, 2015 Your laptop may have fn key use Ctrl + Fn key + Break kcvinu 1
kcvinu Posted March 8, 2015 Author Posted March 8, 2015 Hi sdfaheemuddin, Thanks. Let me try Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
BrewManNH Posted March 9, 2015 Posted March 9, 2015 Why not just use Exit in your script instead of trying to "Send" the ctrl+break? Unless Scite was the active window, Ctrl+Break isn't going to work anyways. This seems like a really foolish way to try and exit your own script. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
kcvinu Posted March 9, 2015 Author Posted March 9, 2015 Hi BrewManNH, When i am testing some scripts , i need to stop running them manually. That's why i am asking this. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
TheSaint Posted March 9, 2015 Posted March 9, 2015 (edited) You might be better off looking at >what Stumpii did. Other than that, doesn't ESC quit out of a running script ... I seem to recall something about that? Personally, I just right-click the icon in the tray, and exit that way. Edited March 9, 2015 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)
caramen Posted March 9, 2015 Posted March 9, 2015 You might be better off looking at >what Stumpii did. Other than that, doesn't ESC quit out of a running script ... I seem to recall something about that? Personally, I just right-click the icon in the tray, and exit that way. Sometime when you got only mouse move / click ... you just cant do that xD sdfaheemuddin 1 My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
alienclone Posted March 9, 2015 Posted March 9, 2015 on my laptop keyboard i have to hold SHIFT while pressing the pause/break key for it to work, maybe your's also? CTRL+SHIFT+PAUSE If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version
BrewManNH Posted March 9, 2015 Posted March 9, 2015 Hi BrewManNH, When i am testing some scripts , i need to stop running them manually. That's why i am asking this. I understand what you're doing, I think how you're doing it is makes no sense. If you want to exit your script, put an Exit command in the function to exit the script. Sending CTRL+Break to SciTE to do it is ass-backwards. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
sdfaheemuddin Posted March 9, 2015 Posted March 9, 2015 Can I get the model of your laptop if you don't mind.
kcvinu Posted March 9, 2015 Author Posted March 9, 2015 sdfaheemuddin, if you are asking to me, then my laptop is Asus Notebook PC X551 MA Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
sdfaheemuddin Posted March 9, 2015 Posted March 9, 2015 Yes try Ctrl + Fn key + Break (END Key) By the way do you have your laptop with you now
kcvinu Posted March 9, 2015 Author Posted March 9, 2015 @ sdfaheemuddin, yes. Spoiler My Contributions Glance GUI Library - A gui library based on Windows api functions. Written in Nim programming language. UDF Link Viewer --- A tool to visit the links of some most important UDFs Includer_2 ----- A tool to type the #include statement automatically Digits To Date ----- date from 3 integer values PrintList ----- prints arrays into console for testing. Alert ------ An alternative for MsgBox MousePosition ------- A simple tooltip display of mouse position GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function Access_UDF -------- An UDF for working with access database files. (.*accdb only)
Solution caramen Posted March 9, 2015 Solution Posted March 9, 2015 (edited) Personnaly i did a looooot of script with badass mouse click / move ... look at this... this is the best way. HotKeySet("{ESCAPE}", "Exite") Func Exite () ;==>Quitter Exit EndFunc If you want to leave the script without any action... AdlibRegister ("Exite", 30 000) Func Exite () ;==>Quitter Exit EndFunc Leaving the script after 30 Seconds Otherwise if you dont need that you still can automate OSK.EXE Edited March 9, 2015 by caramen kcvinu 1 My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Moderators SmOke_N Posted March 9, 2015 Moderators Posted March 9, 2015 I felt like I was looking at a page from "Where's Waldo" looking for the "badass"ness. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
caramen Posted March 9, 2015 Posted March 9, 2015 (edited) I felt like I was looking at a page from "Where's Waldo" looking for the "badass"ness. how i should take this ?^^ Edited March 9, 2015 by caramen My video tutorials : ( In construction ) || My Discord : https://discord.gg/S9AnwHw How to Ask Help || UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote Spoiler Water's UDFs:Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - Wiki Tutorials:ADO - Wiki
Moderators SmOke_N Posted March 9, 2015 Moderators Posted March 9, 2015 Humorously Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
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