program builder Posted January 18, 2007 Share Posted January 18, 2007 Can anyone help me do this? I'm trying to get a random number to come up in notepad, between 1 and 100 million. each time a hotkey is pressed. can anyone help me out? If so please post back. Link to comment Share on other sites More sharing options...
Joon Posted January 18, 2007 Share Posted January 18, 2007 Here something you can start with. HotKeySet("{F10}","RandomNumber") While 1 Sleep(150) WEnd Func RandomNumber() MsgBox(4096,"",Random(1,1000000,1)) EndFunc Link to comment Share on other sites More sharing options...
program builder Posted January 18, 2007 Author Share Posted January 18, 2007 Here something you can start with. HotKeySet("{F10}","RandomNumber") While 1 Sleep(150) WEnd Func RandomNumber() MsgBox(4096,"",Random(1,1000000,1)) EndFunc Thanks, I'll try it. Link to comment Share on other sites More sharing options...
program builder Posted January 18, 2007 Author Share Posted January 18, 2007 that worked to desplay it in a message box, however How would I get it to type it in notepad. I tyed this but it didn't work run("notepad.exe") sleep(15000) send(""random""(1,149000000,1)) but it didn't work. could someone please help, if you can. Link to comment Share on other sites More sharing options...
Traddles Posted January 18, 2007 Share Posted January 18, 2007 try: run("notepad") winwaitactive("Untitled") Send(Random(1, 100000000, 1)) that should work 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