Arabiata Posted September 1, 2021 Posted September 1, 2021 Hello, I want send a string contains # to a putty input field. $work = "Fragmentocyta #" Send($work) I've tried with flag 1 but the # won't show up. Thx
Developers Jos Posted September 1, 2021 Developers Posted September 1, 2021 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Guest Posted September 1, 2021 Posted September 1, 2021 1 hour ago, Arabiata said: I've tried with flag 1 but the # won't show up. With Notepad, this works : #include <AutoItConstants.au3> #include <WinAPISys.au3> Run("notepad.exe") Local $hWnd = WinWaitActive("[CLASS:Notepad]", "", 5) If Not WinWaitActive($hWnd, "", 5) Then Exit MsgBox (BitOR(4096, 16),"","Error starting Notepad") ; >>> sending keys : Local $work = "Fragmentocyta #" Send($work, $SEND_RAW) Sleep(2000) WinClose($hWnd) ; to answer the "Save Question" automatically : WinWaitActive("[CLASS:#32770]") Sleep(500) Send("{TAB}{ENTER}")
JockoDundee Posted September 1, 2021 Posted September 1, 2021 Also, this should work in non-raw mode: Local $work = "Fragmentocyta {#}" Send($work) Code hard, but don’t hard code...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now