ShySam Posted August 11, 2010 Share Posted August 11, 2010 I've tried to set up a little macro for myself because I like to read and talk on a forum...but I get a little carried away at both forgetting the other. Anyway here's my script. HotKeySet("{F2}", "Start") Func Start() Sleep(60000) WinActivate("[CLASS:MozillaUIWindowClass]", "") MouseClick("", 47, 70) MouseClick("", 98, 867) Send("{END}") Sleep(10000) Send("{TAB}") Send("{ENTER}") WinActivate("[CLASS:IEFrame]", "") MouseClick("", 99, 879) Send("{END}") Sleep(8000) Send("{TAB}") Send("{ENTER}") WinActivate("[CLASS:MozillaUIWindowClass]", "") MouseClick("", 298, 73) EndFunc I don't know if it's any good but it works for what I need. Except getting the hotkey to work. I have no clue where it's broke but it doesn't work. I appreciate any and all help. Link to comment Share on other sites More sharing options...
Abryce Posted August 11, 2010 Share Posted August 11, 2010 (edited) im semi new try to see if this fixes your problem HotKeySet("{F2}", "Start") while 1 sleep(100) wend Func Start() Sleep(60000) WinActivate("[CLASS:MozillaUIWindowClass]", "") MouseClick("", 47, 70) MouseClick("", 98, 867) Send("{END}") Sleep(10000) Send("{TAB}") Send("{ENTER}") WinActivate("[CLASS:IEFrame]", "") MouseClick("", 99, 879) Send("{END}") Sleep(8000) Send("{TAB}") Send("{ENTER}") WinActivate("[CLASS:MozillaUIWindowClass]", "") MouseClick("", 298, 73) EndFunc *note i think* i think if your just useing a script for hotkeys u have to add the while func. and make sure you end it with wend. with out it i just closes the script Edited August 11, 2010 by abryce17 Link to comment Share on other sites More sharing options...
ShySam Posted August 11, 2010 Author Share Posted August 11, 2010 (edited) Thank you. Tried it but it still doesn't do anything when I push F2... Maybe I need to try a different key... Oh wait, I think I might know why... I'll try again and post back in a second. Nope, still nothing. Hey, thank you! That was it. It clicked in and works. Thank you!!! Edited August 11, 2010 by ShySam Link to comment Share on other sites More sharing options...
Abryce Posted August 11, 2010 Share Posted August 11, 2010 no problem. 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