Sign in to follow this  
Followers 0
langi890

How do i use this? Hotkey problem!

9 posts in this topic

Hi

i have an Question

i want to make an macro

that push the numbers 1-8 when i press for example f8

f8=start pressing 1-8

second time f8 stop pressing 1-8

i dont know how to do this

sry i dont use autoit very long

only 2days

thanks

Share this post


Link to post
Share on other sites



Maybe something like this:

#include <Misc.au3>

$dll = DllOpen("user32.dll")
$pressed = 0

While 1
    Sleep (100)
    If _IsPressed("77", $dll) And $pressed = 0 Then
        $pressed = 1
        AdlibEnable("Function", 500)
    ElseIf _IsPressed("77", $dll) And $pressed = 1 Then
        AdlibDisable()
        $pressed = 0
    EndIf
WEnd
DllClose($dll)

Func Function()
    For $a = 1 To 8
        Send("{1}")
        Sleep(10)
    Next
EndFunc

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites

This is know but how do i write the 1-8??

hotkeyset ("f8" , 1-8) ????

or how pls

Share this post


Link to post
Share on other sites

Just replace line 20 with this: Send("{" & $a &"}")


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites

can you please write me

this .....

im little nooblike

sry

hotkey=f8

keys to press 1-8

thanks

Share this post


Link to post
Share on other sites

can you please write me

this .....

im little nooblike

sry

hotkey=f8

keys to press 1-8

thanks

Do what n3ne says we can't explain more just replace the line with what he says.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

can you please write me this .....

No one is going to write this for you. This is a help forum not a "write this for me" forum. I and others have given you all the information you need. I'm guessing you haven't read the helpfile. Even a person who has only used autoit a few hours could do such a simple script if they read the helpfile and possibly go through a few tutorials.

Share this post


Link to post
Share on other sites

This is a help forum not a "write this for me" forum.

You are damn right :)


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

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  
Followers 0