Search found 211 matches

by _3D_
Yesterday, 10:59
Forum: AutoHotkey v2 Development
Topic: [a103] - MsgBox [BUG] Topic is solved
Replies: 2
Views: 56

Re: [a103] - MsgBox [BUG] Topic is solved

In other words using MsgBox without options is not recommended because no deference in answers.
by _3D_
Yesterday, 10:43
Forum: AutoHotkey v2 Development
Topic: [a103] - MsgBox [BUG] Topic is solved
Replies: 2
Views: 56

[a103] - MsgBox [BUG] Topic is solved

The BUG res:= MsgBox("Press Esc!") MsgBox("User pressed : " res) User pressed "Esc" but MsgBox return "OK". Actually in this case MsgBox return only "OK". In this case MsgBox must return "" (nothing) when pressed "Esc" or clicked on "X". res:= MsgBox("Press Esc!",,"OC") MsgBox("User pressed : " res)...
by _3D_
16 Jun 2019, 23:57
Forum: AutoHotkey v2 Help
Topic: [a103] - SendMessage [BUG] Topic is solved
Replies: 1
Views: 171

[a103] - SendMessage [BUG] Topic is solved

AutoHotkey_2.0-a103-56441b52 Working example till [a103] DetectHiddenWindows("ON") OnMessage(0x2000, ()=>(MsgBox("ASD"))) 1::SendMessage(0x2000,,,,"ahk_id " A_ScriptHWND) Q::ExitApp Now: --------------------------- ahk-test-code.ahk --------------------------- Error: Too many parameters passed to fu...
by _3D_
06 May 2019, 12:45
Forum: Gaming
Topic: i need healp Macro
Replies: 1
Views: 156

Re: i need healp Macro

I understand next:
while RButton is pressed
send C
send C
send P
end while
send R

Code: Select all

$RButton::
	while(GetKeyState("RButton")) 
		Send("{c 2}p")
	Send("r")	
return
If else please explain in details.
by _3D_
05 May 2019, 00:23
Forum: Gaming
Topic: ImageSearchList Count
Replies: 1
Views: 206

Re: ImageSearchList Count

increment:= 0 ;your function add delimiter after each found item glob_List:= "1`n2`n" ;it mean 1 2 and "" ;when N delimiters then N+1 items Loop Parse glob_List, "`n" ;if(A_LoopField) ;if increment (skip "") { increment += 1 ;increment += (A_LoopField != "") ;alternative if increment MsgBox(A_LoopF...
by _3D_
04 May 2019, 02:11
Forum: Gaming
Topic: InGame v2.0
Replies: 89
Views: 39725

Stuck in Sleep.

Let see an ordinary code: $Tab:: Send("~") ;select Sleep( 500) Send("{7 3}") ;Bloody Arc Sleep(1500) Send("{9 3}") ;Divine Burst Sleep(1500) Send("{5 3}") ;Hell's Claw return It is usually used code to produce skill chain in game. It work perfect but what if script have more than one skill chain? I ...
by _3D_
20 Mar 2019, 18:28
Forum: Gaming
Topic: InGame v2.0
Replies: 89
Views: 39725

Auto-Kill-GRB version 3

The idea was to write a mechanism that can cover many different cases to activate and control main buffs in my game. Lets see one examle: When gamer press Numpad1 script send Numpad1 5 times and repeat send Numpad1 5 times any given timed period When gamer press Numpad2 script send Numpad2 5 times a...
by _3D_
05 Mar 2019, 01:54
Forum: AutoHotkey v2 Development
Topic: Hotkey call BUG Topic is solved
Replies: 2
Views: 302

Re: Hotkey call BUG Topic is solved

Thanks Helgef.
In other words I can't access list of hotkeys, created with Hotkey(), and call its corresponding actions.
by _3D_
04 Mar 2019, 13:25
Forum: AutoHotkey v2 Development
Topic: Hotkey call BUG Topic is solved
Replies: 2
Views: 302

Hotkey call BUG Topic is solved

The main code that work: Gosub("T") T::tooltip("T") BUT let see the next code: function("T", ()=>tooltip("T")) function(h, f) { Hotkey(h, f) } Gosub("T") A function that create Hotkey. --------------------------- ahk-test-code-2.ahk --------------------------- Error: Target label does not exist. Spe...
by _3D_
01 Mar 2019, 15:34
Forum: Gaming
Topic: InGame v2.0
Replies: 89
Views: 39725

Crazy Class - alpha

This is a side effect from class Buff and class Flag. And as result most complicated method to do something simple. class Ahk2 class Ahk2 { ahkTrig:= 0 __New(ahkHkey, ahkFunc, ahkView) { try Hotkey(ahkHkey[1], ()=>ahkFunc[1].call(this)) try Hotkey(ahkHkey[2], ()=>ahkFunc[2].call(this)) (this.ahkView...
by _3D_
28 Feb 2019, 02:13
Forum: Gaming
Topic: How to achieve the lowest level of access to keys?
Replies: 5
Views: 381

Re: How to achieve the lowest level of access to keys?

Your problem must be separated in 2 parts: 1. Catch hotkey F1:: 2. Send method Send 1 Pre. First of all you need to check: 1 Windows 32/64 2 Game 32/64 3 AutoHotkey.exe 32/64 The worst combination W32 + G32 + A32. This case will torch you. The best combination W64 + G32 + A64. Game is encapsulated i...
by _3D_
27 Feb 2019, 13:15
Forum: Gaming
Topic: AHK script issue when using combined mouse clicks Topic is solved
Replies: 2
Views: 304

Re: AHK script issue when using combined mouse clicks Topic is solved

Actually I don`t understand what is the idea of script, so I post methods that can trigger mouse buttons. #SingleInstance force ;Copyright (c) D.Donchev ; method 1 - pooling ---------------------------------------------------------- loop { state:= getKeyState("LButton", "P")? "L": "-" state.= getKey...
by _3D_
25 Feb 2019, 06:39
Forum: Ask For Help
Topic: I want Class For SQLite v2, thanks!!
Replies: 1
Views: 492

Re: I want Class For SQLite v2, thanks!!

It is well written code, I think you can use it in AHKv2.0 with small syntax corrections.
For example: <> replace with !=

And in additions youll become v2 developer :P
by _3D_
25 Feb 2019, 06:30
Forum: AutoHotkey v2 Development
Topic: Bug: StrSplit Topic is solved
Replies: 5
Views: 912

Re: Bug: StrSplit Topic is solved

As jeeswg wrote you compare string to string.
If you need to compare separated elements as integer: (spl[<index>] + 0) <comparison> (spl[<index>] + 0) - it is forced conversion to integer if possible or exception.
by _3D_
25 Feb 2019, 06:21
Forum: AutoHotkey v2 Development
Topic: bug: closure doesn't recognize "base" keyword Topic is solved
Replies: 5
Views: 466

Re: bug: closure doesn't recognize "base" keyword Topic is solved

As closure cant be member of a given class then base is not accessed inside closure without this.
In other words closure not "see" class members and to do this it need this.
by _3D_
25 Feb 2019, 04:00
Forum: AutoHotkey v2 Development
Topic: potential line continuation bug Topic is solved
Replies: 2
Views: 444

Re: potential line continuation bug Topic is solved

I think there no any bug. See syntax of IF in v2: If(condition) ;condition enclosed in brackets action ;next line is action In your example: if(r:=DllCall(a, 'int',n , 'ptr',p)) ;condition enclosed in brackets => r:=DllCall(a, 'int',n, 'ptr',p) d++ ;action Next when you add operator &&: then error i...
by _3D_
22 Feb 2019, 10:12
Forum: Gaming
Topic: Rapid fire while both mouse buttons are held down
Replies: 1
Views: 402

Re: Rapid fire while both mouse buttons are held down

AHKv2.0

Code: Select all

~LButton::
~RButton::
	while(getKeyState("LButton", "P") && getKeyState("RButton", "P")) {
		Send("F")
		Sleep(50)
	}
return	
#!Q::ExitApp
Enjoy!
by _3D_
19 Feb 2019, 08:39
Forum: Gaming
Topic: InGame v2.0
Replies: 89
Views: 39725

Auto-Kill-GRB again

After couple of days testing and optimizing - new Auto-Kill-GRB. Why? 1. Meta-functions provide a broader way of controlling access to properties and methods of an object, but are more complicated and error-prone. I change properties to a single function. 2. Using Auto-Buff - interrupt fast killing....
by _3D_
17 Feb 2019, 02:11
Forum: Gaming
Topic: InGame v2.0
Replies: 89
Views: 39725

All about timed buffs

I did it in times complicated. At the beginning idea was to be connected all similar actions to a single variable. And when value of this variable is changed then actions run or stopped together. BUT at the end I made one more class that collect itself list of "similar" actions. Class Buff: class Bu...

Go to advanced search