EmpyPengy

Sending SEND to notepad??

5 posts in this topic

#1 ·  Posted

Hello, i wasn't too sure on what to name this but, I tried haha.
Anyways, I am currently working on a GUI with some buttons that send certain things to an opened notepad. 
So people can create scripts and GUIs without having to actually edit an au3 because I see too many people on here not knowing how to use simple things like sleep.
Anyways here is a snippet of where i am stuck on, it is activated by a button on the GUI

Case $idpspace
                WinActivate ( "Untitled - Notepad" )
                Send ("Send("{Space}")
                Send ("{ENTER}")
                WinActivate ( "Helperthing" )

Hopefully, you know what I'm talking about, on this snippet it's line 3 that is not working and I see why as well but I don't know a workaround.
I guess I could try filewrite but I want the text file to be opened while being edited.

And even if you have no clue on how to fix it, let me know some things that can go into this project of mine, thanks in advance :)

Share this post


Link to post
Share on other sites



#2 ·  Posted

Have you looked into using ControlSend in lieu of Send?

Share this post


Link to post
Share on other sites

#4 ·  Posted

16 minutes ago, Danp2 said:

Have you looked into using ControlSend in lieu of Send?

Yes but that didn't want to work for me either :/

 

2 minutes ago, Jos said:

Use the raw parameter of Send().

Jos

 

Il try this now :)

Share this post


Link to post
Share on other sites

#5 ·  Posted

8 minutes ago, Jos said:

Use the raw parameter of Send().

Jos

 

It worked! Thanks :)

Share this post


Link to post
Share on other sites

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