text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
end getCoord
|
cliclick.applescript
|
set actual101 to formatCoordinates(1, 1)
|
cliclick.applescript
|
set case101 to "Case 101: Both positive"
|
cliclick.applescript
|
std's assert("1,1", actual101, case101)
|
cliclick.applescript
|
set actual102 to formatCoordinates(1, -1)
|
cliclick.applescript
|
set case102 to "Case 101: Left positive"
|
cliclick.applescript
|
std's assert("1,=-1", actual102, case102)
|
cliclick.applescript
|
set actual103 to formatCoordinates(-1, 1)
|
cliclick.applescript
|
set case103 to "Case 103: Right positive"
|
cliclick.applescript
|
std's assert("=-1,1", actual103, case103)
|
cliclick.applescript
|
set actual104 to formatCoordinates(-1, -1)
|
cliclick.applescript
|
set case104 to "Case 101: Both negative"
|
cliclick.applescript
|
std's assert("=-1,=-1", actual104, case104)
|
cliclick.applescript
|
std's utDone()
|
cliclick.applescript
|
on formatCoordinates(x, y)
|
cliclick.applescript
|
if x is less than 0 then set x to "=" & x
|
cliclick.applescript
|
if y is less than 0 then set y to "=" & y
|
cliclick.applescript
|
return x & "," & y as text
|
cliclick.applescript
|
end formatCoordinates
|
cliclick.applescript
|
set CLICLICK_CLI to do shell script "plutil -extract \"cliclick CLI\" raw ~/applescript-core/config-system.plist"
|
cliclick.applescript
|
error "cliclick was not found. Download cli then run make install-cliclick"
|
cliclick.applescript
|
set logger to std's import("logger")'s new("cliclick")
|
cliclick.applescript
|
global std, usr, kb, process
|
zoom-actions.applescript
|
global SHARING_WIN_NAME, SELECT_SHARE_WIN_NAME, SHARING_STATUSBAR_WIN_NAME
|
zoom-actions.applescript
|
set thisCaseId to "zoom-actions-spotCheck"
|
zoom-actions.applescript
|
Manual: Unmute
|
zoom-actions.applescript
|
Manual Mute
|
zoom-actions.applescript
|
Manual: Start Video
|
zoom-actions.applescript
|
Manual: Stop Video
|
zoom-actions.applescript
|
Manual: Raise Hand
|
zoom-actions.applescript
|
Manual: Lower Hand
|
zoom-actions.applescript
|
Manual: Start Screen Sharing
|
zoom-actions.applescript
|
Manual: Stop Screen Sharing
|
zoom-actions.applescript
|
Manual: End Meeting
|
zoom-actions.applescript
|
sut's unmute
|
zoom-actions.applescript
|
sut's unmute()
|
zoom-actions.applescript
|
sut's mute()
|
zoom-actions.applescript
|
sut's cameraOn()
|
zoom-actions.applescript
|
sut's cameraOff()
|
zoom-actions.applescript
|
sut's raiseHand()
|
zoom-actions.applescript
|
sut's lowerHand()
|
zoom-actions.applescript
|
sut's startSharing()
|
zoom-actions.applescript
|
sut's stopSharing()
|
zoom-actions.applescript
|
on mute()
|
zoom-actions.applescript
|
_clickMenuAction("Mute Audio")
|
zoom-actions.applescript
|
end mute
|
zoom-actions.applescript
|
on unmute()
|
zoom-actions.applescript
|
_clickMenuAction("Unmute Audio")
|
zoom-actions.applescript
|
end unmute
|
zoom-actions.applescript
|
on cameraOn()
|
zoom-actions.applescript
|
_clickMainButton("Start Video")
|
zoom-actions.applescript
|
end cameraOn
|
zoom-actions.applescript
|
on cameraOff()
|
zoom-actions.applescript
|
_clickMainButton("Stop Video")
|
zoom-actions.applescript
|
end cameraOff
|
zoom-actions.applescript
|
on setMicToSystem()
|
zoom-actions.applescript
|
_clickAudioSubMenu("MacBook Pro Microphone (MacBook Pro Microphone)")
|
zoom-actions.applescript
|
end setMicToSystem
|
zoom-actions.applescript
|
on setAudioToSystem()
|
zoom-actions.applescript
|
_clickAudioSubMenu("MacBook Pro Speakers (MacBook Pro Speakers)")
|
zoom-actions.applescript
|
end setAudioToSystem
|
zoom-actions.applescript
|
on raiseHand()
|
zoom-actions.applescript
|
activate application "zoom.us"
|
zoom-actions.applescript
|
if name of front window is "Reactions" then
|
zoom-actions.applescript
|
logger's warn("Your virtual hand may already be raised")
|
zoom-actions.applescript
|
else if name of front window is "Zoom Meeting" then
|
zoom-actions.applescript
|
kb's pressOptionKey("y")
|
zoom-actions.applescript
|
logger's warn("Couldn't find the Zoom Meeting window")
|
zoom-actions.applescript
|
end raiseHand
|
zoom-actions.applescript
|
on lowerHand()
|
zoom-actions.applescript
|
logger's warn("Your virtual hand is not currently raised")
|
zoom-actions.applescript
|
end lowerHand
|
zoom-actions.applescript
|
on startSharing given audio:theAudio as boolean
|
zoom-actions.applescript
|
set soundRequested to false
|
zoom-actions.applescript
|
theAudio
|
zoom-actions.applescript
|
set soundRequested to theAudio
|
zoom-actions.applescript
|
if exists (window SHARING_WIN_NAME) then
|
zoom-actions.applescript
|
logger's debug("Already sharing...")
|
zoom-actions.applescript
|
set sharingSound to (count of (images of window "zoom share statusbar window" whose help starts with "You are sharing sound")) is not 0
|
zoom-actions.applescript
|
set synched to sharingSound is equal to soundRequested
|
zoom-actions.applescript
|
logger's debug("Synched: " & synched)
|
zoom-actions.applescript
|
if synched then return
|
zoom-actions.applescript
|
my stopSharing()
|
zoom-actions.applescript
|
tell window "Zoom Meeting"
|
zoom-actions.applescript
|
click (first button whose description is "Share Screen")
|
zoom-actions.applescript
|
logger's debug("Waiting for the share screen system dialogue window...")
|
zoom-actions.applescript
|
repeat until window SELECT_SHARE_WIN_NAME exists
|
zoom-actions.applescript
|
set doTurnOn to soundRequested and value of checkbox 1 of window SELECT_SHARE_WIN_NAME is 0
|
zoom-actions.applescript
|
set doTurnOff to soundRequested is false and value of checkbox 1 of window SELECT_SHARE_WIN_NAME is 1
|
zoom-actions.applescript
|
if doTurnOff or doTurnOn then
|
zoom-actions.applescript
|
click (first checkbox of window SELECT_SHARE_WIN_NAME whose description is "Share sound")
|
zoom-actions.applescript
|
tell window SELECT_SHARE_WIN_NAME to click (first button whose description starts with "Share ")
|
zoom-actions.applescript
|
end startSharing
|
zoom-actions.applescript
|
on stopSharing()
|
zoom-actions.applescript
|
if usr's isScreenSharing() is false then
|
zoom-actions.applescript
|
logger's warn("Screen sharing appears to be off already.")
|
zoom-actions.applescript
|
logger's debug("Stopping shared...")
|
zoom-actions.applescript
|
tell application "System Events" to tell process "zoom.us" to tell window "zoom share statusbar window"
|
zoom-actions.applescript
|
click (first button whose description is "Stop Share")
|
zoom-actions.applescript
|
end stopSharing
|
zoom-actions.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.