Search found 111 matches

by serzh82saratov
19 Oct 2020, 14:13
Forum: Помощь
Topic: ведущие нули в строке
Replies: 5
Views: 95

Re: ведущие нули в строке

Code: Select all

MyFile:=3
CountF:=109 

MsgBox %  Format("{:0" StrLen(CountF) "}", MyFile)
by serzh82saratov
09 Sep 2020, 14:09
Forum: Ask For Help
Topic: BoundFunc object get function name
Replies: 1
Views: 76

BoundFunc object get function name

How do I know the name of the function?

Code: Select all

fn := Func("StrLen").Bind("123")
MsgBox % fn.Name
by serzh82saratov
18 Aug 2020, 16:01
Forum: Ask For Help
Topic: Error: Nonexistent hotkey
Replies: 6
Views: 132

Re: Error: Nonexistent hotkey

Code: Select all

test.init() 
return

Class test {
    init() {
        this.f_func1 := ObjBindMethod(this, "func1") 
		SetTimer, % this.f_func1, 1111
    } 
    func1() {
        ToolTip, % "hello world"
    }  
}
I had a timer in the form of a function

Code: Select all

SetTimer(this.f_func1, 1111)
I didn't think it mattered.
by serzh82saratov
18 Aug 2020, 14:54
Forum: Ask For Help
Topic: Error: Nonexistent hotkey
Replies: 6
Views: 132

Re: Error: Nonexistent hotkey

But no, that's right, SetTimer doesn't work either, I'm a little confused. :crazy:
by serzh82saratov
18 Aug 2020, 14:50
Forum: Ask For Help
Topic: Error: Nonexistent hotkey
Replies: 6
Views: 132

Re: Error: Nonexistent hotkey

I read, thought that it should be a reference to an object, not the object itself.The description of SetTimer contains exactly the same words.Means an error in the help. And this is some kind of implicit limitation.
by serzh82saratov
18 Aug 2020, 14:11
Forum: Ask For Help
Topic: Error: Nonexistent hotkey
Replies: 6
Views: 132

Error: Nonexistent hotkey

Why such a mistake with Hotkey? There is no problem with the timer. test.New() return Class test { New() { this.f_func1 := ObjBindMethod(this, "func1") Hotkey, 1, % this.f_func1 , On } func1() { ToolTip, % "hello world" } } This works fine. f_func1 := ObjBindMethod(this, "func1") Hotkey, 1, % f_func...
by serzh82saratov
05 Jul 2020, 07:16
Forum: Scripts and Functions
Topic: Class_ScrollGUI - updated on 2015-03-13
Replies: 90
Views: 29313

Re: Class_ScrollGUI - updated on 2015-03-13

Added an example with Resize. This should work with examples too just me . #SingleInstance force #NoEnv SetBatchLines, -1 Gui, New, +hwndhParentGUI +LabelMain +Resize Gui, Color, Red Gui, New, +hwndhGui1 +Parent%hParentGUI% Loop 10 { i := A_Index Loop 10 { If A_Index = 1 Gui, Add, Text, xm y+10 w21 ...
by serzh82saratov
04 Jul 2020, 19:38
Forum: Announcements
Topic: v1.1.33.02
Replies: 13
Views: 5030

Re: v1.1.33.00

Great :thumbup: This example can be used to remove a reference to "AutoHotkey" in the generated .exe to disguise that it is a compiled AutoHotkey script: The windows have the class "AutoHotkeyGUI", it is very noticeable, is it possible to set your own name? :dance: This example will alter a UPX comp...
by serzh82saratov
04 Jul 2020, 18:03
Forum: Scripts and Functions
Topic: Class_ScrollGUI - updated on 2015-03-13
Replies: 90
Views: 29313

Re: Class_ScrollGUI - updated on 2015-03-13

Maybe someone will be useful. + You can add child windows. + Does not slow down when there are a lot of controls. #SingleInstance force #NoEnv SetBatchLines, -1 Gui, New, +hwndhParentGUI Gui, Color, Red Gui, New, +hwndhGui +Parent%hParentGUI% Loop 100 { i := A_Index Loop 5 { If A_Index = 1 Gui, Add,...
by serzh82saratov
19 May 2020, 06:47
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

gregster wrote:
18 May 2020, 19:36
Hi @serzh82saratov : Just a friendly reminder to use english in this part of the forum :wave:.
Thank you!
Well, I did not know what this rule was.
by serzh82saratov
19 May 2020, 06:47
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

I would say that this is a very expensive method, 10 such small pictures will be created for a very long time.
by serzh82saratov
18 May 2020, 18:55
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

Я также искал, но не вижу что можно просто запустить и увидеть результат.
by serzh82saratov
18 May 2020, 16:56
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

Transparency with pure GDI С AlphaBlend на AutoHotkey не встречал рабочих примеров, только обсуждения что что то не получается. serzh82saratov, if You need speed You have to forgot about legacy technologies and OS and use DirectComposition with Direct3D 11 and DXGI like in this example:: dxgi по мо...
by serzh82saratov
17 May 2020, 15:22
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

В "обычном" исполнении цвета какие то грязные. Попутно возник вопрос, как вывести Pic на передний план? Неожиданно для меня эти варианты работают, и почему то уменьшают прозрачность ; MsgBox % 1 ; GuiControl, Disable, %hPic1% ; MsgBox % 2 ; GuiControl, Enable, %hPic1% или ; MsgBox % 1 ; GuiControl, ...
by serzh82saratov
17 May 2020, 15:16
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

С STM_SETIMAGE хуже. Быстрее наверное не получится, всё тормозит CreateColoredBitmap. colorWithTransparency := 0x70AABB00 width := 300 height := 100 hBitmap := CreateColoredBitmap(width, height, colorWithTransparency) DrawText(hBitmap, "AutoHotkey", "x0 y18 cffAA00FF Center s40", "calibri", width) D...
by serzh82saratov
17 May 2020, 15:06
Forum: Помощь
Topic: Помогите я тупой Topic is solved
Replies: 11
Views: 1385

Re: Помогите я тупой Topic is solved

Тогда так. 1:: ClickAndPaste(-1.2, 218, 768) 2:: ClickAndPaste(3.4, 218, 768) ClickAndPaste(num, x, y) { Click, x, y Left, 1 Sleep, 10 If !Ctrl_C_To_Var2(Var) return Send, % "{Text}" Add(Var, num) Sleep, 10 Send, {Enter} } Ctrl_C_To_Var2(byref Var) { TempClipboard := ClipboardAll Clipboard = SendInp...
by serzh82saratov
17 May 2020, 14:36
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

Круто. А возможно тут повысить производительность? Или скорее возможно ли рисовать напрямую в DC Picture без необходимости подписываться на WM_Paint? colorWithTransparency := 0x70AABB00 width := 300 height := 100 hBitmap := CreateColoredBitmap(width, height, colorWithTransparency) DrawText(hBitmap, ...
by serzh82saratov
17 May 2020, 13:43
Forum: Помощь
Topic: Помогите я тупой Topic is solved
Replies: 11
Views: 1385

Re: Помогите я тупой Topic is solved

1:: Num := -1.2 Click, 218, 768 Left, 1 Sleep, 10 If !Ctrl_C_To_Var2(Var) return Send, % "{Text}" Add(Var, Num) Sleep, 10 Send, {Enter} return 2:: Num := 3.4 Click, 218, 768, Left, 1 Sleep, 10 If !Ctrl_C_To_Var2(Var) return Send, % "{Text}" Add(Var, Num) Sleep, 10 Send, {Enter} return Ctrl_C_To_Var...
by serzh82saratov
17 May 2020, 04:39
Forum: Ask For Help
Topic: Create an HBitmap with transparency Topic is solved
Replies: 32
Views: 1754

Re: Create an HBitmap with transparency Topic is solved

Ок, а как в такой hBitmap вставить текст, или нарисовать линию?
by serzh82saratov
17 May 2020, 00:19
Forum: Помощь
Topic: Помогите я тупой Topic is solved
Replies: 11
Views: 1385

Re: Помогите я тупой Topic is solved

^Numpad1:: Num := -1.2 Click, 218, 768 Left, 1 Sleep, 10 If !Ctrl_C_To_Var2(Var) return Send, % "{Text}" Add(Var, Num) Sleep, 10 Send, {Enter} return Ctrl_C_To_Var2(byref Var) { TempClipboard := ClipboardAll Clipboard = SendInput {LCtrl Down}{vk43}{LCtrl Up} ;; "C" ClipWait, 0.3 If ErrorLevel Retur...

Go to advanced search