01/27 - Fantastic Friday!

Status
Not open for further replies.

Starslip

Well-Known Member
Contributor
Crowd Pleaser
Joined
Jan 19, 2016
Messages
13,351
Reaction score
35,529
Points
1,588
Age
125
Gender
Male
Just because. "Sixty Minute Man" by the Dominoes; released May 1951.

Oh god, Fallout flashbacks

(This song was part of the in-game soundtrack for Fallout 4. Probably heard it about a hundred times)
 
  • Like
Reactions: ChristopherASA

sandyriver

Member
Joined
Jun 22, 2016
Messages
377
Reaction score
575
Points
343
Age
42
Title: (For workers over 25) Pretend to talk to customer service representative while Tired-Exhausted-Sleepy | PANDA
Requester: SSAudio [A1X6NHVLK7N55A] (Contact)
TO: [Pay: 4.00] [Fair: 5.00] [Comm: 5.00] [Fast: 4.86] [Reviews: 18] [ToS: 0]
Description:
Record yourself speaking as though you were tired-exhausted-sleepy.
Time: 2 hours
HITs Available: 1
Reward: $0.60
Qualifications: HIT approval rate (%) is greater than 80; Location is US;

HIT posted from Mturk Suite v1.2.6
Over 25 and Tired? Sound like this hit was made for sandyriver @sandyriver right now
Thanks. If the location was CA instead then I would :)
 
  • Like
Reactions: Squatty

Blue

Unlikeable Ass
Contributor
Joined
Jan 11, 2016
Messages
4,183
Reaction score
13,272
Points
838
Gender
Male
Damn. That's much neater, and wouldn't need nearly as many keys. Thanks for typing all that out.
Don't forget to clean up your variables after each submission.

You need to set foo back to = 1 each time you press your submit hotkey... or it will just keep counting up to infinity as long as the script is active. Note I also declared foo as a variable outside of the hotkey... this ensures that the space the variable inhabits has a declared value as soon as the script is loaded, instead of random garbage that is located at that location in memory.

You also want to zero the Clipboard out before each ^c... this helps reduce c/p errors. if before each Send ^c command you have a command that sets Clipboard = 0 or Clipboard = you can reduce the chance that the last thing you copied will saved a second time.

If you use
Code:
clipboard =
you can take it even further and use a Clipwait command... which will pause the script for up to a specified amount of time until ahk detects a value created in the clipboard... you can also use the global variable ErrorLevel to add logic in to tell the script what to do when things don't go correctly.

It sounds complicated... but if you script clean you'll have fewer errors in your work and your script will be much more robust and reliable.

Code:
clipboard = ; Empty the clipboard
Send, ^c
ClipWait, 2
if ErrorLevel
{
    MsgBox, The attempt to copy text onto the clipboard failed.
    return
}
MsgBox, clipboard = %clipboard%
return
Obviously... you don't have to have it print a message when your copy fails... but adding ways for your script to communicate with you when errors occur is pretty important.
 

KellieS23

Anyone else feel like a Rainbow?
Contributor
Joined
Apr 6, 2016
Messages
6,287
Reaction score
10,331
Points
1,063
Location
Kansas
Gender
Female
Title: About 8 min during survey. It is important that you take the survey on laptop or computer, this is an essential condition. | PANDA
Requester: elke cabooter [A5ZMUC9WFS9I0] (Contact)
TO: [Pay: 3.33] [Fair: 4.54] [Comm: 3.30] [Fast: 4.46] [Reviews: 39] [ToS: 0]
Description:
Give us your opinion about several statements
Time: 10 minutes
HITs Available: 1
Reward: $0.80
Qualifications: HIT approval rate (%) GreaterThan 95; Location EqualTo US;

HIT posted from Mturk Suite v1.2.6
4-5 minutes
 
  • Like
Reactions: onioro

KellieS23

Anyone else feel like a Rainbow?
Contributor
Joined
Apr 6, 2016
Messages
6,287
Reaction score
10,331
Points
1,063
Location
Kansas
Gender
Female
Sorry, our records indicate that you have already completed (or attempted to complete) this HIT.
Because this is a psychology experiment, you can only complete this HIT once.
:banghead::banghead::banghead::banghead::banghead:
I've cock-blocked myself like 15 times today...it's unreal
 
  • Like
Reactions: Starslip

Starslip

Well-Known Member
Contributor
Crowd Pleaser
Joined
Jan 19, 2016
Messages
13,351
Reaction score
35,529
Points
1,588
Age
125
Gender
Male
Don't forget to clean up your variables after each submission.

You need to set foo back to = 1 each time you press your submit hotkey... or it will just keep counting up to infinity as long as the script is active. Note I also declared foo as a variable outside of the hotkey... this ensures that the space the variable inhabits has a declared value as soon as the script is loaded, instead of random garbage that is located at that location in memory.

You also want to zero the Clipboard out before each ^c... this helps reduce c/p errors. if before each Send ^c command you have a command that sets Clipboard = 0 or Clipboard = you can reduce the chance that the last thing you copied will saved a second time.

If you use
Code:
clipboard =
you can take it even further and use a Clipwait command... which will pause the script for up to a specified amount of time until ahk detects a value created in the clipboard... you can also use the global variable ErrorLevel to add logic in to tell the script what to do when things don't go correctly.

It sounds complicated... but if you script clean you'll have fewer errors in your work and your script will be much more robust and reliable.

Code:
clipboard = ; Empty the clipboard
Send, ^c
ClipWait, 2
if ErrorLevel
{
    MsgBox, The attempt to copy text onto the clipboard failed.
    return
}
MsgBox, clipboard = %clipboard%
return
Obviously... you don't have to have it print a message when your copy fails... but adding ways for your script to communicate with you when errors occur is pretty important.
I've actually used the commands to empty the clipboard and the clipwait command before, they were useful. This should help with issues I've had where the script sometimes goes wonky in the middle of using it and stuff gets pasted in the wrong field or other issues. I always chalked it up to momentary system lag but couldn't figure out a way around it other than adding longer sleep delays between commands.
 
Last edited:
Status
Not open for further replies.