wizardofloz
New Member
- Joined
- Mar 27, 2017
- Messages
- 2
- Thread Author
-
- #1
Hi folks,
We use a bespoke piece of helpdesk software; unsure what's it written in but in it's own window (when active) the F9 key refreshes the list of tickets in the queue. Could someone please point me in the right direction to perhaps a piece of code or process or little application that could be running in the background that activates the window (behind the scenes) then refreshes every few seconds automatically. The helpdesk window is just one of a few windows or browsers that are open on our machines at any one time.
thanks in advance,
L
We use a bespoke piece of helpdesk software; unsure what's it written in but in it's own window (when active) the F9 key refreshes the list of tickets in the queue. Could someone please point me in the right direction to perhaps a piece of code or process or little application that could be running in the background that activates the window (behind the scenes) then refreshes every few seconds automatically. The helpdesk window is just one of a few windows or browsers that are open on our machines at any one time.
thanks in advance,
L
Solution
All you should need is FindWindow and SendMessage functions from User32.dll
Reference for those functions
pinvoke.net: the interop wiki!
Sample Code
c# Sending keyboard commands to another window / process
Reference for those functions
pinvoke.net: the interop wiki!
Sample Code
c# Sending keyboard commands to another window / process
- Joined
- Jul 4, 2015
- Messages
- 8,998
All you should need is FindWindow and SendMessage functions from User32.dll
Reference for those functions
pinvoke.net: the interop wiki!
Sample Code
c# Sending keyboard commands to another window / process
Reference for those functions
pinvoke.net: the interop wiki!
Sample Code
c# Sending keyboard commands to another window / process
wizardofloz
New Member
- Joined
- Mar 27, 2017
- Messages
- 2
- Thread Author
-
- #3
All you should need is FindWindow and SendMessage functions from User32.dll
Reference for those functions
pinvoke.net: the interop wiki!
Sample Code
c# Sending keyboard commands to another window / process
GREAT!!! much appreciated
i also created this .vbs file in notepad after a bit of trial and error
Option Explicit
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
Do
WshShell.AppActivate "program.exe"
WshShell.SendKeys "{F9}"
WScript.Sleep (1000 * 10)
Loop
Last edited:
Similar threads
- Replies
- 0
- Views
- 35