Search found 163 matches

by MrDoge
Yesterday, 23:55
Forum: Scripts and Functions (v2)
Topic: Pulover's Macro Creator for v2 [mod]
Replies: 26
Views: 8212

Re: Pulover's Macro Creator for v2 [mod]

if the conversion fails, or if the code doesn't run, here's an alternative converter: https://www.autohotkey.com/boards/viewtopic.php?f=83&t=130464 https://fupeijiang.github.io/pmc_to_ahkv2/ if you know how to embed javascript, you could use this function as a backup I'm willing to update this going...
by MrDoge
Yesterday, 23:45
Forum: Scripts and Functions (v2)
Topic: [website] pmc_to_ahkv2 (Pulover's Macro Creator)
Replies: 0
Views: 88

[website] pmc_to_ahkv2 (Pulover's Macro Creator)

https://fupeijiang.github.io/pmc_to_ahkv2/ I'd like to get bug reports I will only update if I get bug reports where ? (preferred: faster) help channel on autohotkey discord (fine) here: autohotkey forums (fine) github issues including the .pmc file in the bug report always helps a ton ___ I found t...
by MrDoge
28 Apr 2024, 21:50
Forum: Scripts and Functions (v2)
Topic: [v2] GoogleTranslate /_/TranslateWebserverUi
Replies: 3
Views: 1543

Re: [v2] GoogleTranslate /_/TranslateWebserverUi

json[2][1][1][1]=="cagna" json[2][1][1][3]=="(feminine)" json[2][1][2][1]=="cane" json[2][1][2][3]=="(masculine)" you can debug the json by putting A_Clipboard:=JSON_stringify(json,100) after the line: json := JSON_parse(jsonTemp[1][3]) and setting a breakpoint in vscode to stop execution MsgBox JSO...
by MrDoge
16 Apr 2024, 14:55
Forum: Scripts and Functions (v2)
Topic: MemoryModule
Replies: 0
Views: 453

MemoryModule

load dll from FileInstall or @Ahk2Exe-AddResource > include a Dll into a compiled .exe and then load the Dll and use it without having to extract the Dll example1.ah2 ;https://github.com/thqby/ahk2_lib/tree/master/WebView2 ;@Ahk2Exe-AddResource 64bit\WebView2Loader.dll main := Gui('+Resize') main.On...
by MrDoge
15 Apr 2024, 02:24
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 387

Re: Cmd Hide And Output Topic is solved

@ArkuS I updated the script, does it work now without having to change this line ?

Code: Select all

while (cp.Peek()!=="E n t e r   p a s s w o r d :   ") {
by MrDoge
14 Apr 2024, 23:05
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 387

Re: Cmd Hide And Output/RunCmd Topic is solved

replace "E n t e r p a s s w o r d : " with exactly what it shows, it should be in your Clipboard, so just paste it
at this line:

Code: Select all

while (cp.Peek()!=="E n t e r   p a s s w o r d :   ") {
by MrDoge
14 Apr 2024, 22:42
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 387

Re: Cmd Hide And Output/RunCmd Topic is solved

Code: Select all

while (cp.Peek()!=="E n t e r   p a s s w o r d :   ") {
    ToolTip % Clipboard:=cp.Peek()
    Sleep 100
}
what does the ToolTip or Clipboard show ?
by MrDoge
14 Apr 2024, 19:24
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 387

Re: Cmd Hide And Output/RunCmd Topic is solved

cp:=new ChildProcess_ConsoleSend("aescrypt.exe -d -o - x.txt.aes") while (cp.Peek()!=="E n t e r p a s s w o r d : ") { Sleep 100 } cp.Reset_Peek() cp.ConsoleSend("apples`r") response:=cp.ReadUntilClosed() AesPassword:=SubStr(response,5) if (InStr(AesPassword, "this_is_the_password")) { MsgBox % "I...
by MrDoge
14 Apr 2024, 18:18
Forum: Scripts and Functions (v2)
Topic: ChildProcess
Replies: 1
Views: 437

ChildProcess

RunCMD.ah2 RunCMD(CmdLine, WorkingDir:=A_WorkingDir, Codepage:="UTF-8") { DllCall("CreatePipe","Ptr*",&hReadPipe:=0,"Ptr*",&hWritePipe:=0,"Ptr",0,"Uint",0) DllCall("SetHandleInformation","Ptr",hWritePipe,"Uint",1,"Uint",1) ;HANDLE_FLAG_INHERIT:1 STARTUPINFOW:=Buffer(9*A_PtrSize+0x20,0) NumPut("Uint...
by MrDoge
14 Apr 2024, 03:49
Forum: Ask for Help (v1)
Topic: Cmd Hide And Output Topic is solved
Replies: 10
Views: 387

Re: Cmd Hide And Output/RunCmd Topic is solved

cp:=ChildProcess_ConsoleSend("aescrypt -d -o - x.txt.aes") Sleep 100 prompt:=cp.Read() cp.ConsoleSend("apples`r") Sleep 100 response:=cp.Read() AesPassword:=SubStr(response,5) if (InStr(AesPassword, "this_is_the_password")) { MsgBox "It's Working" } class ChildProcess_ConsoleSend { __New(CmdLine, W...
by MrDoge
14 Apr 2024, 01:44
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 249
Views: 92352

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

this is impossible using stdin https://github.com/paulej/AESCrypt/blob/2997c62594ff08cf545b34b9035a8fe07e2d4c80/Windows/Console/password.c#L92 and error in _getch call - The _getch and _getwch functions read a single character from the console - console ! but not redirected stdin – RbMm Aug 11, 2018...
by MrDoge
11 Apr 2024, 21:47
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1434

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

iPhilip thank you so much, I was gonna try WinDbg or something.. my C version doesn't help either.. ((HRESULT(*)(void *))(pID2D1RenderTarget[0][48]))(pID2D1RenderTarget); //ID2D1RenderTarget::BeginDraw and the headers are only in C++, I should have at least manually written C structs I'll edit my v...
by MrDoge
24 Feb 2024, 14:53
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1434

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

iseahound If you're asking do I mind: You can omit the credits if you want, I don't care (and idk when I'll care) modifications: sure, do what you want, do what you need do I like seeing credits: sure If you're notifying me: cool that it's used by you, and ImagePut also: cool that it's actually use...
by MrDoge
28 Sep 2023, 09:18
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1434

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

This is what I use, I think it's the same thing! https://github.com/iseahound/ImagePut/blob/9ef0dfce751e0626ee75ae38f66f650534132089/ImagePut.ahk#L4021 I went in your code and I couldn't find the string "svg" nor the string "116" I was scared you had already implemented it Hmmm... Could your code b...
by MrDoge
27 Sep 2023, 07:14
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 13
Views: 1434

svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

(since AddPicture() can't add an SVG) svgToHBITMAP.ah2 #SingleInstance force ListLines 0 KeyHistory 0 SendMode "Input" ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir A_ScriptDir ; Ensures a consistent starting directory. svgToHBITMAP(svgPath,width,height) { ;h...
by MrDoge
11 May 2023, 10:34
Forum: Scripts and Functions (v1)
Topic: [Class] biga.ahk (174 utility methods)
Replies: 132
Views: 44634

Re: [Class] biga.ahk (166 utility methods)

Jasonosaj this is a converted version (using ahk_to_v2.ah2), so it may not look nice Biga.ah2 : https://raw.githubusercontent.com/FuPeiJiang/ahk_to_v2.ah2/main/converted/Biga.ah2 use Biga.ah2 : https://raw.githubusercontent.com/FuPeiJiang/ahk_to_v2.ah2/main/converted/use%20Biga.ah2 https://github.c...
by MrDoge
24 Apr 2023, 12:25
Forum: Ask for Help (v1)
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 24
Views: 3256

Re: how can i with pressing 1 load a image in to Clipboard and Paste it?

I'm gonna rename this function: webpToClipboard_CF_DIB -> imgToClipboard_CF_DIB (it actually works with any image codec) imgToClipboard_CF_DIB.ah2 #SingleInstance force ListLines 0 KeyHistory 0 SendMode "Input" ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir A_...
by MrDoge
24 Apr 2023, 12:12
Forum: Ask for Help (v1)
Topic: Gui support for webp image format Topic is solved
Replies: 27
Views: 7157

Re: Gui support for webp image format Topic is solved

As far as I can determine Windows 10 does not have built-in support for WebP I want to respond to this https://stackoverflow.com/questions/43101742/iwicimagingfactorycreatedecoderfromfilename-keeps-the-file-locked-even-after this was asked in 2017, your post was in 2019, so I think Windows did have...
by MrDoge
23 Apr 2023, 16:25
Forum: Ask for Help (v1)
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 24
Views: 3256

Re: how can i with pressing 1 load a image in to Clipboard and Paste it?

in chrome, CF_HDROP takes priority over CF_DIB, if the file doesn't exist, it doesn't fallback to CF_DIB in Word, CF_HDROP takes priority over CF_DIB, but webp pastes as a file, not an image firefox copies the image to Temp and puts the path in CF_HDROP, upon change of clipboard, firefox deletes the...
by MrDoge
22 Apr 2023, 13:06
Forum: Ask for Help (v1)
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 24
Views: 3256

Re: how can i with pressing 1 load a image in to Clipboard and Paste it?

I open the clipboard, all I see is CF_DIB, no webp, (used Nirsoft InsideClipboard)
It’s magic that chrome recognizes mimetype webm, and png, I fear that it’s ignoring the CF_DIB and downloading from url

Go to advanced search