Can someone create a macro for me that will press TAB + ~ + Right Click...

03/19/2012 21:47 izon13#1
Can someone create a macro for me that will press TAB + ~ + Right Click... With endless Loop... That script will work for the game that I'm playing.. I just don't know how to create one..

Something like...

Press Tab key... After 1 Second Press ~ Key.. After 1 second Press Right click... With endless loop.. That simple.. Thanks...
03/19/2012 23:17 BotofWar#2
not tested, but maybe this is what you want:

Code:
HotKeySet("^q", "verlassen")
$dll = DllOpen("user32.dll")

While 1
	
	Send("{TAB}")
	sleep(1000)
	Send("~")
	sleep(1000)
	MouseClick("right")
	sleep(1000)
	
WEnd

Func verlassen() 
	
	DllClose($dll)		
	exit

EndFunc
03/20/2012 08:29 izon13#3
Yay... Thanks a lot.. I will try it now.. ^^

Ok.. It's not working in-game... Is AutoIt have any function that can use Virtual Mouse & Keyboard driver?.. Because its working in the Notepad but in-game it doesn't..
03/20/2012 12:36 Buffmebuffyou#4
Quote:
Originally Posted by BotofWar View Post
not tested, but maybe this is what you want:

Code:
HotKeySet("^q", "verlassen")
$dll = DllOpen("user32.dll")

While 1
	
	Send("{TAB}")
	sleep(1000)
	Send("~")
	sleep(1000)
	MouseClick("right")
	sleep(1000)
	
WEnd

Func verlassen() 
	
	DllClose($dll)		
	exit

EndFunc
Why do you open "user32.dll"? o.ō
03/20/2012 15:49 BotofWar#5
@izon: Try changing "Sleep(1000)" -> "Sleep(100)"

@Buffme: wegen dem hotkey... der funzt iwi nicht bei jedem ohne die dll. Weiss auch nicht warum, aber evtl könnte es am 64bit liegen. Keine Ahnung.
03/20/2012 17:43 jacky919#6
Quote:
Originally Posted by BotofWar View Post
wegen dem hotkey... der funzt iwi nicht bei jedem ohne die dll. Weiss auch nicht warum, aber evtl könnte es am 64bit liegen. Keine Ahnung.
Kann eigentlich garnicht sein.
03/20/2012 18:00 bollen#7
Maybe the Game has a hack protection. This protection blocks AutoIt
03/21/2012 08:09 izon13#8
Quote:
Originally Posted by BotofWar View Post
@izon: Try changing "Sleep(1000)" -> "Sleep(100)"

@Buffme: wegen dem hotkey... der funzt iwi nicht bei jedem ohne die dll. Weiss auch nicht warum, aber evtl könnte es am 64bit liegen. Keine Ahnung.
Not working.. I think i need Virtual Mouse & Keyboard Driver to make it work... The game has the the Anti cheating Tool called "Avital".. Its not a famous Anti Cheating tool.. In fact i tried to search for a bypass but nothing comes up about Avital Anti Cheating Tool.. Not even a single info about it.. Hehehe..
03/21/2012 17:53 BotofWar#9
I dont know if this works, but in some games you can use Cheat Engine, search in the running Game Process or in the Avital Process (if exists) for the Value "AutoIt", change it to something else like "blablabla". Maybe this could work.
03/22/2012 02:08 asdfgpete#10
Why are you even opening the user32.dll? It is absolutely not needed here, in fact it is not even used.

However, it is recommended to use it when using e.g. _IsPressed() repeatedly but even there it is not mandatory.
03/22/2012 21:07 jacky919#11
Quote:
Originally Posted by asdfgpete View Post
Why are you even opening the user32.dll? It is absolutely not needed here, in fact it is not even used.

However, it is recommended to use it when using e.g. _IsPressed() repeatedly but even there it is not mandatory.



Quote:
Originally Posted by BotofWar
@Buffme: wegen dem hotkey... der funzt iwi nicht bei jedem ohne die dll. Weiss auch nicht warum, aber evtl könnte es am 64bit liegen. Keine Ahnung.
->
Quote:
Originally Posted by BotofWar
@Buffme: because of the hotkey... somehow it isn't working at anyone's pc I don't know why, but perhaps a 64bit os is the reason. no idea.