Jump to content

SciTE "Stop Executing" Ctrl-Break Shortcut Not Working


sesk
 Share

Recommended Posts

In the tools menu there is a "Stop Executing" menu item linked to the Ctrl-Break shortcut.

While running a script, this item becomes available to click.

But when trying to use the shortcut, it does not seem to have any effect.

This functionality is also mentioned when running as script in the console:

>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "test.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop

 

Looks like pressing on the Break key counts as Pause; HotKeySet("{BREAK}", "...") does not trigger the function, while HotKeySet("{PAUSE}", "...") does

Edited by sesk
Link to comment
Share on other sites

  • Developers

What happens when you select Tools/Stop Executing from the SciTE Menu?
Are you running the latest version? 
Show me the whole SciTE console Output so I can see what your enviroment is,

Jos

Edited 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

Using the menu stops the script.

My installed version, 3.3.14.2, seems to be the latest.

This is the output.

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\User\Desktop\test.au3" /UserParams    
+>03:47:34 Starting AutoIt3Wrapper v.16.612.1119.0 SciTE v.3.6.6.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\User\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Phil\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.2)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\User\Desktop\test.au3
+>03:47:34 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\User\Desktop\test.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop

 

Link to comment
Share on other sites

  • Developers

There is no real relation between the release of AutoIt3 and the SciTE4AutoIt3 version.
You are running the latest AutoIt3Wrapper and I've just tested and when I press Ctrl+FN+Break then it stops fine. ( Break on my Laptop is FN+PGDN to get Break)
Are you running any other program that is capturing keys?

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

There are no other programs capturing keys. I have a desktop keyboard and neither left or right ctrl + break triggers the shortcut (or shift/left alt/right alt).

Is this keybinding defined somewhere? I would be interested in seeing the keycode required to trigger it. Noticably because Microsoft defines a VK_CANCEL and a VK_PAUSE, which are not the same. And my Pause/Break key doesn't seem to be sending VK_CANCEL, but VK_PAUSE, and as a desktop keyboard without FN, I can't toggle between them.

Have you tried using a desktop computer with a standard layout keyboard?

...Actually, reading this: https://www.wikiwand.com/en/Break_key#/Modern_keyboards

The mentioned Ctrl+Sroll Lock combination seems to trigger the keybinding.

Link to comment
Share on other sites

  • Developers

The Ctrl-Break combination is monitored by SciTE itself. Any other defined combination in AutoIt3Wrapper.ini is done through a simple SetHotKey() statement.
The SciTE Source is available on the SciTE website in case you want to have a look at the source.

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

  • Moderators

sesk,

Quote

Have you tried using a desktop computer with a standard layout keyboard?

Works fine for me.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...