Search found 831 matches

by SKAN
25 Feb 2021, 01:14
Forum: Scripts and Functions
Topic: DesktopIcons() : Hide / Show Desktop Icons
Replies: 9
Views: 872

Re: DesktopIcons() : Hide / Show Desktop Icons

@Xeo786

Thanks for sharing. :thumbup:
The registry won't reflect changes in the method you've used.
Not sure if that is a problem, though.
by SKAN
25 Feb 2021, 00:43
Forum: Scripts and Functions
Topic: DesktopIcons() : Hide / Show Desktop Icons
Replies: 9
Views: 872

Re: DesktopIcons() : Hide / Show Desktop Icons

Thank you for this function. Can you comment on the second parameter ( hWnd )? It seems unnecessary to me. Hi iPhilip hWnd is a very common variable name and instead of declaring it local, i'm saving one line by specifying it as a parameter. It could/should've be done as follows: DesktopIcons(Show:...
by SKAN
13 Feb 2021, 09:31
Forum: Scripts and Functions
Topic: SetClipboardHTML()
Replies: 10
Views: 894

Re: SetClipboardHTML()

valuex The following works fine for me:   #NoEnv #Warn #SingleInstance, Force base64string := " ( Join /9j/4AAQSkZJRgABAQEAkACQAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkS Ew8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJ CQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy M...
by SKAN
11 Feb 2021, 09:31
Forum: Scripts and Functions
Topic: Filexpro() : File Extended Properties Object
Replies: 24
Views: 6007

Re: Filexpro() : File Extended Properties Object

the "encoding(?)" question would be interesting to be answered. The data you're extracting is meant to be shown in Windows/File explorer. Windows is available in many languages and (for eg.) in Arabic/Urdu the text needs to aligned right-to-left in explorer. The data might begin with unicode char U...
by SKAN
10 Feb 2021, 16:38
Forum: Scripts and Functions
Topic: SetClipboardHTML()
Replies: 10
Views: 894

Re: SetClipboardHTML()

@SKAN If you run the function and immediately access the clipboard e.g. sClip := Clipboard AutoHotkey will crash on Error: GlobalLock. It seems the function does not complete with the clipboard being accessible. :( Thanks for reporting this. 👍 Allocated (Global) memory for CF_UNICODETEXT shouldn't ...
by SKAN
09 Feb 2021, 04:34
Forum: Scripts and Functions
Topic: RandomPW() : Random password and simple string hash.
Replies: 15
Views: 5274

Re: RandomPW() : Random password and simple string hash.

How can the function be refactored into v2 syntax? I tried without success :crazy: The following seems to work fine for me: RandomPW(L:=10) { ; AutoHotkey V2 version. SKAN, D429 @ tiny.cc/randompw Local A, R:="", C:="23456789ABCDEFGHJKMNPQRSTUVWXYZ" Loop L A := Random(1, 248), R .= ("{" . A . ":" ....
by SKAN
09 Feb 2021, 03:53
Forum: Scripts and Functions
Topic: Filexpro() : File Extended Properties Object
Replies: 24
Views: 6007

Re: Filexpro() : File Extended Properties Object

Peter2 wrote:
27 Jan 2021, 09:10
I extract dates and get e.g. this value "14.04.2015 14:25".
Extract date from what? Photo?
If it is a photo, I suggest you to use the canonical form System.Photo.DateTaken

PS: I'm sorry for the late reply.
by SKAN
09 Feb 2021, 03:07
Forum: Scripts and Functions
Topic: Imagen() : A fade-in/fade-out animator for picture control
Replies: 20
Views: 1474

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

@SKAN It seems to be a bug. When I use the fade-out effect, the pic control always has a background color. I want it to be transparent.   Hi tuzi I'm sorry for the late reply. This is not a bug but a limitation. Semitransparent pixels shouldn't be rendered more than once.. and hence background colo...
by SKAN
27 Nov 2020, 09:40
Forum: Scripts and Functions
Topic: LCC() : Generate/Test machine code with lcc-win, Quick and easy.
Replies: 6
Views: 492

Re: LCC() : Generate/Test machine code with lcc-win, Quick and easy.

I mention this, because people that use the LCC compiler might get themselves caught up in some tricky issues, so it's something to be aware of. Thanks very much for the valuable info. :thumbup: I use Pelles C which was based on LCC, so didn't bother to read license properly. My mistake. :( Regardi...
by SKAN
27 Nov 2020, 07:24
Forum: Scripts and Functions
Topic: LCC() : Generate/Test machine code with lcc-win, Quick and easy.
Replies: 6
Views: 492

Re: LCC() : Generate/Test machine code with lcc-win, Quick and easy.

Thank you @SKAN Again I came here to ask my very novice questions.   You are most welcome :)   Can I execute with mcode on a computer that is not lcc-win64? Of course, yes. You need to use LCC() only to test/generate mcode. LCC() will generate either x86 or x64 mcode depending on the autohotkey 1.1...
by SKAN
27 Nov 2020, 02:40
Forum: Scripts and Functions
Topic: LCC() : Generate/Test machine code with lcc-win, Quick and easy.
Replies: 6
Views: 492

LCC() : Generate/Test machine code with lcc-win, Quick and easy.

Note: This function requires lcc-win64 to be installed. Refer homepage of lcc-win . A NOTE of caution from SOTE regarding LCC license : Read LCC( CCode, Switches, ByRef MCodeAsHex, ByRef MCodeAsBase64 ) Compiles C code and returns a function pointer that can be used with DllCall() The function will ...
by SKAN
21 Nov 2020, 09:41
Forum: Scripts and Functions
Topic: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 121
Views: 28791

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

@william_ahk, try this code. There's apparently a carriage return in the stdout from 'echo'. #Include RunCmd.ahk str1 := RunCMD(A_ComSpec . " /c echo SKAN") str1 := RegExReplace(str1, "`r`n") msgbox % str1 If (str1 == "SKAN") msgbox Equal else msgbox %str1% Is Not Equal to SKAN Regards, burque505 T...
by SKAN
14 Nov 2020, 07:02
Forum: Ask For Help
Topic: toggle Show/Hide DeskTop Icons Topic is solved
Replies: 1
Views: 64

Re: toggle Show/Hide DeskTop Icons Topic is solved

I would do it as follows: #NoEnv #Warn #SingleInstance, Force F1::DesktopIcons() DesktopIcons(Show:=-1, hWnd:=0) { ; By SKAN on D35D @ tiny.cc/desktopicons If ! hWnd := DllCall("GetWindow", "Ptr",WinExist("ahk_class Progman"), "UInt",5, "Ptr") hWnd := DllCall("GetWindow", "Ptr",WinExist("ahk_class W...
by SKAN
14 Nov 2020, 05:27
Forum: Scripts and Functions
Topic: Gdip_GrayScale(pBitmap)
Replies: 5
Views: 299

Re: Gdip_GrayScale(pBitmap)

Hi Xtra I don't try any code that isn't #Warn aware, so my comments are based on little understanding of your code. Requires Gdip bitmap as input. Bitmap should be 32 bpp, I suppose. Source based on: https://www.codeproject.com/Questions/327689/how-to-convert-coloured-image-to-grayscale-in-C-or See ...
by SKAN
14 Nov 2020, 03:51
Forum: Scripts and Functions
Topic: ToGrayscale() : Converts GDI bitmap to Greyscale
Replies: 19
Views: 862

Re: ToGrayscale() : Converts GDI bitmap to Greyscale

Xtra wrote:
13 Nov 2020, 23:19
@SKAN i did this a few months back and just posted it here:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=83208
Hi @Xtra,
Thanks for sharing your Gdip_GrayScale(). :thumbup:
This topic deals with GDI bitmap, So I will comment on your topic instead.
by SKAN
13 Nov 2020, 21:46
Forum: Scripts and Functions
Topic: ToGrayscale() : Converts GDI bitmap to Greyscale
Replies: 19
Views: 862

Re: ToGrayscale() : Converts GDI bitmap to Greyscale

You're right about the nearest neighbor. I didn't notice at first, but it doesn't seem to be true greyscale.   It is a true grayscale. You don't see any colors in it. :D   I can see topological rings of grey in the blurred background of the butterfly picture that aren't present in the photoshop equ...
by SKAN
13 Nov 2020, 18:43
Forum: Scripts and Functions
Topic: HexView 3.11 by majkinetor
Replies: 7
Views: 4064

Re: HexView 3.11 by majkinetor

Chiefkes wrote:
13 Nov 2020, 12:58
Hi Skan,

Could you please re-upload?
Sure! :thumbup: :)
HexView 3.11.zip
(72.3 KiB) Downloaded 55 times
by SKAN
12 Nov 2020, 20:03
Forum: Scripts and Functions
Topic: MsgBox() for V1
Replies: 18
Views: 1069

Re: MsgBox() for V1

it's pretty rare, I wonder why! Actually, it didn't appeal to me when Sean used to do it like DllCall(...) ? DllCall(...), DllCall(...DllCall(...)), DllCall(...) : DllCall(...), DllCall(...) that too without any enclosing parenthesis. I was using this feature only with Return statement of a functio...
by SKAN
12 Nov 2020, 18:11
Forum: Scripts and Functions
Topic: MsgBox() for V1
Replies: 18
Views: 1069

Re: MsgBox() for V1

@ SKAN : I copy-pasted one your lines where you in turn used my "Extended parameters", if I'm not wrong. Not really. Sean was using it a decade ago. I recently started using it, of course before you. :P IIUC, this feature is available from AutoHotkey v1.0.46 - November 29, 2006 when "multiple varia...
by SKAN
11 Nov 2020, 23:38
Forum: Scripts and Functions
Topic: MsgBox() for V1
Replies: 18
Views: 1069

Re: MsgBox() for V1

burque505 wrote:
11 Nov 2020, 12:44
@SKAN, thanks as always for another great contribution. Working fine for me on Win7 SP1 64-bit.
Regards,
burque505
:thumbup: :)

I miss Win7 badly. Unable to install it in my newly assembled AMD Ryzen HTPC :(

Go to advanced search