Jump to content

Mouse use while script is running


 Share

Recommended Posts

Is it possible to use my macro/script while I click with my mouse (human) ?

 

Macro:

HotKeySet("{1}", "playpause")

$go = 1

While 1
$pxs = PixelSearch(1680,1050,760,830,0xBBF8FE)
If isArray($pxs) then
Sleep(400)
Send("{D}")
EndIf
WEnd

Func playpause()
    $go = $go  -1 + 1
 EndFunc

 

As you can see my script is running in a loop. So is it possible to use my mouse while this? 

 

Thanks for help!

Link to comment
Share on other sites

  • Moderators

@q1880025 MouseClicks and Sends are very elementary functions; they do what they're designed to do regardless of what else might be going on. If you need to perform actions on a window while maintaining your mouse and keyboard abilities you should look into the Control* functions in the help file.

Also, if you give us a clearer picture of what you're trying to accomplish we can offer better suggestions.

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

1 hour ago, JLogan3o13 said:

@q1880025 MouseClicks and Sends are very elementary functions; they do what they're designed to do regardless of what else might be going on. If you need to perform actions on a window while maintaining your mouse and keyboard abilities you should look into the Control* functions in the help file.

Also, if you give us a clearer picture of what you're trying to accomplish we can offer better suggestions.

I play a game by pressing a button at a certain moment (Loading Bar pops up for Reloading - I need to press it after 50%). My script/macro works fine, but I can't click during the script. I want the script to run continuously in the loop and I want to be able to click randomly during the loop with the mouse. So I can move my character and he always reloads - without me having to do anything -

Link to comment
Share on other sites

  • Moderators

Unfortunately you seem to have walked right by the forum rules on your way in. Please read them now, especially the part on game automation, and you will see why this thread is locked. That is not a subject we will assist with.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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