Questions tagged [systemevent]
48 questions
0
votes
0 answers
Unable to initiate a handler in Google Chrome using AppleScript
I am trying to use AppleScript Key Code to navigate around in Google Chrome. However, if I pack those repetitive codes into a handler, the handler is unable to process the information. The Script Error shows as following: System Events got an error:…

user14483865
- 15
- 3
0
votes
0 answers
DHCP Renewal Event on Linux Systems
i am currently developing an Qt C++-Application for an embedded Buysbox Linux System.
Now i have to connnect my application to an DHCP-Server, which works fine.
But the App should keep track of the lease time and try to renew the dhcp lease if the…

mezzo
- 1
- 2
0
votes
0 answers
Dispose pattern for class with static methods using SystemEvents in WinForms control
I have a WinForms control in which some UI elements are drawn with static methods of an internal class - something like this:
internal class DrawUIElement
{
public static void DrawArrow(Graphics g, Rectangle rect)
{
// Drawing something on…

TecMan
- 2,743
- 2
- 30
- 64
0
votes
1 answer
Do Adobe Air Apps on Android receive system events?
I'm considering using Adobe Air to write an application for the android marketplace.
I was wondering if anyone could tell me what (if any) the limitations are with regard to getting / handling system events.
For instance can you pause the app if the…

Liam Walsh
- 3
- 1
0
votes
1 answer
Before Shutdown wait till saving is finished
I have an application which logs some user data. If the users logs off the workstation it needs to save this information.
The program is a windows form c# application.
At the moment I am trying to do this by this function below and it works to 95%…

user3077796
- 192
- 1
- 19
0
votes
1 answer
Sleep all threads in program except current/main one in C#
Main question is: how to sleep all threads running in program except current/main one?
I have program with use connection to MS SQL Server via EF, the problem is that sometimes when program is running it crush when we put computer to sleep mode and…

witkowski01
- 9
- 3
0
votes
1 answer
SystemEvents.SessionSwitch Crashes in Windows 8 but works in Windows 10
I am developing a WPF App and getting a very weird problem:
I use SystemEvents.SessionSwitch += SystemEvents_SessionSwitch; to detect the screen lock event of the computer. The code works well in Windows 10. But crashes in Windows 8. The error…

randomcat
- 413
- 1
- 4
- 16
0
votes
0 answers
.NET SystemEvents method not fired when starting a new process from within app
Basically, this question also summarizes my issue:
SystemEvents.SessionEnding not fired until a Process (opened before) gets closed
But there is no answer to it yet. I have a Console app that starts another process from within itself. The app also…

K. Akins
- 657
- 1
- 7
- 12
0
votes
1 answer
Monitoring Apples "System Events" with Cocoa
I was wondering if there was a way to write a Cocoa app that listened for OS system events such as an application launching, a window switches, etc, etc. My thought was to watch [NSNotficationCenter default] for messages but so far I haven't been…

Staros
- 3,232
- 6
- 30
- 41
0
votes
1 answer
How to find cause of WPF Window location change?
Whenever I resume my computer from hibernation, it seems that my Window's location shifts to the top of the screen. I have the following to log my Window location:
LocationChanged += (sender, args) =>
{
…

Lunyx
- 3,164
- 6
- 30
- 46
0
votes
1 answer
SystemEvents.TimeChanged is not in Windows CE 6.0?
My C# application will run in both windows 7 and windows CE 6.0,
I need to do some operation while change the time so i used below event in windows 7,
SystemEvents.TimeChanged += new EventHandler(SystemEvents_TimeChanged);
its perfectly working…

Vikram Bose
- 3,197
- 2
- 16
- 33
0
votes
1 answer
Keystroke action tends to be very slow in Yosemite
I am using applescript on Mac OS X 10.10 (Yosemite). I notice that the keystroke action tends to be much slower than 10.9.
Below is my applescript, which tells Terminal to input "cd my current path in Finder" and press return:
tell application…

sophon
- 1
- 2
0
votes
1 answer
System event notifications are not supported under the current context
I am getting this error when binding to SystemEvents.PowerModeChanged in a WCF service hosted in IIS:
"System event notifications are not supported under the current context. Server processes, for example, may not support global system event…

TheWolf
- 1,675
- 4
- 22
- 34
0
votes
2 answers
Can't align windows when using a variable → Can't make {\"string\"} into type integer
I'm trying to learn AppleScript. What you see below a part of my 1st ambitious project. It's modified so that it can be test within the AppleScript editor if you also have an TextEdit window open.
What the script does:
choose editor from list
align…

patrick
- 574
- 3
- 10
- 25
0
votes
2 answers
Invoke keyboard shortcuts with one key
I have created three keyboard shortcuts to right-click menu items on my Mac that work in any application:
When text is selected:
Capitalize is Ctrl+C
Make Lower Case is Ctrl+L
Make Upper Case is Ctrl+U
Makes sense but now that is laid out I'd like…

user904706
- 1
- 2