Search found 24 matches

by micasa
04 Apr 2019, 22:18
Forum: Scripts and Functions
Topic: [AHK_V2] Unconventional use of Pastebin.com API. Sync your files!
Replies: 0
Views: 302

[AHK_V2] Unconventional use of Pastebin.com API. Sync your files!

Download the program here: https://pastebin.com/t56KZsku It's over 1,800 lines long, so I don't think I should post it on the forum. Usage instructions are included at the top of the program. The program makes use of @jNizM 's BcryptMd5 and BcryptMD5_file functions. Thank you @jNizM ! Here are the f...
by micasa
04 Apr 2019, 21:13
Forum: Scripts and Functions
Topic: PowerPaste for sequential pasting
Replies: 3
Views: 815

Re: PowerPaste for sequential pasting

Thanks for this. How are you using it?

I think it could be useful with a file full of links. However, I probably wouldn't delete the file afterwards.

I had always used FileDelete. Never heard of FileRecycle before, but I will be using it now that I know!
by micasa
03 Apr 2019, 09:21
Forum: Scripts and Functions
Topic: [AHK_V2] Feature-rich Pastebin.com API program
Replies: 0
Views: 339

[AHK_V2] Feature-rich Pastebin.com API program

Download the program here: https://pastebin.com/61JRZR9t It's over 2,000 lines long, so I don't think I should post it on the forum. Usage instructions are included at the top of the program. The program makes use of @jNizM 's BcryptMd5 function. Thank you @ @jNizM ! Here are the features and hotkey...
by micasa
03 Apr 2019, 05:41
Forum: Scripts and Functions
Topic: [AHK_V2] sqlite3.exe and Class_SQLiteDB.ahk examples
Replies: 0
Views: 286

[AHK_V2] sqlite3.exe and Class_SQLiteDB.ahk examples

I had recently created a script using sqlite3.exe, but then just realized a few days ago that @kczx3 had ported @just me 's Class_SQLiteDB.ahk sql wrapper to AHK_V2. Therefore, I am posting examples for both! As a dataset, I chose an excerpt from the CC_CEDICT Chinese-English dictionary. sqlite3.exe...
by micasa
01 Apr 2019, 10:02
Forum: Scripts and Functions
Topic: [v2] SQLite Database Viewer
Replies: 24
Views: 2541

Re: [v2] SQLite Database Viewer

Not at all. I just don't have the time to fully go through and test everything so typically its a "fix when I find the break" strategy. You're just helping me find the breaks faster! Replace the Free() method of the _Recordset class with this: Thank you! That fixed it! Much faster than my sqlite3.e...
by micasa
31 Mar 2019, 22:25
Forum: Scripts and Functions
Topic: [v2] SQLite Database Viewer
Replies: 24
Views: 2541

Re: [v2] SQLite Database Viewer

AHK v1 gave you two ways to retrieve the address of an object. Either &object or Object(object) . AHK v2 doesn't support the latter method. So in the exec method of the SQLiteDB class, you need to modify it like so: Thank you! It basically works, but still throws errors while cleaning up after a qu...
by micasa
31 Mar 2019, 07:04
Forum: Scripts and Functions
Topic: [v2] SQLite Database Viewer
Replies: 24
Views: 2541

Re: [v2] SQLite Database Viewer

@kczx3 I just tested it out on a database with over 8 million rows and it was very smooth! Response time is great all around. Thank you! When I try to use your ported version of Class_SQLiteDB in a standalone script of mine, I get a dll error on line 534. Parameter #1 invalid ---> 534: RC := DllCall...
by micasa
21 Feb 2019, 06:18
Forum: Ask For Help
Topic: How can I log Key History?
Replies: 1
Views: 245

Re: How can I log Key History?

I have never used it, but there is a KeyHistory command that might help you. https://autohotkey.com/docs/commands/KeyHistory.htm Personally, I think I would create two global integer variables, one for each hotkey. Increment the respective variable each time you run your hotkey. Then, right before c...
by micasa
21 Feb 2019, 05:03
Forum: Ask For Help
Topic: Why do the same HTTP requests get different responses?
Replies: 3
Views: 430

Re: Why do the same HTTP requests get different responses?

If I were you, I would probably first try to initiate the request using curl. Then after you got something working, you could try to port it to WinHTTPRequest5.1. Are you sure you are handling the cookies correctly with a session? Does your POST data include files? There are many possibilities for t...
by micasa
12 Feb 2019, 11:30
Forum: Ask For Help
Topic: [AHK V2] How to use raw bytes in bcrypt_sha256_hmac Topic is solved
Replies: 4
Views: 381

Re: [AHK V2] How to use raw bytes in bcrypt_sha256_hmac Topic is solved

I got it to work!! Thank you @just me! I just noticed that the Hex2Bin function that @vvhitevvizard created for me has a return value with the size of the binary content: Hex2Bin(ByRef _s, ByRef _b, _f:=0x4){ ;_s:hex string, _b:byte array, _f:flags 4=CRYPT_STRING_HEX ;converts a hex string into an a...
by micasa
12 Feb 2019, 11:03
Forum: Ask For Help
Topic: [AHK V2] How to use raw bytes in bcrypt_sha256_hmac Topic is solved
Replies: 4
Views: 381

Re: [AHK V2] How to use raw bytes in bcrypt_sha256_hmac Topic is solved

If your 'signing_key' has binary contents, just pass the address of the variable and the size in bytes to the function @just me, thank you very much for your time and solution. I should have mentioned this in my OP, but the raw bytes are in an array, not a string. So, my naive attempt failed. (Sorr...
by micasa
12 Feb 2019, 09:41
Forum: Ask For Help
Topic: Win key stuck
Replies: 3
Views: 372

Re: Win key stuck

You release it using the keyboard, but the key still remains stuck? How do you know that you are actually releasing it via the keyboard if it is still stuck? Many people have had a problem with sticky keys. The best solution I have found is to monitor for them. I found a script on this forum once th...
by micasa
12 Feb 2019, 07:24
Forum: Ask For Help
Topic: [AHK V2] How to use raw bytes in bcrypt_sha256_hmac Topic is solved
Replies: 4
Views: 381

[AHK V2] How to use raw bytes in bcrypt_sha256_hmac Topic is solved

Hello, everyone. This is a follow-up question to a question I asked last month: https://www.autohotkey.com/boards/viewtopic.php?t=60434 I need to make an AWS API call that requires lots of setup using hash functions. Thanks to @vvhitevvizard, I was able to obtain a Hex2Bin function that helped me ge...
by micasa
05 Feb 2019, 10:23
Forum: AutoHotkey v2 Development
Topic: Unexpected behavior when attempting to set WinHttp.WinHttpRequest.5.1 options Topic is solved
Replies: 5
Views: 892

Re: Unexpected behavior when attempting to set WinHttp.WinHttpRequest.5.1 options Topic is solved

You need to use [] instead of (). The () were allowed for no good reason and are actually wrong. Thank you very much! Actually, I was thinking that, but when I tried some array methods on HttpObj.Option I was getting errors, so I wrongly assumed [] would not work. Thanks again for your help and qui...
by micasa
05 Feb 2019, 10:02
Forum: AutoHotkey v2 Development
Topic: Unexpected behavior when attempting to set WinHttp.WinHttpRequest.5.1 options Topic is solved
Replies: 5
Views: 892

Unexpected behavior when attempting to set WinHttp.WinHttpRequest.5.1 options Topic is solved

Hello, everyone. I am new to AHK, in general, so this might not be a bug at all, but the behavior seems a bit unexpected to me. WinHttp.WinHttpRequest.5.1 provides various options that can be set. Here is the reference: https://docs.microsoft.com/en-us/windows/desktop/winhttp/winhttprequestoption In...
by micasa
04 Feb 2019, 11:10
Forum: Ask For Help
Topic: How to convert the output from jNizM's bcrypt_sha256_hmac function to binary data Topic is solved
Replies: 9
Views: 887

Re: How to convert the output from jNizM's bcrypt_sha256_hmac function to binary data Topic is solved

EDIT Feb. 13 2019 I got it to work! I opened a new thread here: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=61971 @vvhitevvizard, I combined your solution with the revised bcrypt function created by @just me. Thank you very much for all of your help! ----------------------- By the way, d...
by micasa
04 Feb 2019, 10:27
Forum: Ask For Help
Topic: How to convert the output from jNizM's bcrypt_sha256_hmac function to binary data Topic is solved
Replies: 9
Views: 887

Re: How to convert the output from jNizM's bcrypt_sha256_hmac function to binary data Topic is solved

BTW, Cryptography Next Generation API bcrypt.dll is missing in Windows XP and older. For those there is advapi32.dll , tho that API is deprecated now. libcrypt https://github.com/ahkscript/libcrypt.ahk/blob/master/examples/HMAC.ahk has some functions for advapi32.dll usage, but they r like twice as...
by micasa
04 Feb 2019, 07:21
Forum: Ask For Help
Topic: How to convert the output from jNizM's bcrypt_sha256_hmac function to binary data Topic is solved
Replies: 9
Views: 887

Re: How to convert the output from jNizM's bcrypt_sha256_hmac function to binary data Topic is solved

hmm, it happens that Microsoft's CryptStringToBinary is a ridiculously slow function actually. Even AHK loop is 2-3 times faster. ... static t:="0123456789abcdef" ;returns the hexdigest of msg: it MUST BE in lowercase loop(len) v:=NumGet(buf,A_Index-1, 'uchar') , s.=SubStr(t,(v>>4)+1,1) SubStr(t,(v...
by micasa
02 Jan 2019, 10:49
Forum: AutoHotkey_H
Topic: Please help me create a basic multi-threaded example Topic is solved
Replies: 3
Views: 669

Re: Please help me create a basic multi-threaded example Topic is solved

I realized that the code was missing a ")". So, this should have been: data := "data for API call" a := data b := data c := data d := data dll1:=AhkThread("Alias(a," getvar(a) ")`n#include ScriptA.ahk") dll2:=AhkThread("Alias(b," getvar(b) ")`n#include ScriptB.ahk") dll3:=AhkThread("Alias(c," getvar...
by micasa
02 Jan 2019, 10:31
Forum: AutoHotkey_H
Topic: Please help me create a basic multi-threaded example Topic is solved
Replies: 3
Views: 669

Re: Please help me create a basic multi-threaded example Topic is solved

Thank you very much for taking the time to reply. I kept getting the Error: Missing "}" at line 1. I tried running it like this: data := "data for API call" dll1:=AhkThread("Alias(a," getvar(data) "`n#include ScriptA.ahk") dll2:=AhkThread("Alias(b," getvar(data) "`n#include ScriptB.ahk") dll3:=AhkTh...

Go to advanced search