Search found 602 matches

by afe
22 Oct 2020, 06:35
Forum: Ask For Help
Topic: How to use mcode to encrypt source code? Are there any ready-made tools?
Replies: 3
Views: 112

How to use mcode to encrypt source code? Are there any ready-made tools?

How to use mcode to encrypt source code? Are there any ready-made tools?
I don't understand mcode. Is it possible to encrypt the source code into an EXE and no longer need AutoHotKey.exe when running it?
by afe
09 Oct 2020, 03:16
Forum: Scripts and Functions
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 26
Views: 1808

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

My program has been decoded by others, and the account was used to sell it. I can't do anything about it. I know that this day will come sooner or later, and have been considering changing to another language. Of course, this is not the only reason. AutoHotKey does not support multi-threading, and t...
by afe
07 Oct 2020, 05:59
Forum: Scripts and Functions
Topic: ScriptGuard: Helps Protect Compiled Scripts from Decompilation
Replies: 26
Views: 1808

Re: ScriptGuard: Helps Protect Compiled Scripts from Decompilation

Unfortunately, this method does not allow the source code to be protected too much.
by afe
05 Jul 2020, 03:32
Forum: Ask For Help
Topic: Run cmd has an unexpected result
Replies: 2
Views: 765

Re: Run cmd has an unexpected result

I don't think it has anything to do with the working directory. The working directory impact will be CMD, and CMD is not in the script directory, nor will it affect the subsequent appA. The problem should be what caused the directory displayed after 'Run, cmd' to be 'C:\Windows\Systme32' instead of ...
by afe
05 Jul 2020, 02:48
Forum: Ask For Help
Topic: Run cmd has an unexpected result
Replies: 2
Views: 765

Run cmd has an unexpected result

Run, cmd /K Usually, the current directory will be displayed when this command is completed, but the result obtained by someone is C:\Windows\System32 Why is that? This will cause a error "The system cannot find the path specified." when running other programs in the current directory of the script...
by afe
02 Jul 2020, 02:42
Forum: Ask For Help
Topic: What is the option to not use proxy for winhttp in AHK?
Replies: 0
Views: 510

What is the option to not use proxy for winhttp in AHK?

What is the option to not use proxy for winhttp in AHK? whr.SetProxy(1) or whr.SetProxy(0) ?
by afe
02 Jul 2020, 02:18
Forum: Ask For Help
Topic: What is the option for winhttp to retrieve the server certificate ?
Replies: 0
Views: 509

What is the option for winhttp to retrieve the server certificate ?

What is the option for winhttp to retrieve the server certificate ? I want to determine whether a man-in-the-middle attack or proxy exists by retrieving the server certificate. https://docs.microsoft.com/en-us/windows/win32/winhttp/ssl-in-winhttp Although winhttp itself seems to have such an API, bu...
by afe
15 Jun 2020, 09:50
Forum: Ask For Help
Topic: Listview display issues on Windows XP
Replies: 0
Views: 346

Listview display issues on Windows XP

On Windows XP, remove a window that covers the ahk program. If the ahk program has a Listview, then the Listview will not be redrawn, but displayed blank.

I tested it on a VMware virtual machine and am not sure if this is related to this issue. Has anyone encountered this problem before?
by afe
25 May 2020, 03:34
Forum: Ask For Help
Topic: Questions about writing code
Replies: 1
Views: 124

Questions about writing code

Which of the following three codes is more conducive to reading or which one is recommended? f() { if ( x = 0 ) { y := 1 return, y } else { MsgBox Error ExitApp } } f() { if ( x = 0 ) y := 1 else { MsgBox Error ExitApp } return, y } f() { if ( x = 0 ) { y := 1 return, y } MsgBox Error ExitApp }
by afe
19 May 2020, 12:53
Forum: Ask For Help
Topic: How to quickly generate random strings? Topic is solved
Replies: 12
Views: 671

Re: How to quickly generate random strings? Topic is solved

Code: Select all

s := "0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"

Loop, 3
   i .= s . ","

Sort, i, Random D,
i := SubStr(i, 1, 7)
i := StrReplace(i, ",")
msgbox % i
I simplified it a little bit.
by afe
19 May 2020, 10:55
Forum: Ask For Help
Topic: About getting the first few approximate substrings of a string Topic is solved
Replies: 2
Views: 134

About getting the first few approximate substrings of a string Topic is solved

If a string is composed of several " -x abc" substrings, is there a simple way to get the first few groups " -x a -x bc -x d -x efg -x h -x i -x jklm" The following is an example of obtaining the first 4 sets of substrings. Can it be simplified? str := " -x a -x bc -x d -x efg -x h -x i -x jklm" Reg...
by afe
17 May 2020, 12:06
Forum: Ask For Help
Topic: How to quickly generate random strings? Topic is solved
Replies: 12
Views: 671

How to quickly generate random strings? Topic is solved

How to quickly generate a random string of length 4 containing only numbers and lowercase letters? And allow up to 3 characters to be repeated. The following code is too verbose, how can I improve it? s := "0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z" Loop, 3 i .= s . ","...
by afe
16 May 2020, 11:11
Forum: Ask For Help
Topic: How to traverse 1-9 random numbers quickly and randomly? Topic is solved
Replies: 2
Views: 180

How to traverse 1-9 random numbers quickly and randomly? Topic is solved

How to traverse 1-9 random numbers quickly and randomly? Does this algorithm need to be improved? a := [] loop, 9 { Loop { b := 0 i := random() for key, value in a { If value = i { b := 1 break } } if ( b = 0 ) { a.push(i) break } } } return random() { Random, r, 1, 9 return, r }
by afe
03 May 2020, 09:48
Forum: Ask For Help
Topic: Why is the empty string less than 0?
Replies: 2
Views: 231

Why is the empty string less than 0?

Why is the empty string less than 0?

Code: Select all

If a < 0
  MsgBox OK
by afe
08 Mar 2020, 04:51
Forum: Ask For Help
Topic: How to hide the real IP when sending HTTP request?
Replies: 0
Views: 413

How to hide the real IP when sending HTTP request?

Hello,

How to hide the real IP when sending HTTP request? Can I hide IP like IPFlood?
by afe
29 Feb 2020, 13:52
Forum: Ask For Help
Topic: How to prevent WinHttp requests from being hijacked?
Replies: 0
Views: 337

How to prevent WinHttp requests from being hijacked?

Hello, How to prevent WinHttp requests from being hijacked or is there a way to detect if it has been hijacked? When I opened the cracking program, I found that the WinHttp request that should open my website requested another website. Obviously, this was done by the cracking program. I'm sure it's ...
by afe
13 Feb 2020, 04:30
Forum: Ask For Help
Topic: How to check if it contains characters other than letters, numbers and some ASCII special characters? Topic is solved
Replies: 4
Views: 504

Re: How to check if it contains characters other than letters, numbers and some ASCII special characters? Topic is solved

Oh, I made a stupid mistake. However, I found that when the regular expression is written as follows, it will not match "*". Should escape sequences be followed in regular expressions as well? str := "a1*" MsgBox % RegExMatch(str, "[^ !#\$%&'\(\)\+,-\.0-9:;[email protected]\[\\\]\^_`a-z\{}~]") Escape Sequences ...

Go to advanced search