Guest The2ndOne Posted October 3, 2004 Share Posted October 3, 2004 OK ok i know i'm a leech and should figure this out for my self.. BUT was hopinh someone would help me anyways.. i need a script that when i hit f11 or f12 it starts sending a keypress to a cirten window (so i hit f12 it starts sending f3 every 250ms until i hit f12 or f11 again) anyone willing to help me out? (btw IF you can it wuold be great if i could specify what f-key it send but it has to turn on and off using f11 or f12 anyone if you dont wanna write the whole think maybe just help me with part of it and i'll figure out the rest =) thanks in advance Link to comment Share on other sites More sharing options...
bobheart Posted October 3, 2004 Share Posted October 3, 2004 I guess you would do your begging over here Link to comment Share on other sites More sharing options...
Guest The2ndOne Posted October 3, 2004 Share Posted October 3, 2004 Well i think i got it figured out.. BTW i wasnt really looking for a hand out i was looking for a starting point/help BUT anyways... heres what i came up with let me know if theres anything i could do better WinWaitActive("myapp") MyFunc() Func MyFunc() Hotkeyset("{f11}","loopfunc") While 1 Sleep(21) WEnd EndFunc Func loopfunc() Hotkeyset("{f11}","MyFunc") While 1 Send("{f10}") Sleep(20) WEnd EndFunc also.. anyone know how i can specify the the script lauch what fkey it sends? Link to comment Share on other sites More sharing options...
Guest The2ndOne Posted October 3, 2004 Share Posted October 3, 2004 oh.. better yet.. is there a way that when the script starts a window pops up and ask them to his the key that want it to send then have the scirpt send that.. exampl.. start script window pops up and says "press f-key you wantto loop" then they hit it the window gose away and when they hit the f11 key it starts the loop of sending they key they hit Link to comment Share on other sites More sharing options...
Helge Posted October 3, 2004 Share Posted October 3, 2004 (edited) Try the following example.NOTE : Untested, written directly into the browser !!Also remember to set ControlSend properly with title (,text) and controlname to your needs..$paused = 1 Opt("SendKeyDelay",240) ; Key-delay (240) + Sleep (10) = Real key-delay (250 ms) HotKeySet("{F11}","pauseOFF"); F11 starts sending F3 HotKeySet("{F12}","pauseON") ; F12 stops sending F3 While 1 Sleep(10); Gives the CPU a rest.. If $paused = 0 Then ControlSend("title","text","controlName","{F3}") Wend Func pauseON() $paused = 1 EndFunc Func pauseOFF() $paused = 0 EndFuncGood luck !EDIT : I posted a little late there... Edited October 3, 2004 by Helge 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