Jump to content

Recommended Posts

Posted

Any suggestions on why this will work locally on an XP pro machine, but won't on locally on a Win7 pro machine?

The Active Window is a student information services program, I have no idea what it's written in.

HotKeySet("{PRINTSCREEN}", "Sequence") ;Print Screen runs the script.
 
While 1
    Sleep(100)
WEnd
 
Func Terminate()
Exit
EndFunc
 
Func Sequence()
ToolTip("Sequence", 0, 0)
 
Send("{TAB}")
sleep(500)
Send("{TAB}")
sleep(500)
Send("UserName") ;user
Sleep(500)
Send("{TAB}")
Send("2020") ;grade
ToolTip("End Sequence", 0, 0)
 
EndFunc
Posted

Worked for me though I could not use that particular hotkey because it was reserved by another program. See below, I used "A" instead and then terminated the app from within the Sequence function. I opened notepad and it worked fine on Win 7 with 64 bit. Maybe try changing your hotkey ... ?

HotKeySet("{A}", "Sequence") ;Print Screen runs the script.

While 1

Sleep(100)

WEnd

Func Terminate()

Exit

EndFunc

Func Sequence()

Sleep(2000)

ToolTip("Sequence", 0, 0)

Send("{TAB}")

sleep(500)

Send("{TAB}")

sleep(500)

Send("UserName") ;user

Sleep(500)

Send("{TAB}")

Send("2020") ;grade

ToolTip("End Sequence", 0, 0)

Terminate()

EndFunc

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Posted

Worked for me though I could not use that particular hotkey because it was reserved by another program. See below, I used "A" instead and then terminated the app from within the Sequence function. I opened notepad and it worked fine on Win 7 with 64 bit. Maybe try changing your hotkey ... ?

HotKeySet("{A}", "Sequence") ;Print Screen runs the script.

While 1

Sleep(100)

WEnd

Func Terminate()

Exit

EndFunc

Func Sequence()

Sleep(2000)

ToolTip("Sequence", 0, 0)

Send("{TAB}")

sleep(500)

Send("{TAB}")

sleep(500)

Send("UserName") ;user

Sleep(500)

Send("{TAB}")

Send("2020") ;grade

ToolTip("End Sequence", 0, 0)

Terminate()

EndFunc

Thank you for the suggestion. Turns out I have to build it and run it as admin from the .exe for it to work. Not a problem as my main machine is xp anyhow. Thanks again for the help JFish.

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
×
×
  • Create New...