Jump to content

Recommended Posts

Posted (edited)

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
  • Developers
Posted (edited)

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.
  :)

Posted

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

 

  • Developers
Posted

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.
  :)

Posted

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.

  • Developers
Posted

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.
  :)

  • Moderators
Posted

sesk,

  Quote

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

Expand  

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:

  Reveal hidden contents

 

Posted

Yea SciTE has it bound to Ctrl+VK_CANCEL

VK_CANCEL, IDM_STOPEXECUTE,  VIRTKEY, CONTROL

And I guess some keyboards use the "Pause/Break" to send Pause, others Break.

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
  • Recently Browsing   0 members

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