Sign in to follow this  
Followers 0
dieterhatn

Controlsend, some Shortcuts work some do not

3 posts in this topic

#1 ·  Posted (edited)

Hi there.

I'm currently working on a project with a good friend of mine to keep our windows stickynotes synchronous via my vroot server.

In order to keep the ammount of notes the same, I wanna delete all notes first (via shortcut ctrl + D), then paste the first, create a new one (shortcut ctrl + N) and so on.

Im using Controlsend for this to achieve.

Creating new notes via CTRL + N works flawless, but I just cant get deleting via CTRL + D to work.

It simply does nothing. When I try it manually via WinActivate and Send it works, but that will interrupt anything i am doing in this moment

Is this a known problem or is there a way to fix this?Thanks<br>Here is my code:

$List = WinList("[CLASS:Sticky_Notes_Note_Window]")
ControlSend($List[1][1], "", "[CLASS:{a64c3a50-b714-4e1f-a723-78db57a20a29}; INSTANCE:1]", "^d")
Edited by dieterhatn

Share this post


Link to post
Share on other sites



What happens if you use ControlFocus before ControlSend()?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

What happens if you use ControlFocus before ControlSend()?

The notes app gets the focus, but i wont delete the note. Even launching it again and again just gives it the focus but wont delete the note.

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
Sign in to follow this  
Followers 0