Made a script that covers all the map quickly so you get those extra coins (1920x1080 screens with fullscreen/borderless only)
COMMA starts the script (2s delay)
DOT exits the script
http://pastebin.com/Day0KKWE click the download button top right corner
You need autoit https://www.autoitscript.com/site/autoit/downloads/
webm of script in action https://my.mixtape.moe/dfoogs.webm
.
final edit: change the 4 to 2 in "For $s = 0 To 4 Step +1" to make it 40% faster
hmm suna a ceva ce poate fi automatizat. suna, nu stiu de unde iei datele si asa mai departe.
In cazul in care reusesti, nu mai au nevoie de tine. big brain time.
poate ceva cu autoit? daca e aplicatie desktop pe windows
https://www.autoitscript.com/site/
Daca e web, sunt mai multe solutii.
Daca tot ai timp, incearca sa inveti sa faci asta.
Bafta.
~~I don't know a way to make an excel macro to fill a web form it doesn't mean that it's not possible but I never heard of that.~~
EDIT: (two days later)
Now I heard of a way to fill a web form so my first suggestion before PLAN A would be to watch the video linked in another comment by u/Youbestnotmisss and try it.
PLAN A
That website will save the information into a database.
With the appropriate rights you should be able to INSERT the information directly into the database. SQL Insert.
Ask if that's posible, if there is a way to access directly to the database and if you can get rights to INSERT data.
That's the easiest way that I can think of but I'm afraid that for security reasons the answer is going to be no. Probably you wouldn't be allow to insert anything VIA SQL in the database.
Ask as well if the system have a way to upload bulk data in csv format.
PLAN B.
You can try to use a program like. AUTOIT it's free works on Windows and you can use it to fill forms that follow always the same pattern. You need to learn the sintaxis and if fails it could be a disaster. If you use this I will recommend to use the program to fill the form and leave you (the human) to press the button once you confirm that the data is correct. If you become more a more confident after a few times maybe you can make the script to press the button itself.
I created a script to make modding Fallout4VR easy.
It is created in AutoitV3
Compile the program to Fallout4.exe after editing the file paths to yóur file paths.
Place it in the Fallout4 VR directory, and load up Nexus Fallout 4 mods.
Now whenever you press Launch Fallout4 inside nexus mod manager, that will correctly add your plugins.txt to Fallout 4 VR ánd launch your Fallout 4 VR.
Source-code here : Don't forget to adjust your paths inside the script
I use AutoIt for most windows automation stuff. The help file is very helpful with standard format and examples. If you need any help just let me know.
Since you want to automate things, nothing beats the languages that are made for that particular purpose:
Yet, if you want to get your hands on a real world, commonly used, general purpose programming language, I'd recommend Python 3.x with <em>Automate the Boring Stuff with Python</em> as tutorial.
Are you trying to speed up data entry into some GUI that can't be managed with PowerShell and doesn't have an API?
AutoIt, or another macro utility might be a better fit, rather than trying to accelerate a human.
You can probably do it with AutoIt. Download the "AutoIt full installation" version, and use this code:
HotKeySet("{PAUSE}", "sendSpace") HotKeySet("{INSERT}", "Terminate")
Func Terminate() Exit EndFunc
While 1 sleep(10) WEnd
Func sendSpace() While 1 Send("{SPACE}") sleep(10000) WEnd EndFunc
Once you run the script, when you hit Pause
on your keyboard the script will start sending every ten seconds.
Have you thought about using a spreadsheet to start? Just sort the inspections by date. A spreadsheet is the simplest form of a database. Google sheets would let you share it easily.
If you want to get fancy, use Visual Basic to create something. Or AutoIt. I recommend Autoit for quick projects.
Sounds like you're looking for custom macros of some kind. I don't know much about those, but take a look at Autoit:
https://www.autoitscript.com/site/autoit/
You may be able to write a script that hangs out in the background and does what you're describing. That's going to be a little bit more involved than you probably want.
AutoIt... That can launch putty, run commands, etc. Iterate through a csv of endpoints. For screen shots, setup greenshot with the settings you want and call it from autoit with print screen button emulation.
https://www.autoitscript.com/site/autoit/
Do NOT reveal how you did this to the auditors. They'll want a copy. Screw them for asking for such a stupid output.
I've done a lot of work in this area, and generally speaking the printers will be a manual operation especially if they are basic desktop printers. Most printers have a web interface, might be easier to do it from their rather than from the printer itself. You could assign your computer an IP address in both the new and old subnet so you can validate the IP changes. If all of the printers are the exact same, you might be able to do something with https://www.autoitscript.com/site/ to use the web interfaces for changing the IPs.
If you want easy, look into <em>AutoIT</em> or <em>AutoHotkey</em> as /u/bluecollarbiker suggested. These two are tailored for Windows automation and very easy to learn.
If you want to learn real programming, maybe Python would be the way to go with Automate the Boring Stuff with Python as learning resource.
There's a thing called a "simulated human script programming language"...
Those of us who write bots for games know it as "AutoIt"
https://www.autoitscript.com/site/
If you don't feel like using that, I'm sure you could write something in C or Python.
Since you know a little bit of programming, a desktop automation tools might be worth your time. I usually turn to AutoIt whenever I need something like this. The language is so fucking ugly, but it works.
Here's what you need to do:
I usually hardcode the positions for the mouse clicks, because fuck it - it's a one time script.
I apologize if that's a little too spelled out - i have no idea how much "some programming experience" is to you. What people mean by that varies wildly.
Edit: Oh, and, should probably not test the script on the live system until you know it works. Alternatively, only make it move the mouse, without clicking, etc
Edit 2: Or you could use something like tinytask.
Putting things into batch scripts is done probably 50% of the time for me, even in applications that already come as an msi. There's often some registry key or config file that needs to be copied over, necessitating taking a few steps to get the install working correctly.
In cases like these, where a program needs to launch through another program, I've taken to using AutoIt scripts. It's a dead simple scripting language with tools that allow you to compile scripts into standard *.exe executable files that can, in turn be added to Steam via its "Add a Non-Steam Game to My Library" option. A simple script to launch Mod Organizer and then Skyrim would look like this:
Run( """C:\Path\to\Mod Organizer\ModOrganizer.exe"" ""C:\Path\to\Skyrim Special Edition\SkyrimSE.exe""", "D:\Games\Modding\Fallout New Vegas\Mod Organizer" )
Saving that as an *.au3 file (with the file paths adjusted for your setup, of course), right clicking it, and choosing the "Compile Script" option should spit out a small *.exe file that should get the game to launch.
Alternatively, I know there are programs out there that will compile a standard Windows batch file (*.bat) into an *.exe in much the same way.
Yes, all you have to do is download the "Osumon.au3" on the github and delete every names after Mew, (just don't forget to put a ] at the end of the line), also there is a "random (1,802,1)" (find it using ctrl+f) line where you have to replace 802 by 151 (you can do these modifications with notepad)
Then to launch the game you have to download/install this https://www.autoitscript.com/site/autoit/downloads/ and open your edited "osumon.au3" with autoit.exe (I believe it's called like that) and voilà.
having played several necromancers and getting frustrated over the same thing (one of them a max block build that required 100% bone offering uptime), let me give you a band-aid
here's a script i stole from someone else and modified a teensy bit (just the variables):
;Buff recast notification
$skillkey = "d" $togglekey = "=" $timelastused = TimerInit() $recastdelay = 8 * 1000
$on = False
HotKeySet($togglekey,"toggle")
Func toggle () $on = Not $on If $on Then HotKeySet($skillkey,"skillused") Else HotKeySet($skillkey) EndIf EndFunc
Func skillused () HotkeySet($skillkey) Send($skillkey) $timelastused = TimerInit() HotkeySet($skillkey,"skillused") EndFunc
While True If $on Then $passed = TimerDiff($timelastused) If $passed > $recastdelay And $passed < $recastdelay + 1000 Then Beep(200, 200) Sleep(1000) EndIf EndIf Sleep(50) WEnd
copypasta the code into notepad and save as a .au3 file. download autoit, input your variables, and run the script.
the script will play a tone after a set duration occurs. if you press the key again during the timer, it will reset the timer to zero (so use it to your heart's content, and you will only hear the tone for the most recent offering).
this was the best thing i could find to meet my needs. hopefully it helps you.
Check out https://www.autoitscript.com/site/autoit/ for how to simulate the keyboard/mouse among other things. As for reading the screen I'm honestly not sure how the bots do it. I remember when I used to run a bot the game would look more basic and place big rectangles over key elements (like Mephisto) so the bot could easily target him. Beyond that it's just a complex series of if statements.
edit: just found this: https://ellysh.gitbooks.io/video-game-bots/content/InGameBots/example.html and apparently you can get some info directly from reading memory.
You might want to look into AutoIT for the software install. I have had to use it for legacy apps that can't be installed silently.
Helpful links: https://deployhappiness.com/automating-installs-with-autoit/ https://www.autoitscript.com/autoit3/docs/tutorials/winzip/winzip.htm
Have you tried something like autoit? https://www.autoitscript.com/site/autoit/
You can use the tools that it has to specify buttons, fields, and basically any UI element. Or you can do tabs to go to each field. It has a python wrapper that you can use to put it directly into your existing code.
https://pypi.python.org/pypi/PyAutoIt/0.3
Really easy to use, might only work in windows though. So if you are on a mac or linux machine you might have to look elsewhere!
Hope this helps!
anyone looking for a standalone windowed borderless can find it
Here: http://www.filedropper.com/gwwindowedborderless
Will need to use autoitscript https://www.autoitscript.com/site/ to use it as is
Without knowing the application and in detail to see if supports any form of automation, you're going to need to use something like AutoIt to automate this.
https://www.autoitscript.com/site/autoit/
Regards.
On Windows, there are 2 languages for this, AutoHotKey and AutoIt. They are very closely related, one is a fork of the other. They can do all kinds of automation, clicking on things, looking at text and graphics, downloading stuff, almost anything.
I've been using AutoHotKey for years, it's great. If you try it, look at the help file that's included, it has very short example programs for everything. You write programs as text files (AHK extension) and then just run them, it's really simple.
I think that you could use AutoIt for that purpose. It's a BASIC like scripting language tailored for Windows automation.
There is a tool that allows you to click on a Text Box and get it's handle so that it can be manipulated.
Check out /r/ProgrammingForKids, a subreddit dedicated to teaching kids programming.
I wouldn't even think about teaching them how to make a "virus", this is too borderline dangerous. Usually, you'll have at least one who either already has acquired some knowledge, or will learn it and then cause major havoc.
Teach them a bit about programming / flow / logic. Use Scratch, it's graphical, fun, and offers quick results. Can also be downloaded and used offline.
If you really want to go the badass route, teach them something like letting the CD-Tray pop out every x-minutes or something similar. VB / VBScript (Windows Scripting Host) / Powershell should be good enough. Alternatively you can also use something like Autohotkey or AutoIt to prank people by redefining the keyboard or something similar.
If you are willing to put in a little work, I would suggest learning to use AutoIt. I've used it before to automate a bunch of stuff, and you can write macros and compile them into an .exe file. It's a little tricky to learn but once you get the hang of it it will save you a lot of time in the long run. Also it's totally free!
There is a great wiki for it here with tutorials and such.
The only way I can think of you doing something like this is by creating your own script in something simple like AutoIt.
Basically what you want to do is create a program that runs when the computer turns on. You will then want it to pick a random sound, and then change the sound again every x minutes, and then replace the file using this tutorial.
If you don't want go through the hassle of doing this send me a message with a link to all of the sounds you want to be randomly chosen and I'll make one for you (only because I'm interested to see how it goes).
This would work for startup, login, and new device detected.
I'm looking forward to answers on this thread because I asked something similar a while back - except I didn't even know where to start.
What was suggested to me, however, was AutoIt, which I've been happily using the last few weeks.
If you aren't using the complete SciTe installation, download the full installation SciTe Editor (https://www.autoitscript.com/site/autoit-script-editor/downloads/).
Additionally these two example lines can be used to quickly debug your script:
ConsoleWrite("Debug Console Write in line: " & @ScriptLineNumber & @CRLF) and
MsgBox(0,"Debug", "Debug MessageBox in line: " & @ScriptLineNumber)
Where I work we use auto IT for some of this. Other than that we don't really have too many script things automated from what I can remember off the top of my head.
> Is it possible to control another program via code?
That Stack Overflow question you posted has other replies besides FlaUI, e.g. TestStack and AutoIt. I know AutoIt is still maintained, and can possibly do what you want. But it depends on your specific needs. For example, last time I checked, AutoIt worked in Windows environments only. It can take control of the mouse on your computer, simulate clicks, open other programs, and control those programs as if a human was controlling them.
For an alternative platform approach try https://www.autoitscript.com/site/. This is specifically designed for these kinds of tasks, so might be useful as it has interactions built in and tools to examine windows or capture intent, like macro recording.
Thanks for the reply! There are many software packages that can play macros to generate mouseclicks and keyboard inputs (AutoIt for example), since Godot can do both as well (inside of the Godot project at least), I thought is was not too far fetched of an idea.
I don't really understand the security argument, as Godot supports HTTPRequest and OS.execute() among other things. If someone want's to do something malicious with Godot, they really don't need to generate mouse clicks.
I was actually hoping there would Windows would have some build in utility I could execute or I could maybe use shell_open() to do some powershell command. But I have no experience with this sort of thing and frankly lack the vocabulary so I don't get far with my online research.
You could build a gui using something like AutoIt and then have it parse the requested parameters to scheduled handler that triggers the requires script. If you do this you will definitely need to validate all input.
Home - AutoIt: https://www.autoitscript.com/site/
In addition to lots of tools available from the store, its also *really* easy to write your own web plugins (1). If you can do basic programming and understand HTML you can write a plugin.
It also possible (but a *lot* more involved) to write plugins using AutoIt (2) to use desktop applications.
1) at least for logging-in - I last used v10.3 of CyberArk which only provided the web automation functionality for PSM, not for CPM.
> Using a .bat file would be convenient, but it's static.
That is plain wrong. Batch files can use variables: http://steve-jansen.github.io/guides/windows-batch-scripting/part-2-variables.html
Of course, you can create a GUI application to receive the parameter in an input box that then calls your file with the necessary information.
A very simple solution would be <em>AutoIt</em> (GUI tutorial), other solutions would be Python, Java, C#.
Here is a short guide how to completely bypass authentication process so you can run the bot:
Func ForumAuthentication()
(in version 7.7.6 it is line number 20)Return True
Never used python for this, I had autoit back in the day
>https://www.autoitscript.com/site/ >AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages.
/u/ArrowRobber as promised.
You will need to download and install AutoIt.Create a new ".au3" file by right clicking in the directory where your PDFs are.
Insert the code from below, and save it.
You can now right click that AU3 file and "run script".
Everything should work as intended, I'm unable to ensure the print jobs as I have no local printer.
*IF* you wish you can make the script an executable file by Compiling it.
​
Wait One - Fixing
https://www.autoitscript.com/site/autoit/downloads/
Uploaded a mirror here: https://file.io/QTehO3
Python also doesnt require admin access to install, check out Anaconda. Install the pyautogui library and it has sufficed for all my needs and beyond - plus you end up learning a language with more uses too.
You can't use an OEM version of Windows (HP, Lenovo and so on) when sysprepping. You need a proper licensed version.
If you don't have the money to buy new windows licenses maybe you could script your specific changes and ons and run then from an usb stick or similar.
PowerShell or AutoIT could be useful. Powershell is great but is harder to learn. I have used AutoIT quite a few years ago and did pretty nice things with it.
It's not perfect by any means but if you have more time than money it could be an option.
This seem like a good guide if you get non-oem licenses:
https://jacobsalmela.com/2016/03/30/how-to-image-a-computer-with-windows-10-using-dism/
Easy-to-use scripting: https://www.autoitscript.com/site/autoit/
Okay, AutoIt v3 actually simulates someone using the computer. Whether it be clicking on something, or typing something in.
Since it doesn’t rely on a runtime such as Java or Flash it has its own executable usually named “AutoIt.exe” along with the created script. There can also be a compiler called “Aut2Exe” that can make scripts their own executables. (Info from here )
I would recommend doing a search for anything related to those two and deleting them first.
Then I would recommend following this guide to fix the explorer.vbe problem. It sounds like your computer has malware on it and this will help to get rid of it :)
> a need for game continuous delivery tools that can take a build pipeline and spit out packages for each of the digital distribution storefronts.
I have built one using AutoIt and a couple of .bat and .sh files (it covers Windows, Linux, Mac version of the game). It took me about 2-3 hours initially, but now the release of a new version is a single mouse click.
Almost forgot to add there is a 3rd possible option as a workaround.
3. Use a free macro/scripting tool such as AutoHotKey or AutoIT. You could easily create a script that would manipulate the data directly on your page as if you would if you did so by hand. This may be the middle ground between the easy route and the not so easy routes I mentioned in my previous response.
I'm actually working (very slowly) in my spare time on doing something very similar for my own use. I'm working on a OneNote based Bullet Journal concept that can be dynamically updated as needed with a GTD style Projects, Tasks and Next Actions lists in my daily record of events page(s). I'm looking at building some kind of solution using both OneTastic and possibly AutoHotKey scripts to directly edit the Page XML code from OneNote.
I have no idea what Crimson 3.0 is, but I can try and give you some general advice.
You could try looking at the files generated by the IDE when saving a project. These are normally plain text, and as such you could generate them with code (language or platform doesn't really matter).
AutoIt is pretty good if you just want to automate tasks inside the GUI.
Cool! Thanks for posting this.
Here are links to AutoIt:
Downloads: https://www.autoitscript.com/site/autoit/downloads/ Latest: https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe
I'm personally a bit nervous about random .exe files from the internet, so I'd agree with the poster and compile it yourself to be safe.
Autohotkey or AutoIT, is your best bet, AutoIT is a little harder but more powerful IMHO than Autohotkey but both support making a GUI, ie window with fully customized buttons that can send any (almost) shortcut you can imagine.
I don't think so. The following makes the assumption that there exists something like AutoIt for smartphones, but if there's a way to simulate smartphone swipes, there's no good way for IS to figure out whether or not botting is in progress without either adding in tons of behavioral tracking code, or being able to check your other concurrent smartphone apps.
(Note that someone who makes a free-Arena-Assault-wins bot might as well make a bot that lets you reroll accounts easily.)
Java for OOP (Object Oriented Programming) the stardard go-to for most universities
Personally, Python
My first language I picked up when I was around 12 was AutoIt. Donno why or how I found it, but it was super simplistic conceptually & syntactically. I made some trash tutorials when I was younger here.
AutoItv3, take a screenshot, paste it into MS paint, hover where you want to click, look down the bottom, you'll see coordinates of where you're hovering (1234, 544 for example).
Those are entered into the very simple code editor, along with what you want to do there. For example, to double click your screen at coordinate you would do this.
MouseClick($MOUSE_CLICK_LEFT, 1234, 544, 2)
Explained: MouseClick(buttonToClick, xPostion, yPosition, numberOfClicks)
https://www.autoitscript.com/site/autoit/
You can pause, click/drag, copy/paste, emulate keyboard. There's heaps more functionality too.
I started using this a decade ago before learning any programming to automate games (shhh) and I still use it for data entry from and to systems that don't offer APIs for easier programmatic access.
You can install X with Cygwin, but I bet things like xdotool would only work for windows created using X, and not win32 ones. I tried X with Cygwin to see if my program for controlling the mouse cursor with the keyboard via xlib would work, but it didn't. Not that I've tried them, but there are X servers that have been ported to windows that might work better, like Xming.
I've had fun automating stuff on Windows with AutoIt. It worked really well for programs using standard UI widgets.
Should be a fairly simple task for:
This programming language was created specifically for such tasks. It is easy to learn and use even for non-programmers.
> What language should I use for this task? A script that reads first 6 numbers of a filename, clicks on a program, enters that number, clicks on a tab within that program, click 'upload' and select that same file?
If you are running Windows, you might try AutoIt.
Off the top of my head I don't know the solution to that but, as an alternative approach, have you considered using something like AutoIt or AutoHotKey to do the click automation? Depending on what else your WinForms program is doing one of those might be a more suitable tool for the job.
For what its worth, we were able to setup something like that at one of our site but not using screen connect.
We are using VNC Manager by SmartCode. Each computer has 2 custom properties (username,Password). We then call a AutoIT script and passes theses 2 properties as a variable, the script send the CTRL-alt-delete followed by the credentials.
All of this happens on our tech console. The CTRL-alt-delete and the credential are passed as keystroke to the remote session.
I suspect you could achieve something like that using SC and AutoIT.
Let me know if you want more details
Wow!
I was eventually going to try and throw together a simple UI using AutoIT. That is a million times sexier already, then anything I was going to do.
Lol!
I made an autoit script for the same reason! https://www.autoitscript.com/site/autoit/
#include <Misc.au3>
;How to use:
;press "i" -> start the script (presses space every 100ms)
;press "p" -> pause script
;press "t" -> stop the whole program (closes the program)
$running = 1
$active = 0
While $running = 1
If _IsPressed(49) Then
$active = 1
ElseIf _IsPressed(50) Then
$active = 0
ElseIf _IsPressed(54) Then
$running = 0
$active = 0
EndIf
If $active = 1 Then Send("{SPACE}")
Sleep(100)
WEnd
https://www.autoitscript.com/site/autoit/
I've heard AutoHotKey is similar, but I've never used it.
I've used AutoIt for almost exactly what you describe (open a program, wait for the window to become available, activate the window, resize it, move it, focus a text field, enter some text, press enter, wait for title to update, ...), as well as some other purposes:
Or otherwise making the best of programs whose authors saw fit to make administrators' lives miserable by providing GUI-only features.
If you know the number of command prompts beforehand it should be possible to create a standard text file with the lines with the alternating "0" lines and pipe it into the exe:
nameOfTheExe < myInput.txt
Where "myInput.txt" is the name of your text file.
Alternatively, you could possibly use an automation scripting language like AutoIt or AutoHotkey to simulate the input.
Not sure if you can launch a specific dialog by default in Windows but one option would be to create your own little exe to do it.
To do so, copy the following text:
Save to a file on the Desktop called "Sound.au3".
Install Autoit https://www.autoitscript.com/site/autoit/downloads/
Once installed open the file in the editor and.... Tools - Compile - Build - Open, etc.... You'll get an exe in the same directory called Sound.exe.
Move that where you like and create a shortcut to it. That should do it? Check the code for any minor changes.
Take a look at Automate the Boring Stuff with Python as it has some chapters dedicated to web automation.
Other than that, you could use Autohotkey or Autoit.
I have extremely good experience in that exact matter (installing programs in a certain order) with <strong>AutoIt</strong>, a simple programming language/system that was created for that exact purpose.
If you're using SendKeys, you'll have to use another Win32API to set focus to the window before you send the keys:
PowerShell might not be the best tool for this, check out AutoIt. It's specifically built for automation.
https://www.autoitscript.com/site/
The other things are...
The AS400 uses basic Telnet for access / authentication. So you could look into building a telnet backend, so there's no need for the PC5250 emulator.
IBM's Client Access, which has a PC5250 emulator, allows you to create macros. It also allows you to utilize what they call "RUNRMTCMD" (Run Remote Command). Where you can pass a command line argument to a remote AS400 from Windows.
For your description It looks like the PDF have nothing to do with excel, looks like it's a pdf downloaded from the web. I'm not sure if an excel Macro can control, print, close an external PDF.
You may want to use something like AutoIt if you use windows. Or maybe Python to do that.
edit (after reading semicolonsemicolon comment)
OK So it looks like you actually can open and print an external PDF file. Good to know.
I used the autoit window spy. It gives the Windows.UI.CoreWindow bit, then I enumerated processes (in C#), and got the exe path from the process id.
EDIT: also I got Jump List for {Program Name}
from autoit.
I'm not sure how he did it, but it would be easy enough to accomplish with an "AutoIt" script or macro. I use the program to save time on tedious operations I do often. If you're interested: https://www.autoitscript.com/site/autoit/
Similarly, I've used autoit on windows to do music/midi setup/teardown stuff (some of which I wish I didn't have to discover/do, like switching power modes and suspending system processes that otherwise cause pops in my audio...grr, audio production on laptop PCs...)
I used my logitech macro software http://i.imgur.com/L4VhlRE.png
But you can use any macro software or Autoit
Here is a autoit script:
$perfectScreenshotHotKey = "{PAUSE}" $delay = 4900 $InspectionKey = "V" $ScreenshotKey = "{F12}"
HotKeySet($perfectScreenshotHotKey, "PerfectScreenshot")
While 1 Sleep(100) WEnd
Func PerfectScreenshot() Send($InspectionKey) Sleep($delay) Send($ScreenshotKey) EndFunc
If the links you're loading are buttons that don't change often but generate dynamic links, this might actually be a problem better suited to a UI automation tool such as AutoIt
You can tell it things like, Load this page, click this link and wait until this happens.
You could use something like AutoIt to automate things. I haven't used it in quite a few years though, so I'm not sure how easy/difficult it is to implement anymore.
download this:
https://www.autoitscript.com/site/autoit/downloads/
download the top one "full installation"
install it and i suggest setting the association to .au3 files to opening the editor.
create a file called whatever.au3 and past this code in. then open the file to launch the editor. hitting f5 will run it.
use shift+2 to get the coordinates for the pixels you need to modify those #'s in the code.
i'm here for when you need further help
I use AutoIt, free automation system that does have a quirky scripting language, but it works. I have used it previously both at my old job and privately, but it was some years since last. This time around I've learned a lot by writing this solution, great motivation ;)
I'd probably just zip it up and store it on Dropbox or a thumb drive or something. Remember, everything you look at on the web has to download to the machine first, so there's a good chance this folder get's large.
You're probably not going to email this.
This question is a bit difficult to answer without actually knowing the interface of the information system program. Is it a web-based tool, is it a desktop application?
In general, you can use AutoIt, a scripting language with BASIC like syntax, to remote control nearly all applications.
This could probably be your best shot without having immediate access to the database.
Maybe, a combination of Excel VBA, AutoIt and files could be the path to go. AutoIt grabs the data, writes it into a CSV file that then is imported into Excel from where VBA takes over the processing. Excel again produces a CSV file that AutoIt then uses to create the new entries in the information system.
As I said, it is a .au3 file. It contains this script (Autoit3)
HotKeySet("{NUMPADADD}", "ToggleClicking")
$c = -1 While 1 < 2 If $c = 1 then Send("{SPACE}") Sleep(1) WEnd
Func ToggleClicking() $c = $c * -1 EndFunc
(You problably want to change the Hotkey at the top, see this list
Third Party scripts interacting with the game may however get you VAC banned, so I'd recommend either a script like this, or go full vanilla and bind jumping to your mousewheel (so you can scroll and cause many jump inputs in a short time resulting in a more problable successful bhop).
you can try autoit
something like
WinWaitActive("window name goes here")
Send("{ENTER}")
put that in a loop and it should work
edited for formatting: damn thing still wont show as code though
You can do it in Python, but for scripting mouse/keyboard keys in Windows, you might want to try autoit https://www.autoitscript.com/site/autoit/
If you’re just trying to learn, Python is more generic. If you’re trying to accomplish something specific, autoit will be easier.
I suggest you to take a look at AutoIt https://www.autoitscript.com/site/ but you'll need to check how to accomplish that and learn some programming. Otherwise there should be some programs that can be used to automate but at the moment nothing comes to my mind.
For anyone that wants a really simple way to do this: use a scripting language called AutoIt. It can automate pretty much anything. Very easy to pickup if you have even a little programming experience.
I did it!! Here are the steps:
1, Download and install AutoIt.
2, Create an autoit script inside the game folder (right click > New > AutoIt v3 Script).
3, Right click the script > Edit Script.
4, Copy and paste the codes below:
#include <Misc.au3>
run(@ScriptDir & "\SSF2.exe" & " ")
WinWaitActive("Super Smash Flash 2", "")
WinWait("Super Smash Flash 2", "")
Send("^f")
While 1
If _IsPressed ("1B") Then
ProcessClose("SSF2.exe")
Exit
EndIf
WEnd
5, Save and close.
6, Right click the script > Compile Script. An .exe file with the same name as your script should be created.
7, Now when you want to play the game, just launch the .exe file you just created and the game will start in full-screen!
It does not inject anything of course. You can even copy the \Stash folder to the PC without Diablo on it, and it still will work. All it needs are *.txt files of the characters.
Here is the source if people are interested. I will include the source in the next versions.
> This is what a batch file is for or a script in your engine.
Or something like AutoIt:
https://www.autoitscript.com/site/
I have been using it to make a 1-click build&deploy process.
They're very comparable, tbh. Both Scintilla-based, with tabs and code highlighting, etc. I use SciTE, myself, but started because it came with AutoIt (a great little scripting language for making simple Windows tools) and I got used to it. Ended up installing it in Linux, too, mostly for writing in Lua.
Else, you have some options, one is to simply compile the script; if it fails, the next thing is to use the Task Scheduler to run that compiled executable as other user (LOCAL SERVICE, NETWORK SERVICE or SYSTEM).
As for alts:
Now, imagine you own a cab and a user after paying the fare shits on the car because you weren't there to stop him and you only agreed with him: "Don't shit in the car". Basically that's what is to accept an EULA and don't abide.
Use an AutoIt script, it's an old-school method that's not detectable as it doesn't hook into a process. It just sends keystroke commands in Windows, and you can see the entire code before you use it so you know it's safe.
Download AutoIt, then compile this script. Posting the script so you can see it's not doing anything shady.
https://www.autoitscript.com/site/autoit/downloads/
​
This was my go-to World of Warcraft anti-afk script. You can make this work for literally anything as long as you change the name of the process in the code, but don't add the .exe part of the name. You can also obviously change the random amount of time before an action is performed.
This will wait between 40 and 90 seconds then send a jump command to the active window which MUST be Rust, this requires windowed or borderless mode. To activate it you simply hit 'Pause' on your keyboard, then hit Pause again to pause it, you will see a tiny message appear in the upper left corner of your screen so you know it's working.
​
WinWaitActive("RustClient")
​
HotKeySet("{PAUSE}", "Start")
HotKeySet("!{PAUSE}","Quit")
​
TogglePause()
​
func Start()
HotKeySet("{PAUSE}")
HotKeySet("{PAUSE}", "TogglePause")
ToolTip('AntiAFK started.',0,0)
While 1
Send("{SPACE}")
Sleep(Random(120,300))
WEnd
EndFunc
​
Func TogglePause()
ToolTip('AntiAFK Stopped.',0,0)
HotKeySet("{PAUSE}")
HotKeySet("{PAUSE}", "Start")
While 1
sleep(100)
WEnd
EndFunc
​
func Quit()
Exit
EndFunc
You could give AutoIt a try. It's a scripting language designed to do very high-level automation (ie there are commands to move the mouse cursor, send key inputs, manipulate windows etc).
Because you are basically writing a program that does the same actions a human user would take (moving the cursor, clicking buttons) I think it might be easier to get into than something like Python.
NSIS..
I've built a couple custom installers with it, chaining a few things like a specific java version, an xml toolkit and the app itself.
It isn't perfect, and there are interactions it can't automate (anything that uses custom windowing, hiding buttons -- looking at YOU Great Plains!)
Solid, wizardy looking installers quite quickly.
​
GP I had to do with a custom batch to handle the 23 (!!!) separate components that have to be installed for complete install.
A forked scripting tech that can touch nearly any Windows GUI component - again can't handle the GP installer with it's totally non-standard installer, nor stuff inside a Java Window (unless you want to do pixel/color maps)
They're essentially the same language, but the communities in AutoIt basically put their foot down an said no more game automation, where AHK has continued to embrace it.
With that difference, AHK is possibly going to have a shorter curve, as their environment tends to skew less professional (gamers), although a business solution will likely have a "been there, done that" component from the AutoIt side.
Because it's a full scripting language, there's a bit more curve to learn, but nearly unlimited capabilities.
If you have some background in scripting I recommend having a look at https://www.autoitscript.com/site/
IIRC it has a recording feature that you can edit and add rules to like: if "text" appears on "window" then do "this".
I used it years ago on browser games.
If you're going to be doing this, you're going to have a lot more luck with powershell. It actually has some of the power necessary to do it.
I had the unfortunate task of automating the installation of an entire server stack on Windows server, with many outdated GUI only applications. I ended up using some hacky powershell to control the GUI, as well as some AutoIT scripts when the target program was particularly uncooperative.
It's probably based on perceived inactivity. In the past to bypass things like this I've thrown together a simple program in AutoIt that just jiggles the mouse every 20 seconds or so, or - in the case of a web site like this, refreshes the page - if you're not active on the PC. Easy to do. PM me if you're interested in more details.
I see. So yes, AutoIt is one way to go for sure. This will utilize Keystroke simulation as noted in the video. AutoIt has to be programmed to automatically do keyboard commands and mouseclicks. So here is what I would suggest:
-> Learn AutoIt
-> Record your process of backing up your Schneider PLC, do it in a repeatable way so a computer can do it. I would suggest using keyboard commands over mouse as much as possible. Do this on paper.
-> Use AutoIt to automate your manual process.
-> Instead of manually triggering this script through the exe, run it using AssetCentre.
As for the compare part, there is a requirement of some type of what is called a 'Diff' tool. You will need to find one for your PLC type. For example, Rockwell offers the Logix Compare tool which is accessible over command line. If Schneider doesn't have one for Command line, you'll have to use auto it to do the comparison as well.
Also make sure that the AutoIt scripts you make can handle your Agent's environment: Open apps, user interference, etc.
Bon Voyage!
Why do you want to use a low-level language like C?
For a bot I would use AutoIt. In AutoIt you can directly simulate stuff like mouse movements and keystrokes.
It's a silly answer but just in case you can't find another solution, you could use something like AutoIt to automate sending the keystrokes. https://www.autoitscript.com/site/autoit/
(I imagine there are alternatives that do the same thing)