wow wow wow… I was planning to extract a simple keystroke sender action from custom keyboard functions but after seeing the solution I understood that should be done through DOM. Great solution…
While reading it I’ve remembered something. I’m not sure if it is possible wtih that widget but I think we should be able to execute javascript on loaded html files. I mean we can automate it with SambaPOS. If you think such feature can be useful I can check if it is possible.
It sounds very useful. I can not directly think of a use right this minute but that also does not mean that I wouldn’t use it if I knew what was possible.
Case and point… I had given up on AHK over a month ago because I couldn’t get this to work. Now that it does work I definitely see how useful it is.
I will split this into a Tutorial, specific to AHK and HTML Viewer Widget. I don’t need this now - I saw it as a challenge and an opportunity to learn something new - but I may need it in the future.
On the other hand, if @emre lets us use JavaScript in the HTML Viewer Widget, it will probably all be moot, and… BETTER!
Invoke Script action. That executes a js script by it’s name that exists in a html page. For example if your page contains a Test function this action executes it.
and… the nasty Inject Script action. This action reads a script from Automation > Scripts by handler and injects it into html. So you can execute it with Invoke Script.
We can determine which widget to execute by it’s name.
I could definitely use that. It allows me to do some things I wanted to do with TimeTrex for sure. And it more than likely will allow me do things I need that I have not realized yet
I am already prepping some stuff for my TimeTrex integration. I am thinking automating a lot of cool stuff. I am right now planning on paper an integration that will allow me to use Samba to enter schedules for my employees that will get sent to Timetrex. Each employee will be able to view their own schedule through SambaPOS.
I am also preparing to allow them to request time off through SambaPOS and it will send it to TimeTrex. So I am definitely interested in this. Very cool to know this is possible.
Wait a minute… so your saying the apps can execute Samba functions? As in I can control Samba through them as well as other way around? Is it possible to pass a value from the webapp as a CommandValue ?
Holy cow I have had this idea for a while now I just thought it was going to be nearly impossible so Ive held back on requests… But now it suddenly all seems possible. It may take me a while to build it… but this means I can do some very advanced integration with TimeTrex. I can not wait to try this.
This fits perfect with my Employee entity design as well. Lots of cool stuff I can do to control those entities now.
Using the AHK method I already have built a few test functions. I have tested successfully making it check an Entity name when Time Clock is pressed to view the TimeTrex web app… it logs that specific entity into TimeTrex automatically. Its working great… my next test is automating TimeTrex to pull up specific Entities schedule…
dear @QMcKay,
I found the name of the enter button, but the Web page do not agree pressing enter to enter the site and it displays an error message That username and Password is not correct
it enter only with a mouse click
It is possible to add a command button for mouse click?
of course It’s fine without it but if there is a way I’d love to.
Thanks in advance.
I noticed you released these features with 4.1.63 today. I am going to play around with them. I like AHK but if I can do same thing internally without having to start process for a script and or call other libraries that would be great!