Search found 1493 matches

by SKAN
11 Jul 2023, 04:15
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 249
Views: 88921

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

teadrinker wrote:
06 Apr 2022, 02:15
SKAN wrote:

Code: Select all

While A_Args.RunCMD.PID and (Line := File.ReadLine())
What if Line is "0" ?
:(
 
Corrected it to

Code: Select all

        While A_Args.RunCMD.PID and StrLen(Line := File.ReadLine())
Thanks. :)
by SKAN
08 Jul 2023, 04:50
Forum: Scripts and Functions (v2)
Topic: Mcalc() : Minimalist calculator (for basic maths)
Replies: 18
Views: 4479

Re: Mcalc() : Minimalist calculator (for basic maths)

You can try leveraging mathjs as the engine. See this for an example: https://www.autohotkey.com/boards/viewtopic.php?f=83&t=119129   math.js does seem interesting, for eg. math.evaluate('2 inch to cm') // 5.08 cm But I need a calc that would return the ahk-value of an Expression, which helps me wh...
by SKAN
07 Jul 2023, 04:30
Forum: Scripts and Functions (v2)
Topic: Mcalc() : Minimalist calculator (for basic maths)
Replies: 18
Views: 4479

Mcalc() v0.40

Updated : v0.40

Function Sin() was missing, now added.
ACos() and ATan() wasn't working, now corrected.
_ (underscore) was performing floor divide, now corrected.
by SKAN
05 Jul 2023, 01:08
Forum: Scripts and Functions (v2)
Topic: ListBuffer() : Buffer object viewer
Replies: 15
Views: 3867

ListBuffer()

Hi @hasantr
Thanks for cheering me on!
:) :thumbup:
by SKAN
30 Jun 2023, 11:24
Forum: Scripts and Functions (v2)
Topic: ListBuffer() : Buffer object viewer
Replies: 15
Views: 3867

ListBuffer() v0.49

Updated : v0.49

Added Copy as Base64 option for selected bytes.
This enables me to pull mcode directly from a .obj file.

For Pelles-C created .obj file,
code length is an int @offset:36
code starting pos is an int @offset:40
 
 
CopyAsBase64.png
CopyAsBase64.png (41.82 KiB) Viewed 1802 times
 
 
by SKAN
29 Jun 2023, 08:23
Forum: Ask for Help (v2)
Topic: PixelSearch varient only 1 color Topic is solved
Replies: 10
Views: 699

Re: PixelSearch varient only 1 color Topic is solved

Also

Code: Select all

#Requires AutoHotkey v2.0
R := 250 ; 0xFA
G := 51  ; 0x33
B := 51  ; 0x33
Hex := Format("0x{1:02X}{2:02X}{3:02X}", R, G, B)
; Or simply
Hex := Format("0x{1:02X}{2:02X}{3:02X}", 250, 51, 51)
MsgBox(Hex)
by SKAN
29 Jun 2023, 07:41
Forum: Scripts and Functions (v1)
Topic: SetClipboardHTML() for V1.1 & V2
Replies: 29
Views: 7661

Re: SetClipboardHTML() for V1 & V2

The Clipboard image format is compatible with Office applications but not with MS Paint for example. This function is SetClipboardHTML(). For the image to clipboard functionality , I've written SetClipboardBitmap() , which would require a filename. Your need to convert Base64 to HBM is best solved ...
by SKAN
29 Jun 2023, 06:05
Forum: Scripts and Functions (v1)
Topic: SetClipboardHTML() for V1.1 & V2
Replies: 29
Views: 7661

Re: SetClipboardHTML() for V1 & V2

Paste tested the following in Compose mail (gmail/yahoo!mail). #SingleInstance Force Base64PNG := "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAAflBMVEXOgwD///+AUQDz5NSTXQDj3NSliWe7dwCnagD" . "GtaPnx6Pbp2eGVQDt1rz6+PXRjSTJgADCewCycQCeZADkwJbhuIf58ur06t/qzrDesHirbQDw3ci0nILYn1TVlj+KYSSiZwCYYQCOW" ....
by SKAN
29 Jun 2023, 05:44
Forum: Scripts and Functions (v1)
Topic: SetClipboardHTML() for V1.1 & V2
Replies: 29
Views: 7661

Re: SetClipboardHTML() for V1 & V2

I have tried the latest version to paste some <img src="data:image/png;base64,... (see example in previous post) and I couldn't get it to work. Sorry about that! I had made some last minute change and posted without checking. Html := "Version:0.9" LF "StartHTML: 00000000 " LF "EndHTML: 00000000" LF...
by SKAN
29 Jun 2023, 00:53
Forum: Scripts and Functions (v1)
Topic: SetClipboardHTML() for V1.1 & V2
Replies: 29
Views: 7661

SetClipboardHTML() for V1 & V2

Hi @SKAN, this looks great. Would you consider making an AHK 2 version? I'm looking for a fast and robust function that does what this does.   Code updated to Run in both V1 & V2   Hey @SKAN, when I use this function it always pastes an extra space in the end, and I see in your examples you were co...
by SKAN
28 Jun 2023, 12:24
Forum: Ask for Help (v2)
Topic: How to make auto suggestion
Replies: 9
Views: 648

Re: How to make auto suggestion

xMaxrayx wrote:
27 Jun 2023, 03:00
as far, I did this but idk how to delete/hide this frame border?


Image

Code: Select all

myGui.Opt("-Caption +ToolWindow +AlwaysOnTop")
 
Like this, maybe?
 

Code: Select all

myGui.Opt("-Caption +ToolWindow +AlwaysOnTop")
myGui.MarginX := 0
myGui.MarginY := 0
by SKAN
27 Jun 2023, 09:16
Forum: Scripts and Functions (v2)
Topic: PercentageCalculator() : UI for percentage calculation
Replies: 9
Views: 2889

PercentageCalculator() v0.95

Updated : v 0.95   Code rewritten to remove redundant code. MsgBox( 0 / (0/100) ) Divide by zero error is mostly avoided though I have included one Try to suppress any random occurring ones.   Marks scored 64 out of 80 was computed as Original: 80 Deduct: 20% New: 64     Now the code has been improv...
by SKAN
25 Jun 2023, 07:49
Forum: Scripts and Functions (v2)
Topic: StopWatch() : StopWatch timer with lap.
Replies: 10
Views: 2578

StopWatch() v1.10

Updated : v 1.10 Pressing Alt or F10 when stop watch was running was pausing the SetTimer. Have possibly overcome this with following code:   WM_ENTERMENULOOP(wParam, lParam, msg, hwnd) { Return 0 } OnMessage(0x211, WM_ENTERMENULOOP, 1) ; Prevent F10 / Alt key from pausing the stopwatch   Code style...
by SKAN
24 Jun 2023, 17:53
Forum: Scripts and Functions (v2)
Topic: Mcalc() : Minimalist calculator (for basic maths)
Replies: 18
Views: 4479

Mcalc() v0.39

Updated : v 0.39   While pre-processing, all spaces were removed from Expression. This had some unwanted side effects, for eg. Round( 123. 242, 2 ) was producing correct result of 123.24 . The code has now improved to handle all spaces gracefully, without removing them. Error will be thrown by Valid...
by SKAN
24 Jun 2023, 12:43
Forum: Scripts and Functions (v2)
Topic: StopWatch() : StopWatch timer with lap.
Replies: 10
Views: 2578

Re: Stopwatch() : Stopwatch timer with lap.

when running the script nothing happens, no error is raised but the gui doesn't pop up either, in the system tray there is no autohotkey icon running either.   StopWatch() is a function not meant to be run standalone. Create following script, paste StopWatch() and then run it. #Requires AutoHotkey ...
by SKAN
15 Jun 2023, 15:20
Forum: Scripts and Functions (v1)
Topic: ScrCmp() : Detects changes in screen by comparing two screenshots
Replies: 23
Views: 12060

ScrCmp() for V2

Function along with a call example:   ScrCmp(X?, Y?, W?, H?, Hwnd?, Sleep1:=100, Sleep2:=100 ) ; 0.90 by SKAN for ah2 on D3B3/D66G @ autohotkey.com/r?p=526129 { Static Wait := True If Not IsSet(X) Return {Cancel: !(Wait := False)} Hwnd := WinExist( Max(IsSet(Hwnd), Hwnd?) ) Local BITMAPINFO := Buffe...
by SKAN
15 Jun 2023, 15:19
Forum: Scripts and Functions (v1)
Topic: ScrCmp() : Detects changes in screen by comparing two screenshots
Replies: 23
Views: 12060

Re: ScrCmp() : Detects changes in screen by comparing two screenshots

EmbersUnle4shed wrote:
15 Jun 2023, 05:05
Is there any change you worked on the v2 version ?
I'll post a rough translation...
by SKAN
14 Jun 2023, 00:23
Forum: Scripts and Functions (v2)
Topic: ListBuffer() : Buffer object viewer
Replies: 15
Views: 3867

ListBuffer() v0.48

Updated : v0.48
 
Added text copying feature from current offset (both utf-16 and utf-8).
 
 
Spoiler
 
by SKAN
13 Jun 2023, 05:05
Forum: Suggestions on Documentation Improvements
Topic: Dropping files on Gui not working in admin mode
Replies: 5
Views: 1199

Re: Dropping files on Gui not working in admin mode

neogna2 wrote:
13 Jun 2023, 04:56
Script suggestion: change variable name MSGFLT_ADD to MSGFLT_ALLOW to fit the ChangeWindowMessageFilterEx documentation.
Changed.. Thanks :thumbup:
by SKAN
13 Jun 2023, 01:10
Forum: Suggestions on Documentation Improvements
Topic: Dropping files on Gui not working in admin mode
Replies: 5
Views: 1199

Re: Dropping files on Gui not working in admin mode

ChangeWindowMessageFilter wrote: [Using the ChangeWindowMessageFilter function is not recommended, as it has process-wide scope. Instead, use the ChangeWindowMessageFilterEx function to control access to specific windows as needed. ChangeWindowMessageFilter may not be supported in future versions o...

Go to advanced search