aebstract Posted May 3, 2006 Posted May 3, 2006 (edited) Hi, I posted yesterday about an error but that was fixed, so I thought a new topic, with the new problem would be best.. since the old topic was not near the new problem. First thing I would like to get to work is the timedmacro, it should put a timer in the top left of the screen that counts up to 18 and then stops.. when I hit the hot key for it (not in game) it does just that, perfectly. When I go in to the game it won't do it anymore. ( also.. none of the other 3 macros will work in the game either ) Game is 'Darkages'. Also, this is not my script, it is posted publicly.. I mention this, because I don't know a single thing about coding in autoit, so all help is highly appreciated. DAMacroCombo.ini [Hotkey Settings] Pramhed={END} NotPramhed={PGDN} CrasherOnly={PGUP} TimedMacro={F6} [Macro Settings] Pramhed=s83a1s9+s12s71206 NotPramhed=+s2s127063a1s9+s1 CrasherOnly=+s12s763 DAMacroCombo.AU3 expandcollapse popupOpt("SendKeyDelay", 1) Dim $isActive HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "Pramhed", "{END}"), "_Pramhed") HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "NotPramhed", "{PGDN}"), "_NotPramhed") HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "CrasherOnly", "{PGUP}"), "_CrasherOnly") HotKeySet(IniRead("DAMacroCombo.ini", "Hotkey Settings", "TimedMacro", "{F6}"), "_TimedMacro") $strPramhed = IniRead("DAMacroCombo.ini", "Macro Settings", "Pramhed", "Please set your macros.") $strNotPramhed = IniRead("DAMacroCombo.ini", "Macro Settings", "NotPramhed", "Please set your macros.") $strCrasherOnly = IniRead("DAMacroCombo.ini", "Macro Settings", "CrasherOnly", "Please set your macros.") TraySetState() TraySetToolTip("DA Macro Combo") ;--MAIN LOOP-- While 1 $isActive = WinActive("Darkages") Sleep(100) WEnd ;--MAIN LOOP-- Func _Pramhed() If $isActive Then Send($strPramhed) EndFunc Func _NotPramhed() If $isActive Then Send($strNotPramhed) EndFunc Func _CrasherOnly() If $isActive Then Send($strCrasherOnly) EndFunc Func _TimedMacro() Local $macrodelay = IniRead("DAMacroCombo.ini", "Settings", "TimedMacroDelay", 18500) Local $count = 1, $seconds = 0 Do Sleep(100) $count = $count + 1 If Mod($count, 10) = 0 Then $seconds = $seconds + 1 EndIf ToolTip("Timed Macro: " & $seconds, 0, 0) Until $count >= ($macrodelay / 100) ToolTip("") _Pramhed() EndFunc Thanks in advance! Edit: I `have` searched the forums for `fullscreen` and various different things like that, I have yet to find a solution that I could even understand. Just so noone tells me to go searching, I have done that Edited May 3, 2006 by aebstract
Valuater Posted May 3, 2006 Posted May 3, 2006 many on-line games now have "Game Guard" that wont let auoit or other "bots" run/interact with the gamessome postshttp://www.autoitscript.com/forum/index.ph...Guard''8)
aebstract Posted May 3, 2006 Author Posted May 3, 2006 I looked at it, and I will go back and look at those posts more, but in response to what you said: Other programs, such as macro express and things work fine for the game. Macro express being a program that automates tasks for you on your system. I can set up a macro set off by a certain key and it works. Wouldn't this mean, the game does NOT have any type of guards for this?
Moderators SmOke_N Posted May 3, 2006 Moderators Posted May 3, 2006 Just a question, I'm not a gamer, but maybe you are trying to use HotKeys() that the program is already using itself? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
aebstract Posted May 3, 2006 Author Posted May 3, 2006 the Home, Page Up, End, and Page Down are.. but thats why I changed the timer to f6, f6 is not a hot key in game :/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now