Jump to content

Recommended Posts

Posted

I'm trying to have my program stop outlook and another instant messaging program while it is in a certain mode. This is because people will be scanning barcodes in another room, but instead of having to close out of the programs, I was hoping to have autoit freeze or pause other programs while it is in scanning mode. I found this chunk of code which makes me feel like I am close, but not close enough to what I want to do.

#Include <WinAPI.au3>
$process = _WinAPI_OpenProcess("PROCESS_SUSPEND_RESUME", 1, "outlook.exe")

DllCall("ntdll.dll", "Int", "NtSuspendProcess", "Int", $process)
sleep(1000)
DllCall("Kernel32.dll", "Int", "CloseHandle", "Int", $process)

I don't have much code to start with, but if anyone has any thoughts, I would be grateful!

Thanks in advance!

C0d3 is P0etry( ͡° ͜ʖ ͡°)

  • Moderators
Posted

Hi, Kovacic. Please give your posts a full 24 hours before you update or bump. Those of us who volunteer on the forum are all over the world in different time zones; sometimes it takes a while for us to read through and answer all the questions :)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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
×
×
  • Create New...