Jump to content

Hotkey Not Working


 Share

Recommended Posts

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

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 by abryce17
Link to comment
Share on other sites

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 by ShySam
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...