Jump to content


Photo

Split script to another thread ...


  • Please log in to reply
3 replies to this topic

#1 Klark92

Klark92
  • Members
  • 854 posts

Posted 05 July 2012 - 03:28 PM

#Persistent
[color=#FF0000]#AddThread, 1[/color] [color=#00BB00]; Execute script in "Thread1"[/color]
Settimer, SendKey1, 150
[color=#FF0000]#AddThread, 2[/color] [color=#00BB00]; Execute script in "Thread2"[/color]
Settimer, SendKey2, 150
return

SendKey1:
Send, Word1
return

SendKey2:
Send, Word2
return

Because, when SendKey1's timer is Active(A_ThisLabel), SendKey2's timer is not working .. I opened a few topic about that but no solution ... (THIS SUBJECT IS VERY IMPORTANT FOR GAMERS)

#2 sinkfaze

sinkfaze
  • Moderators
  • 6081 posts

Posted 05 July 2012 - 04:30 PM

Please remember to use a descriptive title for your post, especially in this area.

#3 Klark92

Klark92
  • Members
  • 854 posts

Posted 05 July 2012 - 04:33 PM

Well...

#4 engunneer

engunneer
  • Fellows
  • 9162 posts

Posted 05 July 2012 - 07:43 PM

I direct you to these ideas and previous discussions of multithreading.
<!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?t=49028">viewtopic.php?t=49028</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?t=81268">viewtopic.php?t=81268</a><!-- l -->
<!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?t=18297">viewtopic.php?t=18297</a><!-- l -->

The third looks most interesting IMHO