I don't understand!Seven0528 wrote: ↑28 Oct 2023, 03:15Maybe...? Chr(0x20AC)=="€"Code: Select all
ControlSend("{Text}" Chr(0x20AC),, "ahk_pid " cmdPID)
Code: Select all
ControlSend(Chr(0x20AC)=="€",, "ahk_pid " cmdPID)
I don't understand!Seven0528 wrote: ↑28 Oct 2023, 03:15Maybe...? Chr(0x20AC)=="€"Code: Select all
ControlSend("{Text}" Chr(0x20AC),, "ahk_pid " cmdPID)
Code: Select all
ControlSend(Chr(0x20AC)=="€",, "ahk_pid " cmdPID)
Code: Select all
#Requires AutoHotkey v2.0
#SingleInstance Force
Msgbox Chr(0x20AC)=="€" ; true
Code: Select all
#Requires AutoHotkey v2
Run 'cmd',,, &cmdPID
WinWait('ahk_pid' . cmdPID)
; Send Keys
Send "{U+20AC}" ; Sends € to CMD window
Send Chr(0x20AC) ; Sends € to CMD window
; ControlSend Keys , Control, WinTitle, WinText, ExcludeTitle, ExcludeText
ControlSend("{U+20AC}",, "ahk_exe cmd.exe") ; Sends € to CMD window
ControlSend("{U+20AC}",, "ahk_pid " cmdPID) ; Sends € to CMD window
ControlSend("{Text}" Chr(0x20AC),, "ahk_pid " cmdPID) ; Sends € to CMD window
MsgBox A_AhkVersion "`n" A_PtrSize " (4 = 32-bit, 8 = 64-bit) `n`nTecken (5st) .: " chr(0x20AC)
; WinClose WinTitle, WinText, SecondsToWait, ExcludeTitle, ExcludeText
; WinClose "Calculator"
WinClose "ahk_pid " cmdPID
; WinWaitClose WinTitle, WinText, Timeout, ExcludeTitle, ExcludeText
WinWaitClose "ahk_pid " cmdPID
; MsgBox Text, Title, Options
MsgBox "Ready!", "Row .: " A_LineNumber " - " A_ScriptName
Users browsing this forum: No registered users and 27 guests