Search found 60 matches

by SALZKARTOFFEEEL
06 Apr 2019, 04:48
Forum: Ask For Help
Topic: Why is the value of "INTERNET_COOKIE_HTTPONLY" 8192? Topic is solved
Replies: 3
Views: 102

Re: Why is the value of "INTERNET_COOKIE_HTTPONLY" 8192? Topic is solved

The MSDN Documentation is written for use with C/C++. When working in those languages,you simply include the header file specified at the bottom of the page ( wininet.h in this case) and then all those Enumerations, as they are called, are set up correctly. INTERNET_COOKIE_HTTPONLY is just a variabl...
by SALZKARTOFFEEEL
01 Apr 2019, 04:02
Forum: AutoHotkey v2 Development
Topic: Can I run AHK v1 and v2 Simultaneously on Same Device?
Replies: 12
Views: 531

Re: Can I run AHK v1 and v2 Simultaneously on Same Device?

;) Interesting you bring this up because I was just talking with maestrith about going ahead and creating an up to date AHK Studio v2 syntax file. It will be in XML, since that is what AHK Studio is in and it will be very basic structure: Name, ( Parameters [ Optional Parameters ] ) Brief Descripti...
by SALZKARTOFFEEEL
30 Mar 2019, 08:57
Forum: AutoHotkey v2 Development
Topic: Can I run AHK v1 and v2 Simultaneously on Same Device?
Replies: 12
Views: 531

Re: Can I run AHK v1 and v2 Simultaneously on Same Device?

As an editor I use Sublime Text. It does not support AHK syntax out of the box, so I have created my own syntax highlighter for v2 quite some time ago. It is not perfect and I really need to update it.
by SALZKARTOFFEEEL
28 Mar 2019, 12:51
Forum: Scripts and Functions
Topic: [v2] toStr() – represent anything as a string (for debugging, etc.)
Replies: 5
Views: 212

Re: [v2] toStr() – represent anything as a string (for debugging, etc.)

gregster wrote: Well, it would be a natural next step, if you already have an object as a string. But of course, it is just a suggestion.
I am thinking about it! Though, this will certainly not be an update to toStr(), but rather an entirely new script.
by SALZKARTOFFEEEL
28 Mar 2019, 12:20
Forum: Scripts and Functions
Topic: [v2] toStr() – represent anything as a string (for debugging, etc.)
Replies: 5
Views: 212

Re: [v2] toStr() – represent anything as a string (for debugging, etc.)

The purpose of this function is not to store data, however, I could see this being useful too!
Currently, turning strings into data is actually possible using continuation sections. (I can't find the code again, but I will hopefully edit this post once I get it.)
by SALZKARTOFFEEEL
28 Mar 2019, 10:18
Forum: Scripts and Functions
Topic: [v2] toStr() – represent anything as a string (for debugging, etc.)
Replies: 5
Views: 212

[v2] toStr() – represent anything as a string (for debugging, etc.)

Hi Everyone! I was inspired to do this project, because I've been working a lot with JavaScript lately, which (in modern browsers like Chrome) has an excellent way of representing any type of object or other value in the console. In AHK, when you try to display any object whatsoever, you just get a...
by SALZKARTOFFEEEL
28 Mar 2019, 10:12
Forum: Ask For Help
Topic: Can I store settings inside compiled script? Topic is solved
Replies: 4
Views: 119

Re: Can I store settings inside compiled script? Topic is solved

Only some parts of the Registry require admin privileges. You can happily read from and write to HKEY_CURRENT_USER with just user privileges. You should store the program data in HKCU\Software\<script_name> and have no problem. If you want to avoid the Registry altogether, I suggest you store the da...
by SALZKARTOFFEEEL
27 Mar 2019, 18:23
Forum: Ask For Help
Topic: Possible to detect if in try block?
Replies: 7
Views: 212

Re: Possible to detect if in try block?

I now understand your problem. However, I think you are misunderstanding some things. First off, “runtime errors” are errors that get thrown while the script runs. There is only one other type of error – the “on-load” error. Only runtime errors can be caught in any way. Also, again, both OnError() a...
by SALZKARTOFFEEEL
27 Mar 2019, 15:47
Forum: AutoHotkey v2 Development
Topic: Can I run AHK v1 and v2 Simultaneously on Same Device?
Replies: 12
Views: 531

Re: Can I run AHK v1 and v2 Simultaneously on Same Device?

This is good to know. Then I made the right choice with not going for the separate file extension. (Although I don't use the Task Scheduler myself.)
by SALZKARTOFFEEEL
27 Mar 2019, 13:06
Forum: Ask For Help
Topic: Possible to detect if in try block?
Replies: 7
Views: 212

Re: Possible to detect if in try block?

I don't really understand what you mean. The function specified by OnError() is called immediately when the exception is thrown. It happens at the exact same time as, say, the catch block would execute or the error message would be displayed.
by SALZKARTOFFEEEL
27 Mar 2019, 12:38
Forum: Ask For Help
Topic: Possible to detect if in try block?
Replies: 7
Views: 212

Re: Possible to detect if in try block?

throw an exception and see what happens..?
by SALZKARTOFFEEEL
27 Mar 2019, 06:37
Forum: AutoHotkey v2 Development
Topic: Can I run AHK v1 and v2 Simultaneously on Same Device?
Replies: 12
Views: 531

Re: Can I run AHK v1 and v2 Simultaneously on Same Device?

This is possible and – at its core – doesn't require any setup. AHK v2 doesn't come with an installer as v1 does, you just copy the contents of the ZIP-file you download somewhere and that's the installation process. As a result, after ‘installing’ v2, all scripts you launch will still run with the ...
by SALZKARTOFFEEEL
26 Mar 2019, 05:13
Forum: Ask For Help
Topic: Selecting from array with OR
Replies: 6
Views: 174

Re: Selecting from array with OR

The way you are using OR is incorrect. You are trying to do this: if (x = (val1 or val2 or val3)) But the correct syntax is this: if ((x = val1) or (x = val2) or (x = val3)) This is long-winded, I know, but that's how computers work. They cannot think like humans and you have to be extra precise whe...
by SALZKARTOFFEEEL
24 Mar 2019, 04:36
Forum: Ask For Help
Topic: unexpected AHK bahaviour
Replies: 7
Views: 231

Re: unexpected AHK bahaviour

I know that AHK itself is fine, the registry is messed up. A reinstall would surely fix this in no time. I'm guessing you are running the scripts through shortcuts? If so, the problem is that the scripts that don't work correctly are just being launched as a program in the shortcut, whereas the one ...
by SALZKARTOFFEEEL
23 Mar 2019, 21:09
Forum: Ask For Help
Topic: unexpected AHK bahaviour
Replies: 7
Views: 231

Re: unexpected AHK bahaviour

Well, the bold entry is what gets launched when you double-click the file.
Try reinstalling (or repairing) AutoHotkey through the installer.
by SALZKARTOFFEEEL
23 Mar 2019, 18:11
Forum: Ask For Help
Topic: unexpected AHK bahaviour
Replies: 7
Views: 231

Re: unexpected AHK bahaviour

Not having AHK installed, or the Registry being messed up (possibly because of an anti-virus being stupid).

When you right-click the file, what is the very first option that should also be bold?
by SALZKARTOFFEEEL
22 Mar 2019, 04:05
Forum: Ask For Help
Topic: Right-click command not working on Chrome window???
Replies: 8
Views: 268

Re: Right-click command not working on Chrome window???

But my icon is cute, how could you delete it? :P

Okay, no. In all seriousness, I'm very glad you got it working! Extensions are a thing I also would have never thought of, it's really weird that they interfere with the user's inputs...
Hope it's not an important one messing up your script!
by SALZKARTOFFEEEL
20 Mar 2019, 20:13
Forum: Ask For Help
Topic: Right-click command not working on Chrome window???
Replies: 8
Views: 268

Re: Right-click command not working on Chrome window???

Try changing the hold duration for the click. It is possible that Chrome uses a method of gathering inputs that is different to how normal windows do it. Here is an example of how to do it (in a very cheap way): Click Down Sleep 100 Click Up If this code works, hit me up again (just reply), since th...
by SALZKARTOFFEEEL
07 Mar 2019, 06:54
Forum: Ask For Help
Topic: Exclude hotkeys from two Windows (#IfWinNotActive) Topic is solved
Replies: 14
Views: 626

Re: Exclude hotkeys from two Windows (#IfWinNotActive) Topic is solved

Don't worry about performance, the #If directive is very performant. The condition is evaluated only once, when the hotkey is activated. AutoHotkey first notices that the hotkey was activated, and then decides on a couple of things: whether the keys should pass through (the ~ modifier), whether the ...

Go to advanced search