kcvinu

Ctrl + Break is not working

17 posts in this topic

#1 ·  Posted (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 by kcvinu

My Contributions

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)

 

Share this post


Link to post
Share on other sites



Your laptop may have fn key

use Ctrl + Fn key + Break

1 person likes this

Share this post


Link to post
Share on other sites

Hi 

sdfaheemuddin, Thanks. Let me try

My Contributions

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)

 

Share this post


Link to post
Share on other sites

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 Gude
How 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

Share this post


Link to post
Share on other sites

Hi 

BrewManNH, When i am testing some scripts , i need to stop running them manually. That's why i am asking this.

My Contributions

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)

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by TheSaint

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

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)

userbar.png

Share this post


Link to post
Share on other sites

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

1 person likes this

Share this post


Link to post
Share on other sites

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

:alien:


if @error Then
	MsgBox(262192,"",@ComputerName&" slaps "&@UserName&" around a bit with a large trout!")
	EndIf

>Exit code: 0

REAL search results

"Yeah yeah yeah, patience. How long will that take?"  -Ed Gruberman

Share this post


Link to post
Share on other sites

 

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 Gude
How 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

Share this post


Link to post
Share on other sites

Can I get the model of your laptop if you don't mind.

Share this post


Link to post
Share on other sites
sdfaheemuddin, if you are asking to me, then my laptop is Asus Notebook PC X551 MA

My Contributions

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)

 

Share this post


Link to post
Share on other sites

Yes try Ctrl + Fn key + Break (END Key)

By the way do you have your laptop with you now

Share this post


Link to post
Share on other sites

@

sdfaheemuddin, yes. 

My Contributions

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)

 

Share this post


Link to post
Share on other sites

#14 ·  Posted (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 by caramen
1 person likes this

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

I felt like I was looking at a page from "Where's Waldo" looking for the "badass"ness.

how i should take this :P ?^^

Edited by caramen

Share this post


Link to post
Share on other sites

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.

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