insanity Posted November 13, 2006 Share Posted November 13, 2006 I need to record the keystrokes made when my GUI is active into a box which defines a variable. Basically I need it to record what is typed in, then if it doesn't match a set definition I will need it to say in a MsgBox to thr user 'doesnt match type it again'. When I first made the script I had it compare the variable to the definitions I have given for this box but that lags the script. Once the typed characters match the one of the definitions it will be sent to a .ini file and then used by the script. I know how to do everything needed for the above to work other than how to get a script to record keystrokes. I assume once it has recorded them I would use IniWrite as I would when writing set text to an ini file. Link to comment Share on other sites More sharing options...
Uten Posted November 13, 2006 Share Posted November 13, 2006 You know you are riding a lucky star? I find it unbelivable that you have not been flamed by now Anyhow a GuiCtrlCreateInput(...) Will create a gui item that records keystroks. If you want to compare the entered values on the fly you will have to use GuiRegisterMsg. Do a search, you should have done it in the first place any how. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
MHz Posted November 13, 2006 Share Posted November 13, 2006 You know you are riding a lucky star? I find it unbelivable that you have not been flamed by now Nah, no flaming needed. insanity has set the reason which may sound fine but not required as the event of the input can be checked after the event and return again to ask.Note insanity: keylogging is not the solution to the problem. Checking the input upon condition and deal with the resullt is. More then one way to solve a problem and keylogging is not an option here. Link to comment Share on other sites More sharing options...
Uten Posted November 13, 2006 Share Posted November 13, 2006 The thing is @MHz, this forum is not known of a gentle approach towards any thread containing certain words. Especially not when the posters nick gives antisocial associations. But I guess @insanity is well on his way by now .... or has enrolled in one of those nice and quiet places Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
MHz Posted November 13, 2006 Share Posted November 13, 2006 The thing is @MHz, this forum is not known of a gentle approach towards any thread containing certain words.Agreed, gentle is bad for a forum as too many take advantage of it for evil means. Always consider the result of an action. insanity has not yet shown the nature that the name precedes nor may never will. But no logger code shown yet so all is well so far. Link to comment Share on other sites More sharing options...
Bert Posted November 13, 2006 Share Posted November 13, 2006 (edited) Try this: (I didn't test it, but you will get the idea) while 1 $passwd = InputBox("Security Check", "Enter your password.", "", "*") if $passwd = "password" then exitloop else msgbox(0, "error", "Password Incorrect!") endif wend Edited November 13, 2006 by vollyman The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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