Jump to content
rronnyv

is there a way to add multiple threads to script?

Recommended Posts

I am writing something that asks user for input while it's is locking the mouse to certain coordinates, but the problem is that the readline popup pauses the script until you press something, making a separate thread to move the mouse would work but I don't know how to do that, or perhaps there is some other solution.

Link to comment
Share on other sites

You can't do multi-threading in SCAR Divi as of yet.

 

However, maybe you could "wrap" some of Delphi's threading, and make it available for SCAR. You could do this with a plugin. Whether it would work with SCAR's functions, i have no idea.

 

If that were possible, it would be implemented in SCAR... The probelm is that the engine isn't thread-safe, which prevents me from adding multithreading.

Link to comment
Share on other sites

you could use a fake/dummy window with the same question/input text/area and move the mouse until the user inputs"clicks / keystroke" / selects the fake area then open the user input area for real.

 

its a hacky trick but should fool the user

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...