Jump to content

Controlsend, some Shortcuts work some do not


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...