Sign in to follow this  
Followers 0
realkiller

hotkey send and write

10 posts in this topic




Try this:

HotKeySet("8", "s8")

While 1

WEnd

Func s8()

Send("b")

filewrite ("c:\1.txt", "8")

EndFunc

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Ghastly beat me by two minutes... ;(

Edited by ligenza

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Or maybe this works:

#include <Misc.au3>
While 1
If _IsPressed(38, "user32.dll") Then
Send("b")
Sleep(100)
filewrite ("c:\1.txt", "8")
EndIf
WEnd
Edited by poisonkiller

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Try this:

HotKeySet("b", "s8")

While 1

WEnd

Func s8()

HotKeySet("b","")

Send("b")

filewrite ("c:\1.txt", "8")

HotKeySet("b", "s8")

EndFunc

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Sry i updated my code. It needed "Sleep(100)" order.

Edited by poisonkiller

Share this post


Link to post
Share on other sites

So.. How can i set max characters to _IsPressed()?I used Sleep order, but if i want write these letters fast, then some letters will lost. And i can lower Sleep() because there are computer differences too.

Need help!!!

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