realkiller Posted September 29, 2005 Share Posted September 29, 2005 (edited) i must send the numer 8 and write b how can i do that While 1 HotKeySet("8", "s8") WEnd Func s8() Send("b") filewrite ("c:\1.txt", "8") EndFunc Edited September 29, 2005 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Ghastly_MIB Posted September 29, 2005 Share Posted September 29, 2005 Try this: HotKeySet("8", "s8") While 1 WEnd Func s8() Send("b") filewrite ("c:\1.txt", "8") EndFunc Link to comment Share on other sites More sharing options...
ligenza Posted September 29, 2005 Share Posted September 29, 2005 (edited) Ghastly beat me by two minutes... ;( Edited September 29, 2005 by ligenza Link to comment Share on other sites More sharing options...
realkiller Posted September 29, 2005 Author Share Posted September 29, 2005 doesnt work:S but thx for reply Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
poisonkiller Posted September 29, 2005 Share Posted September 29, 2005 (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 September 29, 2005 by poisonkiller Link to comment Share on other sites More sharing options...
realkiller Posted September 29, 2005 Author Share Posted September 29, 2005 this one works but it sends 15 times b en write 15 times 8 Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
Developers Jos Posted September 29, 2005 Developers Share Posted September 29, 2005 (edited) Try this:HotKeySet("b", "s8")While 1WEndFunc s8()HotKeySet("b","")Send("b")filewrite ("c:\1.txt", "8")HotKeySet("b", "s8")EndFunc Edited September 29, 2005 by JdeB SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
poisonkiller Posted September 29, 2005 Share Posted September 29, 2005 (edited) Sry i updated my code. It needed "Sleep(100)" order. Edited September 29, 2005 by poisonkiller Link to comment Share on other sites More sharing options...
realkiller Posted September 29, 2005 Author Share Posted September 29, 2005 its working now thx all Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
poisonkiller Posted October 5, 2005 Share Posted October 5, 2005 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!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now