Thread Tools Display Modes
04/05/14, 04:27 PM   #1
satherequesting
Join Date: Apr 2014
Posts: 2
run function after player has idled a set time?

Hey there!

First I would like to say thanks for all the great work out there! It is awesome to see!

I am very new to LUA, but have some general coding experience.

I have a great idea for an addon but I want to know if its even possible. Is there a method available to us to detect User input at any level, or the lack thereof?

I would like to create an addon that would run a function when the player has idled, say for 5-10 seconds, and then stop running that function the moment a player resumes input.

Is this conceivable with the current api?
  Reply With Quote
04/05/14, 04:52 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Not really... You'd have to watch for ... pretty much everything... And even that wouldn't be reliable.
  Reply With Quote
04/05/14, 04:55 PM   #3
satherequesting
Join Date: Apr 2014
Posts: 2
Dang, I was really hoping to hear something different.

I was looking and noticed a bunch of input modes marked private in the API..

Like mouse down, directions, etc...

I wish there was some way to do this because I think the community would really love my addon
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » run function after player has idled a set time?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off