Solved ctrl break in office 2010, windows 7, hp dv4t laptop

Leah01

New member
Local time
2:50 PM
Messages
5
I am running Office 2010 on an HP dv4t laptop with Windows 7. While testing new spreadsheets/databases I've written in Excel/Access, I sometimes need to break out of a process. For example, if an Excel Find command loops endlessly or an Access query never ends, I don't want to kill the application; I just want to kill the Find or the Query by hitting Ctrl-Break, as I used to do on my old Windows XP desktops. Trouble is, there is no "Break" key on my HP laptop. So I tried the Windows 7 onscreen keyboard, but it has no "Break" key either.

I called HP, as I am under warranty. They insisted that no laptop has this key, so they referred me to Microsoft. As this is a problem with an Office application under Windows 7, Microsoft bounced me back and forth between twenty-seven Windows 7 and Office techs for six hours!!! before they referred me back to HP.

I've seen lots of people have posted this question online, but I have found no solution. This effectively renders my Access applications unmodifiable!

Anyone know how to activate a control break using some online application? (I don't want to lug around an external keyboard just for this.)

Thank you.
 

My Computer My Computer

At a glance

windows 7 home premium 64bit
Computer type
Laptop
Computer Manufacturer/Model Number
hp dv4t
OS
windows 7 home premium 64bit
Keyboard
Standard PS/2
To cause Break you can try ESC while in Excel or FN + Right Shift (works for some HP models).

FN button is located at bottom left corner, next to CRTL.
 

My Computer My Computer

At a glance

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
Computer type
PC/Desktop
OS
Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
Other Info
"The scale icon at the top right of a post or tutorial is how you can give rep to the member."
Thanks, Neutron16. I tried those (using both the physical and the online keyboards), but they did not work.
 

My Computer My Computer

At a glance

windows 7 home premium 64bit
Computer type
Laptop
Computer Manufacturer/Model Number
hp dv4t
OS
windows 7 home premium 64bit
Keyboard
Standard PS/2
I have the same problem when I use Remote Desktop Connection to remote to my desktop at the office. The laptop does not have a break key. I wrote/use an AutoIt script to send that key to the applicable window. Let me know if you are interested in doing something like that.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
would appreciate info on autoIt script.

Thanks, I would truly appreciate info on how to clone your autoIt script for ctrl-break.
 

My Computer My Computer

At a glance

windows 7 home premium 64bit
Computer type
Laptop
Computer Manufacturer/Model Number
hp dv4t
OS
windows 7 home premium 64bit
Keyboard
Standard PS/2
Sorry, but parts of this post might not make sense until you read the whole post.

My script is specifically written to be use via a remote control session so I do not need the TrayTip and the Sleep lines that you see in the code below. You might not need them either, it depends on how you wish to invoke the script. If you have your MS Access full screened, then it might not be easy for you to double click on a shortcut to the script. It might be easiest to assign a Windows shortcut key (e.g. Ctrl-Alt-B) to a shortcut that leads to the script.

Even if you have a portion of your desktop showing or if you use the Desktop toolbar on the Taskbar, you may find it difficult to double click on anything because the computer is so busy running the MS Access search that it might not accept each click fast enough to be considered a double click. Right clicking on the script (or a shortcut to the script) and then selecting Run Script from the context menu is an alternative, but context menus are slow to build when the computer is busy. Even OS shortcut keys can be missed at times. If, after a few seconds, you do not see the TrayTip, then press Ctrl-Alt-B again. If you should happen to end up with two or more copies of the script running at once, it won't matter; the other copies will just timeout after 5 or so seconds and will exit.

Windows has a "feature" (I'll not call it a bug since it has been this way since Windows 3). If you hold down the Ctrl key and you send the Ctrl key via a script, then Ctrl key will continue to be "held down" even after you release the Ctrl key. It is not a big deal to undo this condition; you just press and release the Ctrl key once again. But to avoid the condition all together, I try to remember to add a Sleep line that gives me plenty of time to release the Ctrl on the real keyboard before the script sends a virtual Ctrl during the Ctrl Break line of code.

Code:
Opt("TrayIconDebug", 1)

TrayTip("", "waiting for you to release the Ctrl key", 100)
Sleep(5000)
WinActivate("Find and Replace")
If WinWaitActive("Find and Replace", "", 5) Then Send("^{BREAK}")
I'll try and explain each line so that you can modify things as desired.
Feel free to ask for help with modifications and I'll do what I can for you.

TrayIconDebug
If enabled shows the current script line in the tray icon tip to help debugging.
0 = no debug information (default)
1 = show debug
If the script hangs, mouse over the AutoIt icon in the system tray and a tool tip should let you know the line of code that it is hung up on. There are much more detailed debug tools, but I leave this one turned on for minor debugging. There are no lines of code in this version of the script that can hang. If you just want to see the debug tool tip in action, run the script while there is no MS Access search taking place and you will have 5 seconds to mouse over the AutoIt icon in the notification area (system tray) down by the clock. The AutoIt icon might be hidden. You might want to tell Windows to always show icons from AutoIt or to just always show every system tray icon.

TrayTip and Sleep
I've already explained why they are there.

WinActivate
...is just like it sounds. It activates the window. (Brings it into focus. Brings it to the foreground.) If you opt to start the script from a desktop shortcut, then the desktop will be in focus until this line of code attempts to change that.

WinWaitActive
Again, this is just like it sounds. The script waits until the window of interest is active before moving on to more code. The WinWaitActive function has a timeout feature. I have set the timeout to 5 seconds. If the timeout occurs, then the the function will return a 0. This 0 makes the condition for the single line If statement not true - so the Sending of the Ctrl-Break will not happen.

In other words, if the Window of interest is not present or the computer is so busy that it cannot activate the window of interest within 5 seconds, the script will not attempt to send the Ctrl-Break key combo to any window; instead, the script will just exit. If desired, code can be added to let you know that it did not try to send the Ctrl-Break. I've just never had it be that busy, so I did not bother to code a notification.

Here is a post that has some more info about AutoIt (and a download link):
http://www.sevenforums.com/general-...ear-after-explorer-restart-2.html#post1841812

You do not need to compile this script into an exe; just leave it as a text file. If you plan on not using the OS shortcut key (e.g. Ctrl-Alt-B), then you can just put the script file directly on your desktop. Otherwise, put the script elsewhere and place a shortcut to it on your desktop.

Obviously, the script above is meant to send Ctrl-Break to the MS Access Find/Replace dialog box. You will need to code another script for your MS Excel needs. It is possible to put the code for both needs into one script, but we can save that for later.

AutoIt comes with a script editor. Because you will be making another script, I would suggest that you install the more advanced editor from here. (Click on the link named SciTE4AutoIt3.exe) That version should give you auto-complete prompts and syntax prompts - as well as take you to the help file entry for a given function if you place the cursor on the function and press F1.


Now - having put you to sleep with that boring novel of a post - I'll mention another way to use a script to send the Ctrl-Break key combo to an app. You could have the script start when your computer starts and have the script run in a loop until you press a key combo like Ctrl-Shift-a. That would cause the script to activate the MS Access window and send the Ctrl-Break key combo. Pressing another key combo like Ctrl-Shift-x could send the Ctrl-Break key combo to MS Excel. The way that you write/use the script depends on how often you encounter the need to send Ctrl-Break key combo to an app.

Here is a link to another AutoIt script that I offered to another OP: http://www.sevenforums.com/microsof...-txt-file-existing-extension.html#post2336160 but I never heard back to know if the OP made use of it :-(
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
I am running Office 2010 on an HP dv4t laptop with Windows 7. ... Trouble is, there is no "Break" key on my HP laptop.

There is on mine. Some of the key require you to hold down the Function (Fn) key. On my Keybord the [pg dn] key in the upper right corner has "break" in a box bellow the "pg dn". For me ctrl-fn-[pg dn] does a ctrl-break. Works great. If you can't find it, I would look at the documentation for your laptop.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Windows has a "feature" (I'll not call it a bug since it has been this way since Windows 3). If you hold down the Ctrl key and you send the Ctrl key via a script, then Ctrl key will continue to be "held down" even after you release the Ctrl key. It is not a big deal to undo this condition; you just press and release the Ctrl key once again. But to avoid the condition all together, I try to remember to add a Sleep line that gives me plenty of time to release the Ctrl on the real keyboard before the script sends a virtual Ctrl during the Ctrl Break line of code.

What you are referring to is called "Sticky Keys". See:
Using StickyKeys

It is possible to turn of this feature. Have you tried that?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Sticky Keys is off and this still happens.

Sending the Ctrl key can also impact the Alt key so I tab the left Ctrl and left Alt keys followed by the right Ctrl and right Alt keys.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
I don't use excel or access very much, but I was wondering if CTRL+Z will do the trick.
 

My Computer My Computer

At a glance

Windows 7 Home Premium SP1 64bitIntel Core i38GB DDR3Intel HD graphics family
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo 1068AHU B570 (laptop)
OS
Windows 7 Home Premium SP1 64bit
CPU
Intel Core i3
Motherboard
Lenovo Emerald Lake
Memory
8GB DDR3
Graphics Card(s)
Intel HD graphics family
Sound Card
Realtek HD audio
Monitor(s) Displays
ThinkPad Display 1366x768 (15.6")
Hard Drives
WD 320GB WDC WD3200BPVT
Internet Speed
80Kbs maximum -->speed is a misnomer
Other Info
Logitech MK550 wireless mouse/keyboard combo used when at home.
I don't use excel or access very much, but I was wondering if CTRL+Z will do the trick.

Ctrl-Z is Undo. What the OP wants to to stop VBA code execution for debugging.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
HiTechCoach,

Thanks for the clarification.
 

My Computer My Computer

At a glance

Windows 7 Home Premium SP1 64bitIntel Core i38GB DDR3Intel HD graphics family
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo 1068AHU B570 (laptop)
OS
Windows 7 Home Premium SP1 64bit
CPU
Intel Core i3
Motherboard
Lenovo Emerald Lake
Memory
8GB DDR3
Graphics Card(s)
Intel HD graphics family
Sound Card
Realtek HD audio
Monitor(s) Displays
ThinkPad Display 1366x768 (15.6")
Hard Drives
WD 320GB WDC WD3200BPVT
Internet Speed
80Kbs maximum -->speed is a misnomer
Other Info
Logitech MK550 wireless mouse/keyboard combo used when at home.
I called HP, as I am under warranty. They insisted that no laptop has this key, ...
Tell HP next time you call them their Envy 17 laptops have BREAK written in big letters on F11 key, so CTRL + FN + F11 works as CTRL + BREAK. Looking at the key as we speak type!

This effectively renders my Access applications unmodifiable!
...
...
I don't want to lug around an external keyboard just for this.
Please do not take this wrong but it seems a bit odd that first you tell you cannot work with Access if you do not find a solution, then you continue telling you are not willing to do the most sensible thing, the easiest solution and use an external keyboard.

Kari
 

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Thanks, Dr. Pepper, but that did not work.

I had trouble getting UsernameIssues' AutoIt solution to work, too.

Earlier, I had tried Neutron16's solution in Access 2010, and it didn't work; but today I tried a different take on Neutron16's solution in Excel 2010, and that DID work. :D
It was esc+fn+Pause

Thank you, Neutron16.
 

My Computer My Computer

At a glance

windows 7 home premium 64bit
Computer type
Laptop
Computer Manufacturer/Model Number
hp dv4t
OS
windows 7 home premium 64bit
Keyboard
Standard PS/2
...I had trouble getting UsernameIssues' AutoIt solution to work, too....
Does that mean that you eventually got it to work or are you still without a solution for MC Access?
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Works for Access, too. Thank you.
 

My Computer My Computer

At a glance

windows 7 home premium 64bit
Computer type
Laptop
Computer Manufacturer/Model Number
hp dv4t
OS
windows 7 home premium 64bit
Keyboard
Standard PS/2
Good to hear - thx for posting back.
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Back
Top