Search found 161 matches

by MrDoge
28 Apr 2024, 21:50
Forum: Scripts and Functions (v2)
Topic: [v2] GoogleTranslate /_/TranslateWebserverUi
Replies: 3
Views: 1469

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: 381

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: 348

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: 348

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: 348

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: 348

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: 398

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: 348

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: 91019

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: 1353

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: 1353

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: 1353

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: 1353

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 (166 utility methods)
Replies: 130
Views: 43591

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: 2878

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: 7073

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: 2878

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: 2878

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
by MrDoge
22 Apr 2023, 12:46
Forum: Ask for Help (v1)
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 24
Views: 2878

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

MS Word doesn't support webp, pasting works with png in MS Word you can import webp (by clicking buttons), but it converts it to its internal format ? which I think is png ? so might as well convert it to png, as webp can never really exist in Word but at the same time, I want the original webp to r...
by MrDoge
22 Apr 2023, 12:08
Forum: Ask for Help (v1)
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 24
Views: 2878

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

this is "filesToClipboard.ah2" (instead of imgToClipboard), but it works when pasting into discord (both images are shown, and with filename), I don't know where else to test tell me if it doesn't work somewhere, then I'll know what to do (what format it(the app) checks) #SingleInstance force ListLi...

Go to advanced search