Sign in to follow this  
Followers 0
Silence

Controlsend via PiD

2 posts in this topic

Mission: Cycle through all instances of Wow.exe - Send them the key "W" and "S".

Why? To prevent my toons from going AFK - Camping a rare

I've establised it's possible for me to get the PiD of all wow processes by using:

; Get all processes of Wow.exe

$list = ProcessList("wow.exe")

; Do what I need to do

for $i = 1 to $list[0][0]

$wowInstancePid = $list[$i][1]

next

Via ControlSend you can send key's to a Window Title, but I'm having a bit of trouble regarding how I can send they keys when I only know the PiD? From what I read Controlsend needs the WindowID or sumthing?

My first autoit program, don't kill me please!

Share this post


Link to post
Share on other sites



Mission: Cycle through all instances of Wow.exe - Send them the key "W" and "S".

Wrong !

Mission is to read the Forum rules first which states something about this.

*click*


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0