Search found 777 matches

by SKAN
Yesterday, 09:23
Forum: Scripts and Functions
Topic: Anagram Cracker
Replies: 3
Views: 158

Re: Anagram Cracker

Thanks, Nicely done. :)
Tried "Petal"
by SKAN
Yesterday, 07:17
Forum: Scripts and Functions
Topic: Anagram Cracker
Replies: 3
Views: 158

Re: Anagram Cracker

Hi @rommmcek
Can you link/upload words.txt?
by SKAN
18 Oct 2020, 15:23
Forum: Scripts and Functions
Topic: OSDTIP()
Replies: 77
Views: 20100

Re: OSDTIP()

pk23 wrote:
18 Oct 2020, 15:13
CapsLock associated features I dont need, just wanna use OSDTIP_Alert(). :( - Win7x64 and AutoHotkey v1.1.30.03
All functions work standalone. Just copy/paste the function you need.
Or
Remove OSDTIP_KBLeds() from the LIB which occupy line numbers 206 to 290

:) :thumbup:
by SKAN
16 Oct 2020, 07:53
Forum: Ask For Help
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 9
Views: 175

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

It doesn't look simple to me When you see DllCall()'s without any structures involved, then it is fairly simple. :) Also CF_BITMAP is deprecated and the OS will automatically (Vista+) create both CF_DIB and CF_DIBV5 when a CF_BITMAP is supplied. In other words: This is a simple function that makes ...
by SKAN
16 Oct 2020, 05:07
Forum: About This Community
Topic: Paste pictures into post
Replies: 11
Views: 311

Re: Paste pictures into post

The image was put into clipboard with SetClipboardBitmap()
 
image.png
image.png (25.04 KiB) Viewed 76 times
 
The previous paste was from Adobe Photoshop, and it had flattened the image with white background.
CF_DIBV5 is supported? (MS Edge) !!!
by SKAN
16 Oct 2020, 04:52
Forum: Ask For Help
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 9
Views: 175

SetClipboardBitmap

Setting a bitmap to clipboard is simple and shouldn't need any library. SetClipboardBitmap( Filename ) { ; By SKAN on D3AG @ tiny.cc/setclipboardbitmap Local HBM := 0, RES := 0, OCB := 0, CF_BITMAP := 2 If ( HBM := LoadPicture(Filename) ) If ( HBM := DllCall("CopyImage", "Ptr",HBM, "Int",0, "Int",0,...
by SKAN
16 Oct 2020, 04:06
Forum: Ask For Help
Topic: get classNN from Control hwnd Topic is solved
Replies: 7
Views: 172

ClassNN() Topic is solved

how do i get the classNN from Control hwnd?   Quickly written. Let me know if this helps:   ClassNN( hCtrl ) { ; By SKAN on D3AG @ tiny.cc/classnn Local hWnd := "", NN := "", Class, hPar WinGetClass, Class, ahk_id %hCtrl% If ( (hPar := DllCall("GetAncestor", "Ptr",hCtrl, "Int",2, "Ptr")) != hCtrl )...
by SKAN
16 Oct 2020, 03:37
Forum: Scripts and Functions
Topic: Imagen() : A fade-in/fade-out animator for picture control
Replies: 8
Views: 441

Re: Imagen() : A fade-in/fade-out animator for picture control

malcev wrote:It is for ahk_h.
Silly me.!
The effects are awesome.. :thumbup:
by SKAN
16 Oct 2020, 03:17
Forum: Scripts and Functions
Topic: Imagen() : A fade-in/fade-out animator for picture control
Replies: 8
Views: 441

Re: Imagen() : A fade-in/fade-out animator for picture control

Thanks to all for the feedback! :) :thumbup:   SKAN , if You are interested in animation, may be it will be interesting to You to look at DirectComposition API. https://autohotkey.com/board/topic/95837-samplewin8ahk-h-gui-animation-directcomposition-sample-one/ Thanks! I tried that. A Struct() funct...
by SKAN
15 Oct 2020, 13:41
Forum: Ask For Help
Topic: Z-order for Ahk Gui controls?
Replies: 7
Views: 134

Re: Z-order for Ahk Gui controls?

@mikeyww :thumbup: :)
by SKAN
15 Oct 2020, 04:37
Forum: Ask For Help
Topic: Z-order for Ahk Gui controls?
Replies: 7
Views: 134

Re: Z-order for Ahk Gui controls?

Is there a way to change the order for picture controls in an Ahk Gui? Use WinSet , Top/Bottom     image.png   #NoEnv #Warn #SingleInstance, Force Gui, New, HwndhGui -MinimizeBox, Control Z-Order Gui, Margin, 20, 20 hbm1 := DllCall("CreateBitmap", "Int",1, "Int",1, "Int",0x1, "Int",32, "IntP",0xFF0...
by SKAN
14 Oct 2020, 14:08
Forum: Ask For Help
Topic: Prevent a pop up dialog from displaying
Replies: 3
Views: 102

Re: Prevent a pop up dialog from displaying

I used WinWait to detect the presence of the dialog and then WinClose to close it. This works reliably, but there is an ugly flash of the dialog window before it is closed (and I'd like not to see it at all). The same visible dialog flash happens if I use WinHide . The flashing can't be totally avo...
by SKAN
11 Oct 2020, 17:59
Forum: Scripts and Functions
Topic: Imagen() : A fade-in/fade-out animator for picture control
Replies: 8
Views: 441

Imagen() : A fade-in/fade-out animator for picture control

Imagen( Filename, Options, ByRef HBM ) Usage example: #NoEnv #SingleInstance, Force If !FileExist(ImgFile := A_Temp . "\Imagen.png") URLDownloadToFile, https://i.imgur.com/whlxlHu.png, %ImgFile% Gui, Add, Picture, w256 h256 Border HwndhPic Imagen(ImgFile, "ahk_id" . hPic) Gui, Show ; Paste Imagen()...
by SKAN
06 Oct 2020, 18:02
Forum: Ask For Help
Topic: Converting 8Byte to Double Topic is solved
Replies: 6
Views: 128

Re: Converting 8Byte to Double Topic is solved

SKAN already wrote:
06 Oct 2020, 15:07
NumGet() can read from a memory address up to 8 bytes.
You should be able to use it directly inside the main function.
by SKAN
06 Oct 2020, 15:07
Forum: Ask For Help
Topic: Converting 8Byte to Double Topic is solved
Replies: 6
Views: 128

Re: Converting 8Byte to Double Topic is solved

It works great, but I don't fully understand why.. Could you possible explain why this works? A buffer is a series of bytes with numbers. Unless you know how to interpret these number, its just junk data. NumGet() can read from a memory address up to 8 bytes. You should be able to use it directly i...
by SKAN
06 Oct 2020, 13:53
Forum: Ask For Help
Topic: Make MSGBOX child of a third-party application
Replies: 14
Views: 1574

Re: Make MSGBOX child of a third-party application

jamez wrote:
06 Oct 2020, 07:27
From there I found MB_SYSTEMMODAL, but I haven't figured out where and how to enter it in the DllCall
Working example:

Code: Select all

#SingleInstance Force

ListVars
DllCall("MessageBox", "Ptr",A_ScriptHwnd, "Str",A_Now, "Str",A_ScriptName, "Int",0x00001000)
by SKAN
06 Oct 2020, 13:38
Forum: Ask For Help
Topic: Converting 8Byte to Double Topic is solved
Replies: 6
Views: 128

Re: Converting 8Byte to Double Topic is solved

There might be better ways.

Code: Select all

Int64 := 4682434448260570601
VarSetCapacity(V,8,0)
NumPut(Int64, V, "Int64")
Double := Round( NumGet(V, "Double"), 9 )

Msgbox % Double
by SKAN
06 Oct 2020, 11:11
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4401
Views: 1049912

Re: « What's on your mind? »

BoBo wrote:use the Google Translator Chrome extension.
Thanks @BoBo :) :thumbup:
Done!

Go to advanced search