Jump to content

Recommended Posts

Posted

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

 

Posted
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}")

 

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...