Sign in to follow this  
Followers 0
Enslaved

Simple Script for Torchlight

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by SmOke_N

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0