Skip to content

Instantly share code, notes, and snippets.

@Kambaa
Last active October 24, 2025 20:26
Show Gist options
  • Save Kambaa/7317871716163764d27c59005c877ad5 to your computer and use it in GitHub Desktop.
Save Kambaa/7317871716163764d27c59005c877ad5 to your computer and use it in GitHub Desktop.
My StrokesPlus Settings

My Strokes Plus Settings:

I have been using Strokes Plus for years, and i tried and not liked the new one, so i've studied and configured old Strokes Plus to my liking.

In these files, you'll see my most used configurations.

Here's my screenshot of these codes used in the old StrokesPlus:

resim
acSendKeys("mypassword")
process_name=acGetExecutableName(acGetForegroundWindow())
local ignoredSet = {
["TurboLaunch.exe"] = true,
["explorer.exe"] = true,
["StrokesPlus.exe"] = true,
["SomeOtherProcess.exe"] = true
}
if not ignoredSet[tostring(process_name)] then
-- acMessageBox(tostring(process_name), nil)
acMaximizeOrRestoreWindow(acGetForegroundWindow(), nil, nil)
acDisplayText("Maximize/Restore "..tostring(process_name).. " Window","Helvetica",35,78, 252, 3,600,20,1300)
end
process_name=acGetExecutableName(acGetForegroundWindow())
if process_name ~= "TurboLaunch.exe" then
current_window=acGetForegroundWindow()
current_window_x=acGetWindowLeft(acGetForegroundWindow(), gsx, gsy)
current_window_y=acGetWindowTop(acGetForegroundWindow(), gsx, gsy)
-- acMessageBox("X: "..tostring(current_window_x).." Y: ".. tostring(current_window_y), "Current Window X Y Coords Is:", nil)
monitor_on_current_window=acGetMonitorFromPoint(current_window_x, current_window_y)
monitor_name=acGetMonitorName(monitor_on_current_window)
-- acMessageBox(monitor_name, "Current Monitor Name Is:", nil)
-- according to the description in acSendWindowToMonitorByName we need to escape the \ chars
left_monitor_name="\\\\.\\DISPLAY2"
right_monitor_name="\\\\.\\DISPLAY1"
monitor_name_to_send = left_monitor_name
monitor_handle_to_send=acGetMonitorFromName(monitor_name_to_send)
acDisplayText("Sending "..tostring(process_name).." Window To:\n"..tostring(monitor_name_to_send),"Helvetica",35,78, 252, 3,2000,20,1300)
if monitor_name ~= left_monitor_name then
acSendWindowToMonitorByName(current_window, nil, nil, monitor_name_to_send)
end
monitor_left=acGetMonitorLeft(monitor_handle_to_send, 1)
monitor_top=acGetMonitorTop(monitor_handle_to_send, 1)
monitor_right=acGetMonitorRight(monitor_handle_to_send, 1)
monitor_bottom=acGetMonitorBottom(monitor_handle_to_send, 1)
-- acMessageBox("Left:"..tostring(monitor_left).." Top:"..tostring(monitor_top).." Right:"..tostring(monitor_right).." Bottom:"..tostring(monitor_bottom), "Monitor Area Coords", nil)
current_window_size_x=math.abs(acGetWindowLeft(acGetForegroundWindow(), nil, nil) - acGetWindowRight(acGetForegroundWindow(), nil, nil))
current_window_size_y=math.abs(acGetWindowBottom(acGetForegroundWindow(), nil, nil) - acGetWindowTop(acGetForegroundWindow(), nil, nil))
monitor_size_x = math.abs(monitor_left-monitor_right)
monitor_size_y = math.abs(monitor_top-monitor_bottom)
local positions = {
["rustdesk.exe"] = 1920 - 690 - 850,
["ApplicationFrameHost.exe"] = monitor_top,
["Teams.exe"] = 1920 - 690 - 350 - 600,
["msedge.exe"] = 1920 - 690 - 350- 60 ,
["thunderbird.exe"] = 1920 - 690 - 350 - 650
}
local heights = {
["ApplicationFrameHost.exe"] = 600
}
local y_pos = positions[process_name] or (1920 - 690 - 350 - 850)
local height=heights[process_name] or 600
acRestoreWindow(acGetForegroundWindow(), nil, nil)
-- move window to the top of the monitor
acMoveWindow(acGetForegroundWindow(), nil, nil, monitor_left, y_pos)
-- set the window size with regarding to monitor size
acSetWindowSize(acGetForegroundWindow(), nil, nil, monitor_size_x, height)
end
process_name=acGetExecutableName(acGetForegroundWindow())
if process_name ~= "TurboLaunch.exe" then
current_window=acGetForegroundWindow()
current_window_x=acGetWindowLeft(acGetForegroundWindow(), gsx, gsy)
current_window_y=acGetWindowTop(acGetForegroundWindow(), gsx, gsy)
monitor_on_current_window=acGetMonitorFromPoint(current_window_x, current_window_y)
monitor_name=acGetMonitorName(monitor_on_current_window)
-- acMessageBox(monitor_name, "Current Monitor Name Is:", nil)
-- according to the description in acSendWindowToMonitorByName we need to escape the \ chars
left_monitor_name="\\\\.\\DISPLAY2"
right_monitor_name="\\\\.\\DISPLAY1"
monitor_name_to_send = right_monitor_name
acDisplayText("Sending "..tostring(process_name).." Window To:\n"..tostring(monitor_name_to_send),"Helvetica",35,78, 252, 3,2000,20,1300)
if monitor_name ~= right_monitor_name then
acSendWindowToMonitorByName(current_window, nil, nil, monitor_name_to_send)
end
acMaximizeOrRestoreWindow(acGetForegroundWindow(), nil, nil)
end
acSendKeys("^j")
acSendKeys("^v")
acSendKeys("^w")
acSendKeys("~")
acSendKeys("{ESC}")
acSendKeys("{LBRACE}")
acSendKeys("{SNAPSHOT}")
acSendKeys("^c")
acSetWindowSize(acGetForegroundWindow(), gsx, gsy, 1920, 1080)
acRunProgram("C:\\Program Files\\Sublime Text\\sublime_text.exe","",0, 1)

Comments are disabled for this gist.