Search found 59 matches

by Spark
02 Jul 2018, 20:46
Forum: Ask For Help
Topic: Help with script
Replies: 4
Views: 422

Re: Help with script

Hello,
try to add Sleep

Code: Select all

^j::
CoordMode, Pixel, Screen
sleep, 500	; delay 500 milisecond
Click, 1115, 264
sleep, 500	; delay 500 milisecond
Send Y
sleep, 500	; delay 500 milisecond
Click, 694, 321
sleep, 500	; delay 500 milisecond
Click, 470, 841
return
Hope that helps
by Spark
05 Jun 2018, 23:33
Forum: Ask For Help
Topic: Hi, need help with ALT + F1 Topic is solved
Replies: 9
Views: 797

Re: Hi, need help with ALT + F1 Topic is solved

hello,

try

Code: Select all

LAlt & F1::
While GetKeyState("LAlt","P")
And GetKeyState("F1","P") {
	Send, {LAlt Down}{F1 Down}
	Sleep 50 ; milliseconds
	Send, {LAlt Up}{F1 Up}
}
return
by Spark
05 Jun 2018, 23:00
Forum: Ask For Help
Topic: How to use A_TickCount and Continue inside Loop?
Replies: 5
Views: 524

Re: How to use A_TickCount and Continue inside Loop?

Typos : ElapsedTime := A_TickCount - StartTime If ( ElaspsedTime = 10000 ) Try F5:: StartTime := A_TickCount Loop, { PixelSearch, Px, Py, 0, 0, 1920, 1080, 0xDBFFA7, 3, Fast RGB if ErrorLevel = 1 Loop { ElapsedTime := A_TickCount - StartTime Tooltip, ElapsedTime = %ElapsedTime% If ( ElapsedTime > 10...
by Spark
28 May 2018, 03:54
Forum: Ask For Help
Topic: AHK Write Memory (Pointer)
Replies: 7
Views: 723

Re: AHK Write Memory (Pointer)

hello, before you start, read this first : Reading memory you can get classMemory lib from here this is some example : #Include <ClassMemory> game := new _ClassMemory("ahk_exe SomeGame.exe", "", hProcessCopy) if !isObject(game) { msgbox failed to open a handle if (hProcessCopy = 0) msgbox The progra...
by Spark
27 May 2018, 22:32
Forum: Ask For Help
Topic: Read & Write XML File
Replies: 0
Views: 269

Read & Write XML File

Hello, how to read Data From XML File, especially from config lastmodified and attribute name="core.interface" , and how to change the value or text into something else like <attribute name="core.interface">Wireless Network Adapter</attribute> i try read This but no luck thanks in advance data= (joi...
by Spark
25 May 2018, 00:53
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 588

Re: Click Action on GUI Topic is solved

@Hellbent

Thanks a million for your help :bravo:
by Spark
24 May 2018, 23:45
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 588

Re: Click Action on GUI Topic is solved

@Hellbent, @gregster, and @AHKd00b

thx so much,

1 more question, is there a simpler way for global variables (besides adding 1 by 1)?
because i have many pictures..
by Spark
24 May 2018, 23:17
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 588

Re: Click Action on GUI Topic is solved

OMG... Thx So much :clap: You're welcome in advance :crazy: Z1 = C:\Program Files\AutoHotkey\AutoHotkey.exe Z2 = C:\Program Files\AutoHotkey\AU3_Spy.exe Gui, 8:Add, Picture, vPic1 gcase x5 y5 w50 h50, %Z1% Gui, 8:Add, Picture, vPic2 gcase xp+75 y5 w50 h50 , %Z2% Gui, 8:Show OnMessage(0x0201, "WM_LBU...
by Spark
24 May 2018, 22:00
Forum: Ask For Help
Topic: Macro 3 keys in a span of 5 seconds
Replies: 1
Views: 164

Re: Macro 3 keys in a span of 5 seconds

hello,
try :

Code: Select all

F1::
Loop, 
{
	Send, {Enter}
	Sleep, 500
	Send, dfghj
	Sleep, 500
	Send, {Enter}
	Sleep, 5000
}
return
esc::ExitApp
by Spark
24 May 2018, 21:14
Forum: Ask For Help
Topic: Click Action on GUI Topic is solved
Replies: 7
Views: 588

Click Action on GUI Topic is solved

Hello.. is there a way to make every click command on a GUI? Left click working, but how about Right Click and Middle click?? thanks in advance. Z1 = C:\Program Files\AutoHotkey\AutoHotkey.exe Z2 = C:\Program Files\AutoHotkey\AU3_Spy.exe Gui, 8:Add, Picture, x5 y5 w50 h50 gPic1, %Z1% Gui, 8:Add, Pic...
by Spark
05 Mar 2018, 22:20
Forum: Gaming
Topic: image search problem
Replies: 1
Views: 267

Re: image search problem

Hi, based on your script, try `:: loop { ImageSearch, foundX, foundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\Users\Floq\Desktop\4.png If ErrorLevel = 0 { ToolTip, Image 1 Found, 10, 10, 2 Click, %foundX%, %foundY% Sleep, 150 Send, q } if ErrorLevel { ImageSearch, aX, aY, 0, 0, %A_ScreenWidth%, ...
by Spark
01 Mar 2018, 22:19
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

The names Key and Value can be anything you want to call it. ie: for myPlayerNames, myKeyboardKeys in Object myPlayerNames is the key myKeyboardKeys is the value Expression is an object in this case Look in the Docs for more examples to show how to use it maybe I should read it over and over again ...
by Spark
01 Mar 2018, 06:33
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

yes you can..
Hint : Nested IF's
something like this :

Code: Select all

if (a = "true") {
	if { b = "true"} {
		if ( c = "true") {
			if (d = "True") {
			; Do Something ! ! !
			}
		}
	}
}
ErrorLevel docs https://autohotkey.com/docs/misc/ErrorLevel.htm
good luck
by Spark
28 Feb 2018, 21:20
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

;NOTE: change as needed (Looks like you have instant_heal and quick_heal with the same keypresses) My bad, typos :oops: Just messing around, based on your script. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecti...
by Spark
28 Feb 2018, 08:56
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

Take a look at PixelSearch. Example: PixelGetColor, Krenn1, 1177, 542, RGB if (Krenn1 = 0xC26F93) MsgBox Color Found! Do something Could be changed to this to get 5 variations of color for the pixel you want to check: PixelSearch,,, 1177, 542, 1178, 543, 0xC26F93, 5, RGB if (ErrorLevel = 0) MsgBox ...
by Spark
27 Feb 2018, 22:17
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

Maybe the pixel color not same, to be honest I don't know how to make the shades of pixel color variations (I'm beginner too :oops: ) let's try to check again: I need help from you 1. make all HP bar 100% and try running this script (Ctrl s), and post the result 2. make all HP bar below 70% and try ...
by Spark
27 Feb 2018, 11:09
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

...except how it determine which heal to send as to me it looks like it sends 1,2,3,4 at THE same time? Yes, but it will send 1 of 4 buttons due to delay skills (tricky part) I don't really know about array, but i'll try according to the documentation about StringSplit posX = 1208,923,1065,779,637,...
by Spark
27 Feb 2018, 04:42
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

What's HP75v1 and HP75v2? I'm assuming v1 and v2 is named so because of the different color codes? Krenn & Dreyel uses the same, while K,i,D uses the same? v1 and v2 is just used to separate them? HP75v1 = 0xAE6485 ; Krenn-Dreyet HP75v2 = 0xAE6484 ; Kostus-Ilia-Danicus Yes, based on Your Screenshot...
by Spark
27 Feb 2018, 03:53
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

assume "heal" is in button 1,2,3,4 #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDi...
by Spark
27 Feb 2018, 03:21
Forum: Gaming
Topic: Healing script
Replies: 56
Views: 2890

Re: Healing script

How does your healing work?
Single Heal or Mass Heal?

usually if single heal = Press "Heal" Button, move cursor to HP bar, and then click
OR
Mass heal = Press the "Heal" Button, and all characters heal

Go to advanced search