Macro auto click

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Macro auto click

Re: Macro auto click

Post by MavisVamirion1 » 07 Oct 2020, 05:03

Maintenant j'ai ça, pas de message d'erreur pour l'image ou autre mais ça ne marche pas.
Quand l'icone que j'ai mis en png "iconef.png" apparais a l'écran il n'appuis pas sur la touch f! :c

Code: Select all

SetTitleMatchMode=2
WinGet, client, ID, Blade & Soul
CoordMode, Pixel, Screen
WinActivate, ahk_id %client%
MouseGetPos,,, WinID, WinCon
SetControlDelay 0


Loop
{
	ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *50 iconef.png
	if ErrorLevel = 0
	{
		ControlSend, ahk_parent, f, ahk_id %WinID%
		sleep 100
	}
	else if ErrorLevel = 1
	{
	sleep 100
	}
	else if ErrorLevel = 2
	{
	MsgBox Cannot open image or bad format
	ExitApp
	}
}
return
[Mod edit: [code][/code] tags added.]

Re: Macro auto click

Post by Mavisghsyyhy » 07 Oct 2020, 04:28

Merci beaucoup de ta réponse !

Re: Macro auto click

Post by joedf » 06 Oct 2020, 13:35

Il faut simplement changer la ligne suivante de:

Code: Select all

ControlSend, ahk_parent, {Escape}, ahk_id %WinID%
à ceci:

Code: Select all

ControlSend, ahk_parent, f, ahk_id %WinID%

Macro auto click

Post by Mavisyukituyj » 06 Oct 2020, 12:46

Bonsoir,
je voudrais que la ahk appuis sur la touch f des qu'il vois une image
a peu comme si dessou mais avec la touch f

Code: Select all

SetTitleMatchMode=2
WinGet, client, ID, Blade & Soul
CoordMode, Pixel, Screen
WinActivate, ahk_id %client%
MouseGetPos,,, WinID, WinCon
SetControlDelay 0


Loop
{
	ImageSearch, FoundX, FoundY, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, *50 escape.png
	if ErrorLevel = 0
	{
		ControlSend, ahk_parent, {Escape}, ahk_id %WinID%
		sleep 3000
	}
	else if ErrorLevel = 1
	{
	sleep 100
	}
	else if ErrorLevel = 2
	{
	MsgBox Cannot open image or bad format
	ExitApp
	}
}
return
[Mod edit: [code][/code] tags added.]

Top