Search found 1870 matches

by teadrinker
28 Oct 2020, 13:50
Forum: Ask For Help
Topic: How detect when mouse move stop ? Topic is solved
Replies: 10
Views: 91

Re: How detect when mouse move stop ? Topic is solved

boiler wrote: Here's another approach
Right approach, I forgot about this variable, but mouse hook must be installed.
by teadrinker
28 Oct 2020, 13:27
Forum: Ask For Help
Topic: How detect when mouse move stop ? Topic is solved
Replies: 10
Views: 91

Re: How detect when mouse move stop ? Topic is solved

#Persistent Hook := new WindowsHook(WH_MOUSE_LL := 14, "LowLevelMouseProc") LowLevelMouseProc(nCode, wParam, lParam) { static WM_MOUSEMOVE := 0x200 if (wParam = WM_MOUSEMOVE) SetTimer, MouseStop, -100 } MouseStop() { SoundBeep ToolTip Mouse is stopped! } class WindowsHook { __New(type, callback, ev...
by teadrinker
28 Oct 2020, 05:24
Forum: Ask For Help
Topic: Add one array to another array Topic is solved
Replies: 14
Views: 248

Re: Add one array to another array Topic is solved

To get another object from existing one you can use the Clone() method.

Code: Select all

Arr := {key: "value"}
AnotherArr := Arr.Clone()
MsgBox, % AnotherArr.key

AnotherArr.key := "anotherValue"
MsgBox, % Arr.key "`n" AnotherArr.key
by teadrinker
27 Oct 2020, 19:17
Forum: Ask For Help
Topic: Add one array to another array Topic is solved
Replies: 14
Views: 248

Re: Add one array to another array Topic is solved

(but I don't know what the " * " in the function() call aTst1.Push( tstFunc("10")* ) ) does. In this case the asteriks doesn't relate to the function call, it relates to what the function returns. Arr1 := [1, 2] Arr2 := [3, 4] Arr1.Push(Arr2*) for k, v in Arr1 items .= (items ? ", " : "") . v MsgBo...
by teadrinker
27 Oct 2020, 08:22
Forum: Ask For Help
Topic: Add one array to another array Topic is solved
Replies: 14
Views: 248

Re: Add one array to another array Topic is solved

aTst1 := [] aTst1.Push( tstFunc("10")* ) aTst1.Push( tstFunc("100")* ) ; Show the result MsgBox , ( LTrim % aTst1.count() " " aTst1.1 " " aTst1.2 " " aTst1.3 " " aTst1.4 ) tstFunc(Value) { Result :=[] Result.1 := "Result1," Value * 5 Result.2 := "Result2," Value * 10 Return Result }
by teadrinker
25 Oct 2020, 11:50
Forum: Ask For Help
Topic: InputBox with GUI Topic is solved
Replies: 4
Views: 104

Re: InputBox with GUI Topic is solved

Yeah, perhaps using the Enter hotkey is better.
by teadrinker
25 Oct 2020, 11:15
Forum: Ask For Help
Topic: InputBox with GUI Topic is solved
Replies: 4
Views: 104

Re: InputBox with GUI Topic is solved

Gui, Box:New,, My Gui Gui, Box:Add, ListView, vview AltSubmit, Box LV_Insert(1, "Vis Focus Select", "This") Gui, Box:Add, Button, Default, OK InputBox, test, Test, Enter some text.,, 300, 125 F3:: Gui, Box:Show, x20 y20 WinWaitClose, My Gui Return BoxButtonOK: SoundBeep, 1500, 20 Gui, Box:Submit Se...
by teadrinker
25 Oct 2020, 07:11
Forum: Ask For Help
Topic: GuiControl - how to stop image flashing? Topic is solved
Replies: 4
Views: 90

Re: GuiControl - how to stop image flashing? Topic is solved

Try addidng a foreground picture before a backgroung one.
by teadrinker
23 Oct 2020, 12:01
Forum: Ask For Help
Topic: A bigger tooltip
Replies: 16
Views: 372

Re: A bigger tooltip

Another one big tooltip: title := "Hello," text := "This is my custom ToolTip!`nIt will disappear in five seconds." hToolTip := CustomToolTip(text,,, title, 1, true, 0xFFC141, 0x50669F, "Calibri", "s18", true, 5000) Timer := Func("UpdateText").Bind(hToolTip, [ StrReplace(text, "five seconds", "one s...
by teadrinker
23 Oct 2020, 10:43
Forum: Ask For Help
Topic: Unix timestamp converter?
Replies: 8
Views: 220

Re: Unix timestamp converter?

@just me As I understood, UTC_ToLocalTime() takes into account the conversion to winter and summer time?
by teadrinker
23 Oct 2020, 08:15
Forum: Ask For Help
Topic: Unix timestamp converter?
Replies: 8
Views: 220

Re: Unix timestamp converter?

I think it's better to find different ways and compare them. :)
by teadrinker
23 Oct 2020, 05:29
Forum: Ask For Help
Topic: Extract ZIP to RAM?
Replies: 71
Views: 7812

Re: Extract ZIP to RAM?

I don't know, try to download the file before.
by teadrinker
23 Oct 2020, 01:37
Forum: Ask For Help
Topic: Unix timestamp converter?
Replies: 8
Views: 220

Re: Unix timestamp converter?

Or like this:

Code: Select all

unixTime := 1603435790
time := 1970
time += unixTime, s
utcTime := time

diff -= A_NowUTC, h
time += diff, h
localTime := time

MsgBox, % "utc: " . utcTime . "`nlocal: " . localTime
:)
by teadrinker
21 Oct 2020, 11:09
Forum: Ask For Help
Topic: Convert text to array
Replies: 8
Views: 101

Re: Convert text to array

var:="{key1: {a:[1,0], b:[1,0]}, key2: [1,0], key3: [1,0]}" obj := JsonToAHK(var) MsgBox, % obj.key2.1 JsonToAHK(json, rec := false) { static doc := ComObjCreate("htmlfile") , __ := doc.write("<meta http-equiv=""X-UA-Compatible"" content=""IE=9"">") , JS := doc.parentWindow if !rec obj := %A_ThisFu...
by teadrinker
19 Oct 2020, 07:11
Forum: Ask For Help
Topic: Copy to clipboard some characters from an URL Topic is solved
Replies: 25
Views: 490

Re: Copy to clipboard some characters from an URL Topic is solved

Primokorn wrote: Maybe it can help for other tasks...
Tampermonkey by itself couldn't help, it is just a user script manager (I mean javascript by «user script»). You should be able to write an appropriate javascript which will do magic.
by teadrinker
19 Oct 2020, 05:13
Forum: Ask For Help
Topic: Copy to clipboard some characters from an URL Topic is solved
Replies: 25
Views: 490

Re: Copy to clipboard some characters from an URL Topic is solved

Primokorn wrote: after wathcing videos and reading documentations I'm sure it can be done.
This is a vain sureness. :) To solve such a task, you cannot do without knowledge of Javascript. The best choice is using Tampermonkey. However, you can run Javascript from the address bar.
by teadrinker
17 Oct 2020, 13:02
Forum: Ask For Help
Topic: Url Shortener GUI Topic is solved
Replies: 5
Views: 171

Re: Url Shortener GUI Topic is solved

Try this: Gui, New,, URL shortener Gui, Margin, 15, 15 Gui, Font, s10 Gui, Add, Radio, Checked, TinyURL Gui, Add, Radio, x+10 yp, Is.Gd GuiControlGet, RadioPos, Pos, Button2 Gui, Add, Text, xm, Enter URL to shorten: Gui, Add, Edit, y+5 w200 Gui, Add, Button, x+5 yp hp, Shorten GuiControlGet, ButtonP...
by teadrinker
16 Oct 2020, 06:15
Forum: Ask For Help
Topic: get classNN from Control hwnd Topic is solved
Replies: 7
Views: 183

Re: get classNN from Control hwnd Topic is solved

A couple of options: GetClassNN(hCtrl, isEnum := "") { static GA_ROOT := 2, info, className, _ := VarSetCapacity(className, 200 << !!A_IsUnicode, 0) DllCall("GetClassName", "Ptr", hCtrl, "Str", className, "Int", 200) if isEnum { (className = info.class && info.count++) Return info.handle != hCtrl } ...
by teadrinker
11 Oct 2020, 10:12
Forum: Ask For Help
Topic: Please help to resolve this error message while I use ACC MSAA lib?
Replies: 7
Views: 175

Re: Please help to resolve this error message while I use ACC MSAA lib?

You just can add try before vRoleText := Acc_GetRoleText(oParent.accRole(vChildID)):

Code: Select all

try vRoleText := Acc_GetRoleText(oParent.accRole(vChildID))

Go to advanced search