Search found 544 matches

by SOTE
17 Apr 2019, 17:30
Forum: Ask For Help
Topic: fail to pick on laptop
Replies: 3
Views: 48

Re: fail to pick on laptop

Usually people add the below near the top of the script, to run as admin, if the user has such permissions. Some scripts need such permissions to run properly.

Code: Select all

If not A_IsAdmin 
{
   Run *RunAs "%A_ScriptFullPath%"
   ExitApp
}
by SOTE
17 Apr 2019, 17:23
Forum: Ask For Help
Topic: Script was working Friday, not working Monday
Replies: 16
Views: 321

Re: Script was working Friday, not working Monday

Maybe add this at the top of your script, after all the # stuff. Pseudo Code #NoEnv #Include #Persistent If not A_IsAdmin { Run *RunAs "%A_ScriptFullPath%" ExitApp } Might help, depending on what your permissions are on the computer. No change, still receive the unknown function error like it's not...
by SOTE
16 Apr 2019, 21:39
Forum: Ask For Help
Topic: Script was working Friday, not working Monday
Replies: 16
Views: 321

Re: Script was working Friday, not working Monday

Maybe add this at the top of your script, after all the # stuff.

Pseudo Code

Code: Select all

#NoEnv 
#Include
#Persistent

If not A_IsAdmin 
{
   Run *RunAs "%A_ScriptFullPath%"
   ExitApp
}
Might help, depending on what your permissions are on the computer.
by SOTE
16 Apr 2019, 16:52
Forum: About This Community
Topic: New forum sections proposal.
Replies: 113
Views: 31783

Re: New forum sections proposal.

Sorry, but I don't understand "General Discussion". We have "Off Topic", so don't they serve the same purpose, in terms of non code related discussions? If a person wants to discuss something other than about programming, wouldn't they go to "Off Topic" to do that? If they want to discuss something ...
by SOTE
16 Apr 2019, 11:40
Forum: Ask For Help
Topic: Script was working Friday, not working Monday
Replies: 16
Views: 321

Re: Script was working Friday, not working Monday

No need to look at the code, I'm not asking for a script review, especially on such a thrown-together script (from a few different contributors with varying levels of competence, and no indentation like you mentioned, SOTE. Makes me feel dirty every time I look at it). I'm asking what corporate env...
by SOTE
16 Apr 2019, 04:17
Forum: AutoHotkey_H
Topic: Best Resources to start Learning AHK_H from nil
Replies: 4
Views: 329

Re: Best Resources to start Learning AHK_H from nil

I think part of the problem is that AutoHotkey_H has jumped the gun, in terms of online documentation for AHK_H v1 VS AHK_H v2. Most people will be coming to AutoHotkey_H from v1 and not v2, to include that v2 is not the official release yet (nor likely to be for a while). Add to the documentation p...
by SOTE
16 Apr 2019, 00:55
Forum: Ask For Help
Topic: Protecting AHK code against piracy
Replies: 17
Views: 1038

Re: Protecting AHK code against piracy

NO, this has been asked & answered a thousand times. If your looking to hide data in your source,that's possible but,hiding the source itself in AHK_L is not possible.Period. I'm not trying to be rude, I'm just trying to express the nature of AHK in it's current form. Any attempt can easily be bypa...
by SOTE
15 Apr 2019, 18:15
Forum: Ask For Help
Topic: Script was working Friday, not working Monday
Replies: 16
Views: 321

Re: Script was working Friday, not working Monday

If you are making lots of changes to scripts and then running the different versions of it, you should probably put #SingleInstance force ( https://autohotkey.com/docs/commands/_SingleInstance.htm ) at the top of the script. What can happen is that you are actually running an older version of your s...
by SOTE
15 Apr 2019, 17:57
Forum: AutoHotkey v2 Development
Topic: Why PCRE instead of PCRE2?
Replies: 7
Views: 859

Re: Why PCRE instead of PCRE2?

The PCRE1 vs PCRE2 mini drama also reflects issues involving AHK v1 VS AHK v2. There is a negative cost associated with major updates and revisions of a language (or project), which must be weighed against benefits. If the benefit is calculated as small, then this will understandably cause hesitatio...
by SOTE
14 Apr 2019, 19:43
Forum: About This Community
Topic: New forum sections proposal.
Replies: 113
Views: 31783

Re: New forum sections proposal.

Added. :+1: https://www.autohotkey.com/boards/viewforum.php?f=80 Looks nice. I think it's great that the C's have their subforums. Over time, hopefully people can focus putting related content in there, versus scattering it all over different parts of the forum. Makes it much easier to read and lea...
by SOTE
14 Apr 2019, 19:26
Forum: Scripts and Functions
Topic: EXE2AHK
Replies: 14
Views: 2070

Re: EXE2AHK

Interestingly, it appears older AutoIt executables could be decompiled with a similar method. Likely AutoIt v3.2.5.1 and earlier scripts. Renaming AutoIt executables to .txt, you can see the script in notepad. From AutoIt version 3.3 and up, they switched to a different method of compiling, where vi...
by SOTE
14 Apr 2019, 07:55
Forum: Ask For Help
Topic: Multithread - using all CPU cores
Replies: 13
Views: 337

Re: Multithread - using all CPU cores

You might also want to check out AutoHotkey_H
https://www.autohotkey.com/boards/viewtopic.php?f=65&t=46105&p=208275&hilit
(Help me generate script run with real multithread)
by SOTE
14 Apr 2019, 04:54
Forum: Offtopic
Topic: Report False-Positives To Anti-Virus Companies
Replies: 30
Views: 2309

Re: Report False-Positives To Anti-Virus Companies

I also haven't used mpress (or upx) since like 2010, and still get false positives all the time on compiled scripts, so it may help but it is not a total solution. Some older versions (and simpler scripts) are 1 or 2 FPs on VisusTotal, some newer compiled ahk versions (and more complex, "invasive" ...
by SOTE
14 Apr 2019, 04:32
Forum: Ask For Help
Topic: Which is the best way to enumerate array elements? Topic is solved
Replies: 35
Views: 674

Re: Which is the best way to enumerate array elements? Topic is solved

AutoHotkey is an interpreted language, so if anybody is that much of a "speed junkie", then they are probably better off jumping to their nearest favorite compiled programming language and be happy over there. No need to be perpetually crying about speed in a help forum. Better to focus on showing e...
by SOTE
12 Apr 2019, 21:04
Forum: Ask For Help
Topic: Which is the best way to enumerate array elements? Topic is solved
Replies: 35
Views: 674

Re: Which is the best way to enumerate array elements? Topic is solved

Some guy's result Loop loop 1400 ms For loop 400 ms Other guy's result Loop loop 1500 ms For loop 1900 ms Interesting. I also got the result of Loop loop being faster than For loop. This was for AHK v1. Maybe there is some other explanation, than what was stated, that decides how well For loop does...
by SOTE
11 Apr 2019, 02:13
Forum: Ask For Help
Topic: Parsing text to a timer Topic is solved
Replies: 4
Views: 112

Re: Parsing text to a timer Topic is solved

"If (%A_LoopField% == ":")" would usually be written as If (A_LoopField = ":"). Inside of an expression, you don't need %%. And if you are referring to a string and not a variable, then you use "string" (which you did correctly), where a variable would not have the quotes.
by SOTE
10 Apr 2019, 06:37
Forum: Scripts and Functions
Topic: Url Parser
Replies: 13
Views: 4862

Re: Url Parser

I'm not trying to rain on any Regex/Regular Expressions parades, but using InStr, SubStr, and Loop Parse are arguably more straightforward and are often visually easier to comprehend. Though I won't argue that if someone is really good at Regex, it can be a moot point.
by SOTE
10 Apr 2019, 03:29
Forum: About This Community
Topic: New forum sections proposal.
Replies: 113
Views: 31783

Re: New forum sections proposal.

joedf wrote:
08 Apr 2019, 08:28
Yeah, I’ve used C# quite a bit in the past... it’s c-like but it’s rather different in most respects :b

We can add C# if everyone is for it. :+1:
Yes, you should add it. From the previous comments, looks like there is agreement that C# can be part of or have a subforum.
by SOTE
08 Apr 2019, 17:55
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 11
Views: 22747

Re: Autohotkey for Mac

Usually the issues presented about AutoHotkey being on a different OS has been the Windows APIs and Dlls, where the code needs to be different for that OS. However, to make this a bit more complicated, there is WINE ( https://en.wikipedia.org/wiki/Wine_(software) . Open-source software that provides...
by SOTE
08 Apr 2019, 08:09
Forum: Ask For Help
Topic: Autohotkey for Mac
Replies: 11
Views: 22747

Re: Autohotkey for Mac

Is it possible to run the same AHK code written for Windows on a Mac by using a different software (e.g. Karabiner)? I've heard you can do this by translating AHK via another common language, such as Lua. For instance have Lua "interpret" the AHK code by reading regular AHK code and then tranformin...

Go to advanced search