CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:16:12 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=2be99f89f5a5ded82472a16d88b7ef003572c2ac302fc1297698c42c8c8541fda%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22oCPBJbBwL9rCPNKnm7hG7MiQW9rIj9CL%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cef950cdb1860e-BLR
Sends the ENTER key to a given window w/Autoit - Pastebin.com
SHARE
TWEET

Sends the ENTER key to a given window w/Autoit
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;
- ; AutoIt Version: 3.0
- ; Language: English
- ; Platform: Windows 2019/10/2016/8/2012/7/2008
- ; Author: Core Technologies Consulting, LLC
- ;
- ; Script Function:
- ; Sends the ENTER key to a given window
- ;
- ; Usage:
- ; SendEnterKeyToWindow <window-name> [-d]
- ; where the optional -d flag specifies to log debugging
- ; information to C:\\autoit-log.txt.
- ;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- Func LogMessage($message, $withPrefix = 1)
- $file = FileOpen("C:\\autoit-log.txt", 1)
- ; Check if file opened for writing OK
- If $file = -1 Then
- MsgBox(0, "Error", "Unable to open file.")
- Exit(1)
- EndIf
- if ($withPrefix) Then
- $prefix = '[' & @MON & '/' & @MDAY & '/' & @YEAR & ' ' & @HOUR & ':' & @MIN & ':' & @SEC & '] '
- FileWrite($file, $prefix)
- EndIf
- FileWrite($file, $message & @CRLF)
- FileClose($file)
- EndFunc
- ; Expect at least 1 argument, the window name
- ; Exit if less than 1 argument
- if $CmdLine[0] < 1 Then
- MsgBox(0x40000, 'SendEnterKeyToWindow', 'Usage:' & @CRLF & @CRLF & 'SendEnterKeyToWindow <window-name> [-d]')
- Exit(1)
- EndIf
- $windowName = $CmdLine[1]
- ; If the 2nd argument is -d, then do logging.
- $doLogging = "no"
- if $CmdLine[0] >=2 Then
- if $CmdLine[2] = "-d" Then
- $doLogging = "yes"
- Endif
- EndIf
- if ($doLogging == "yes") Then
- LogMessage(@CRLF & '-------------------------------------------------------------------------------', 0)
- LogMessage('SendEnterKeyToWindow: Window name = "' & $windowName & '"')
- EndIf
- ; Try to activate the window. May not succeed in Session 0:
- ; https://www.coretechnologies.com/blog/miscellaneous/running-autoit-session-0/
- $result = WinActivate($windowName)
- ; Log the result if necessary
- if ($doLogging == "yes") Then
- if ($result == 0) Then
- LogMessage('Window "' & $windowName & '" NOT found by WinActivate!')
- Else
- LogMessage('Window "' & $windowName & '" found by WinActivate.')
- EndIf
- EndIf
- ; Send the key press
- $result = ControlSend($windowName, "", "", "{ENTER}")
- ; Log the result if necessary
- if ($doLogging == "yes") Then
- if ($result == 1) Then
- LogMessage('ControlSend succeeded.')
- Else
- LogMessage('ControlSend failed!')
- EndIf
- EndIf
- ORA:
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ MAKE $2500 IN 15 MIN⭐⭐⭐ 6
JavaScript | 1 sec ago | 0.24 KB
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 3 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 12 sec ago | 0.24 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 3
JavaScript | 12 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 21 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 3
JavaScript | 24 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 30 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 39 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand