Enslaved Posted March 23, 2011 Posted March 23, 2011 Hi there, i just created my first AutoIt script. It is about to click the middle mousekey and send shift+mouse1click to the game. But it seems to be broken or something, it is just doing nothing. #include <Misc.au3> $hDLL = DllOpen("user32.dll") While 1 If WinActive("Torchlight") Then If _IsPressed(04, $hDLL) Then Send("{SHIFTDOWN") MouseClick("left") Send("{SHIFTUP") EndIf EndIf WEnd Can anyone please help me out it is such a simple thing, but i am really new to AutoIt.
AdmiralAlkex Posted March 23, 2011 Posted March 23, 2011 Hi and Welcome to the forums!No we can't help you, see the announcement at the top of the forum (or here <-- link) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Enslaved Posted March 23, 2011 Author Posted March 23, 2011 Hi and Welcome to the forums!No we can't help you, see the announcement at the top of the forum (or here <-- link)It is not about botting, i am only giving an item to my pet this way, because the middle mouskey does not work in Torchlight. In the official Torchlight forum they suggest to use Autokey, but i don't understand Autokey at all.I don't see a reason why you should not help me.
AdmiralAlkex Posted March 23, 2011 Posted March 23, 2011 It doesn't say no bots, it says:DO NOT DISCUSS GAME AUTOMATION HERE.Your glasses must be foggy or something .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Enslaved Posted March 23, 2011 Author Posted March 23, 2011 (edited) It doesn't say no bots, it says:Your glasses must be foggy or something So you force me to register in some hacker forum to get my answer ?It is not even automating anything, just pressing a key for me when i click an item, it is a keybind nothing more man. Edited March 23, 2011 by SmOke_N
Moderators SmOke_N Posted March 23, 2011 Moderators Posted March 23, 2011 (edited) It is what it is. Do what you must do. Edit: I must say, your response tickled me a bit. It makes me think what I'd say if/when my kids ever came up to me: Child; "Dad, would you rather me get my drugs from somewhere else?" Edited March 23, 2011 by SmOke_N 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.
Recommended Posts