I searched how to use this xdotool to play 24/7 the commands given but can’t find one. I only know opening the terminal and typing in xdotool plus the options.
What I would like to do is for it to focus on Chromium and just key F5, ctrl+a, ctrla+c, ctrl+tab, ctrl+v with a second delay for each key, how do I do this?
Why would you need this? Sounds like you want to capture someone’s input e.g. a keylogger?
No, I was searching for ways on how my guests on unifi hotspot portal can check their voucher status without me checking it for them everytime. I want a macro to copy from hotspot portal, and paste onto google sheets, in google sheets I will publish some of the range where clients can check their voucher status. And I need this done repeatedly 24/7.
https://drive.google.com/open?id=1JjilCBwBFYj_rbiELhdyTBQops7BGL0_
https://drive.google.com/open?id=1kmv4SUlPkCZn30-Pfb_dhgGxaMtZv9gD
Please keep your posts limited to helpful insights or straight answers as the policy here xojo says so.
[quote=476445:@Asher Joshiah Canlapan]I searched how to use this xdotool to play 24/7 the commands given but can’t find one. I only know opening the terminal and typing in xdotool plus the options.
What I would like to do is for it to focus on Chromium and just key F5, ctrl+a, ctrla+c, ctrl+tab, ctrl+v with a second delay for each key, how do I do this?[/quote]
How do you do it from Xojo? In Xojo, you’re going to need the Shell class and you’ll need to ask xdotool to activate Chrome and, assuming you’ve only one Chrome window open, something like this will be your starting point…
Var s As Shell = New Shell
s.Execute("xdotool search --class chrome windowactivate")
If s.ErrorCode <> 0 Then
System.DebugLog("Error code: " + s.ErrorCode.ToString)
End If
You’ll need the xdotool docs for the rest.
Thank you Gavin, I did not know where to start and that has been helpful.