-
Posts
13 -
Joined
-
Last visited
About Puls3
- Birthday July 4
Profile Information
-
Location
United States
-
WWW
https://xpuls3.github.io/
-
Interests
Programming in real languages, occasional scripts in AutoIt.
Recent Profile Visitors
408 profile views
Puls3's Achievements

Seeker (1/7)
4
Reputation
-
FrancescoDiMuro reacted to a post in a topic: AutoIT including WebHooks for Discord
-
AutoIT including WebHooks for Discord
Puls3 replied to SolemnStrike's topic in AutoIt General Help and Support
Wow, it has been a long time since I've written in AutoIt, and a long time since I commented here. Don't worry @Trying2Hard it wasn't working when I tried it either, the issue was that Discord modified their Webhook requirements and were sending an Error 404; Bad Request. I've now modified the code to work after Discord's changes by setting the header to json seeing as we're sending a json object. Took me hours to figure that out. Also side note, as I said in the last comment it's pure AutoIt, no UDFs. As I said before, remember to switch out the Discord webhook URL for your own. This requires nothing but an up to date AutoIt, cheers! Webhook("Awesome") Func Webhook($Message) Local $Url = "https://discordapp.com/api/webhooks/sensitive-data-goes-here" Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") Local $Packet = '{"content": "' & $Message & '"}' $oHTTP.open('POST',$Url) $oHTTP.setRequestHeader("Content-Type","application/json") $oHTTP.send($Packet) EndFunc -
Puls3 changed their profile photo
-
While I was unable to find this functionality in AutoIt, I did find it rather easily in AutoHotkey. The answer was simple, the ~ key. ~x::N In the example above (using AutoHotkey) the x button will also press the uppercase N button while not hindering x whatsoever. To press x in a text editor will display "xN". I'm aware this is an AutoIt forum but I simply wished to share my solution, if a little unorthodox. I hope you all have a swell evening!
-
It's not game software, it's Modification Software / Render Editing Software and video editing software, by that logic a text editor is inherently game software as it is used to develop a game. To further clarify, the Creation Kit is a modification software for single-player offline games created by the developers of those games. However this modification software itself is on its own an advanced version of the Koda GUI editor for AutoIt mixed with a paint program and Blender, as these could also be used to develop aspects of games just as much as the Creation Kit. There is a render field inside the Creation Kit which requires you to hold down a key in order to move your creation and modify the size of it to ensure alignment is correct. Which is the primary reason I wanted this script.
-
@Melba23 Inside Bethesda's Creation Kit, GECK, and Construction Set, in order to enable / disable specific things (eg. lighting or movement frames) you are required to push two keys at once to get extended functionality. It is the same with other programs I use such as Davinci Resolve, which is why I need it to not send to any specific application, and just send as a normal key. Needless to say I often find need of functionality such of this, and like any sane person with the need to save time (and mental health), I decided to make a script to fit my needs but was incapable of finding anything about this specific functionality in the documentation, which was shocking as it is what has been demanded from a large portion of key bind programs for quite a while.
-
@Nine Indeed, it may seem as though I'm attempting to develop a script with malicious intent, but I'm hoping you will give me the benefit of the doubt, as we both know there is nothing I can say that will change that. However, despite this, I will truthfully state that I intend to use this entirely for personal use on my computer, while I alone am using it. To answer your question, I require the ability to tap another key the moment I press the X key while retaining all of X's original functionality, as I stated above in my original post. If you are able to discover a solution to my issue, I would be extremely grateful.
-
@Deye HotKeySet "captures the key-press and does not pass it on to the active application", wouldn't using HotKeySet cause the same problem I'm trying to circumvent? @Nine I fail to understand what you are asking when you ask what kind of application, I intend it to send to the active application as any standard key press would. @BrewManNH While I thank you for your answer, I unfortunately require this to work on multiple different applications in which I don't believe would work with this function. Is there not a way to make the HotKeySet function not attempt to block the key from getting passed? I was stumped as to why this issue wasn't addressed in the documentation as I could see many implementations when this would be rather useful. The primary issue I face, and the reason as to why I'm not just putting Send("X") in my function is I need key hold functionality to remain the same, which Send("X") would completely remove.
-
Puls3 reacted to a post in a topic: AutoIT including WebHooks for Discord
-
If I assign a TestFunc() hotkey to the letter "X", whenever I press X it will block X from sending and run TestFunc(). I require AutoIt to run TestFunc() and allow X to retain its original functionality. Simply adding Send("X") inside TestFunc() would not work as I need it to send X as it is usually sent, for example if I were to hold down X it would hold down X. The reason for this is that I want another key to be tapped once every time I press down on X, but don't want to hinder X's functionality. I have been incapable of finding a solution to this issue, and would like any useful help that anyone could provide.
-
SolemnStrike reacted to a post in a topic: AutoIT including WebHooks for Discord
-
spudw2k reacted to a post in a topic: AutoIT including WebHooks for Discord
-
Using the Chrome debugger it may be possible to find the page in which it draws it's data from by finding the function, if you do; you might be able to use winhttp requests to grab the HTML of that page and interpret the data from there. Though this is an entirely other solution that only works for some sites.
-
AutoIT including WebHooks for Discord
Puls3 replied to SolemnStrike's topic in AutoIt General Help and Support
Took me a while but I figured this out for my own use, hope it helps you out as well! Also remember to switch out the Discord webhook URL for your own. This requires nothing but an up to date AutoIt, cheers! Webhook("Awesome") Func Webhook($Message) Local $Url = "https://discordapp.com/api/webhooks/sensitive-data-goes-here" Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") Local $Packet = '{"content": "' & $Message & '"}' $oHTTP.open('POST',$Url) $oHTTP.setRequestHeader("Content-Type","application/x-www-form-urlencoded") $oHTTP.send($Packet) EndFunc WARNING! This code doesn't work as of January 2nd, 2020! Read down a bit for an updated function. -
Autoit Gets Progrssively Slower the Longer it’s in a Loop
Puls3 replied to XanzyX's topic in AutoIt General Help and Support
Not exactly a solution and more of a workaround but you could have a few second wait at the top of the script and once the script has been running too long run itself and then exit. But this is a very primitive and crude solution. -
Xandy reacted to a post in a topic: Variable Error (Subscript used on non-accessible variable)
-
Variable Error (Subscript used on non-accessible variable)
Puls3 replied to Puls3's topic in AutoIt General Help and Support
I discovered what I was doing wrong on my own, It was a simple error that I had missed. Func Defaults() $Name[0] = "Combatant" $Level[0] = 1 $Exp[0] = 0 $ExpMax = 20; <--- $Dead[0] = 0 $Health[0] = 20 $HealthMax[0] = 20 $Attack[0] = 1 $Defense[0] = 1 EndFunc I turned it from an array into a simple variable as I forgot to add a "[0]" to the end, and so $ExpMax[$i], no matter what number was put into it, would not exist as it was no longer an array. -
Puls3 reacted to a post in a topic: Post responsibility and anonymity
-
Puls3 reacted to a post in a topic: Variable Error (Subscript used on non-accessible variable)
-
Variable Error (Subscript used on non-accessible variable)
Puls3 replied to Puls3's topic in AutoIt General Help and Support
Locked Post Misunderstanding: My post was locked due to it being about game automation, this was 100% a misunderstanding and I would like to clearly state that I am creating a UI based game of my own inside AutoIt and Autoit only, all code of the game so far is inside the posted script, It cannot be about game automation if the game is written inside AutoIt (And written by me) as it would be a game feature and not automation. I already read the rules and found no way to appeal a locked post due to a misunderstanding so I apologize if I should have taken another action instead of re-posting with an explanation, though this forum really should add the ability to appeal locked posts. The "Game" is merely a simulation of a fight between two simulated fighters and as you can see in the script does not interact with any outside information besides the save files created by the script. -
Hi, This is my first post on the AutoIt Forums, I most of the time was able to get help from this community by merely searching though google and have been able to solve hundreds of problems this way, though in this case I was incapable of finding a solution to my problem. I am quite confident that it is a user error (And my fault) but I haven't been able to determine what I did wrong, any and all help would be greatly appreciated! I have uploaded my whole script pardon passwords to provide as much information as possible. I declared a global array at the top of the script and am having issues when I try to set it's value, and I fail to understand why. Error Message: "D:\Projects\AutoIt\Arena\Base.au3" (270) : ==> Subscript used on non-accessible variable.: $ExpMax[$i] = IniRead($TempSavePath, "Combatant" & $i, "ExpMax", $ExpMax[0]) $ExpMax^ ERROR ConsoleWrite Log: Ran. Checking launch parameters. No launch parameters. Initiating load. Checking for save file. Save file not found. Load canceled. Loading or creating Combatant 1 Base.au3