Search found 823 matches

by SKAN
06 Oct 2020, 18:02
Forum: Ask For Help
Topic: Converting 8Byte to Double Topic is solved
Replies: 6
Views: 157

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

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

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

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: 4454
Views: 1059872

Re: « What's on your mind? »

BoBo wrote:use the Google Translator Chrome extension.
Thanks @BoBo :) :thumbup:
Done!
by SKAN
06 Oct 2020, 03:56
Forum: About This Community
Topic: Paste pictures into post
Replies: 11
Views: 469

Re: Paste pictures into post

image.png
image.png (23.8 KiB) Viewed 365 times
Thanks for this @joedf / @kczx3 :thumbup:
by SKAN
05 Oct 2020, 19:49
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4454
Views: 1059872

Re: « What's on your mind? »

Ocelot wrote:
05 Oct 2020, 16:58
But Edge doesn't auto-translate pages like chrome does, does it? If it wasn't for this sole feature,.
No, it doesn't. :)
I do miss that feature when I try to view other language forums here.
Otherwise, the only non-english site I browse is amazon.jp
by SKAN
04 Oct 2020, 07:55
Forum: Ask For Help
Topic: How does AHK handle wrong function arguments?
Replies: 9
Views: 330

Re: How does AHK handle wrong function arguments?

For parameters that must be numbers, AutoHotkey v1 interprets values according to the underlying C functions, such as atoi and strtoi. These functions attempt to convert the string to a number, stop processing at the first non-numeric character, and ignore the rest. If there are no numeric characte...
by SKAN
03 Oct 2020, 17:50
Forum: Ask For Help
Topic: How does AHK handle wrong function arguments?
Replies: 9
Views: 330

Re: How does AHK handle wrong function arguments?

I'm answering the topic title.   MsgBox % InStr("aaa_XY_bbb", "xy", "1WrongArg") ; => 0 The above will work correctly in AHK v1 because the 3rd parameter requires a number, and is equivalent to Round("1WrongArg") . I faced a parsing problem in my FileSelectFile() as FileSelectFile , OutputVar, [email protected]...
by SKAN
03 Oct 2020, 15:57
Forum: Ask For Help
Topic: Get the height / width of an image - to an array (object) Topic is solved
Replies: 34
Views: 692

Re: Get the height / width of an image - to an array (object) Topic is solved

BoBo wrote: 'canonical way' makes sense, as long as I/we can remember all of its available names
True :(
The list of canonical names is available @ Fileexpro()
by SKAN
03 Oct 2020, 13:29
Forum: Ask For Help
Topic: Get the height / width of an image - to an array (object) Topic is solved
Replies: 34
Views: 692

Re: Get the height / width of an image - to an array (object) Topic is solved

your list isn't showing the width/height assignments at pos 176/178 for Win10, while it delivers exactly that outcome for me. I'm on Win10 v1903 (Build 18362.1082) :) You're right BoBo :thumbup: That was list was generated on some earliest version of Win 10. Win10 v2004 0 Name 1 Size 2 Item type 3 ...
by SKAN
02 Oct 2020, 07:05
Forum: Ask For Help
Topic: Get the height / width of an image - to an array (object) Topic is solved
Replies: 34
Views: 692

Re: Get the height / width of an image - to an array (object) Topic is solved

mikeyww wrote: it retrieved the wrong dimensions for one of my JPG files, so I'm not able to use it.
:o Thanks for testing. I will check the function with more samples. :thumbup:
by SKAN
01 Oct 2020, 23:58
Forum: Ask For Help
Topic: Get the height / width of an image - to an array (object) Topic is solved
Replies: 34
Views: 692

Re: Get the height / width of an image - to an array (object) Topic is solved

mikeyww wrote:
01 Oct 2020, 16:19
I compared times of GUI vs. ComObj. Perhaps as expected, larger images favored ComObj, whereas smaller images favored GUI. On some runs, the GUI time measured was zero!

38 x 42 image: 78 ms for ComObj, 31 ms for GUI

676 x 1200 image: 78 ms for ComObj, 125 ms for GUI
 
Fastest: IsPicture()
by SKAN
30 Sep 2020, 15:12
Forum: Scripts and Functions
Topic: FileSelectFile() : Supports multi-line filter
Replies: 25
Views: 849

Re: FileSelectFile() : Supports multi-line filter

All Documents (*.*)|NC Code (*0;*1;*2;*3;*4;*5;*6;*7;*8;*9;*)*)|AutoHotkey (*.ahk)|Heidenhein (*.H) Nice! But if I make copies of files in explorer, the file copies end with Copy (2) .. Copy(3) and so on. I just realized the extensions cannot have open parenthesis in it, as I split the filter line ...
by SKAN
30 Sep 2020, 04:29
Forum: Ask For Help
Topic: Recent Windows update broke my Win+Key commands Topic is solved
Replies: 4
Views: 113

Re: Recent Windows update broke my Win+Key commands Topic is solved

Rohwedder wrote: Hallo,
here
A_AhkVersion 1.1.33.02
A_OSVersion 10.0.19041
this works:

Code: Select all

#k::
#u::
ToolTip, %A_ThisHotkey%`n%A_AhkVersion%`n%A_OSVersion%
Sleep, 3000
ToolTip
Return
I confirm. :thumbup:
by SKAN
30 Sep 2020, 04:02
Forum: Scripts and Functions
Topic: FileSelectFile() : Supports multi-line filter
Replies: 25
Views: 849

FileSelectFile() : v0.72

Code updated: 0.72 :  A_LastError will contain the index of selected Filter. (Valid only if ErrorLevel is 0)   Demo script:   #NoEnv #SingleInstance, Force Filter := "|Run with AutoHotkeyA32.exe (*.ahk)|Run with AutoHotkeyU32.exe (*.ahk)||Run with AutoHotkeyU64.exe (*.ahk)" Selection := ["AutoHotke...

Go to advanced search