zutto Posted June 4, 2008 Posted June 4, 2008 hhmh topic might be bit crappy explain so i explain it on here.. i play on X game and when i use hotkeyset it "overrides" the game whats binded in game.. i want it to do: when i click E it clicks f12 for me.. i tried this: HotKeySet("{f6}", "_start2") HotKeySet("e", "_start") ; While 1 Sleep(100) WEnd Func _start() While 1 send("{f12}") WEnd EndFunc Func _start2() While 1 send("v") WEnd EndFunc simple but could be effective if works... any other way? some example? what to search @ help file?
Airwolf Posted June 4, 2008 Posted June 4, 2008 (edited) The loop will cause F12 to be continuously pressed, indefinitely. You should simply do the following if you want pressing the e key to hit f12. Other than that, what problem are you having?AutoItHotKeySet("e", "_start") While 1 Sleep(100) WEnd Func _start() send("{f12}") EndFuncEDIT: Sorry, I seem to have misunderstood your post. See danielkza's post below for your solution. Edited June 4, 2008 by Airwolf123 Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
danielkza Posted June 4, 2008 Posted June 4, 2008 hhmh topic might be bit crappy explain so i explain it on here.. i play on X game and when i use hotkeyset it "overrides" the game whats binded in game.. i want it to do: when i click E it clicks f12 for me.. i tried this: HotKeySet("{f6}", "_start2") HotKeySet("e", "_start") ; While 1 Sleep(100) WEnd Func _start() While 1 send("{f12}") WEnd EndFunc Func _start2() While 1 send("v") WEnd EndFuncoÝ÷ ÚȦ¦Wº×(ºW[yçßyËb½èÂ䱩ò¢Ø^¯²²{¦¦W°«m¢ÇÈazZ_W¿ªê-y«¢+Ø¥¹±Õ±Ðí5¥Í¹ÔÌÐì()±½° ½¹ÍÐÀÌØíåôÅÕ½ÐìÐÔÅÕ½Ðì)±½° ½¹ÍÐÀÌØíͱÁQ¥µôÄÀÀÀìM±ÀQ¥µ¥¸5¥±¥Í½¹Ì°¡¹Ñ¼å½ÕȹÌ()]¡¥±Ä(%}%ÍAÉÍÍ ÀÌØíå¤Q¡¸(M¹ ÅÕ½ÐííÄÉôÅÕ½Ðì¤(¹%(M±À ÀÌØíM±ÁQ¥µ¤)]¹
zutto Posted June 4, 2008 Author Posted June 4, 2008 (edited) Airwolf123 yerr i noticed that too i got called " ip ban" temporarly, dont know how long it lasts but i am trying other way, binded the E key ingame to f11 and took the while/wend off but without em the script just started and immidiently exited... well i'm trying again soon as the ip ban is off. EDIT: in short term my problem was that when i pressed E the game ignores my E key.. Edited June 4, 2008 by zutto
Airwolf Posted June 4, 2008 Posted June 4, 2008 EDIT: in short term my problem was that when i pressed E the game ignores my E key..DirectX could be blocking your input, in which case you can't simply use a Send(). Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt
zutto Posted June 4, 2008 Author Posted June 4, 2008 DirectX could be blocking your input, in which case you can't simply use a Send().okies, but i thin my way will work..
danielkza Posted June 4, 2008 Posted June 4, 2008 okies, but i thin my way will work..Some game protection system like XTrap use direct harware input,and block emulated input like what autoit uses.The only way to bypass this is by cracking the client somehow,and i think it's not what you're looking for.
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