Jump to content
Sign in to follow this  
Hoshen

Windows 7 problem

Recommended Posts

Hoshen

I play a video game and would like to have auto it do some SEND to it, but it seems windows 7 blocks it for some reason, is there a solution to this?

what's the script to set up something so that when I press ESC the script will exit?

how do I hold down a key longer than 5 ms?

thanks !

Share this post


Link to post
Share on other sites
dantay9

I don't know anything about Windows 7.

To exit on Esc pressed you need a hotkey:

HotKeySet("{Esc}", "_Exit")

;Place your loop here

Func _Exit()
    Exit
EndFunc

To set the amount of time the key is down, use Opt("SendKeyDownDelay", $iMilliseconds).


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites
Richard Robertson

You need to have permissions to send keystrokes to other windows. Try running your script as administrator.

Share this post


Link to post
Share on other sites
StickyChopstix

It looks like you are trying to make a bot for your game.

You may want to try getting a bypass for the anti-hack your game uses. That's the only thing I can think of that is stopping you. If your game has nothing to with anti-hacks or bots then it is probably the permissions.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.