realkiller Posted September 29, 2005 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
Ghastly_MIB Posted September 29, 2005 Posted September 29, 2005 Try this: HotKeySet("8", "s8") While 1 WEnd Func s8() Send("b") filewrite ("c:\1.txt", "8") EndFunc
ligenza Posted September 29, 2005 Posted September 29, 2005 (edited) Ghastly beat me by two minutes... ;( Edited September 29, 2005 by ligenza
realkiller Posted September 29, 2005 Author Posted September 29, 2005 doesnt work:S but thx for reply Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
poisonkiller Posted September 29, 2005 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
realkiller Posted September 29, 2005 Author 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
Developers Jos Posted September 29, 2005 Developers 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.
poisonkiller Posted September 29, 2005 Posted September 29, 2005 (edited) Sry i updated my code. It needed "Sleep(100)" order. Edited September 29, 2005 by poisonkiller
realkiller Posted September 29, 2005 Author Posted September 29, 2005 its working now thx all Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
poisonkiller Posted October 5, 2005 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!!!
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