
u/Zardotab

🟠 Mitch is wearing out the orange light
(Based on Star Trek "incapacitated Captain Pike" meme)
The song "Yankee Doodle" was written about Elon Musk
reddit.com🐢 It's bubbly turtles all the way down
(Humor based on highly speculative rumors only)
Having variable scoping problems using functions
I'm trying to make a pop-up menu that calls various functions to do stuff, but seem to be having variable scoping problems. The command "MyMenu.Hide()" in the first function generates the error: "Global variable has not been assigned a value". Adding "global MyMenu" before it didn't help. Thanks in advance.
#Requires AutoHotkey v2.0
#SingleInstance Force
; Example showing a 3-button menu.
; Press Windows Key + "/" to activate menu. Pound-sign means Windows-key.
#/:: {
MyMenu := Gui(, "Keystroke Menu")
MyMenu.Opt("+AlwaysOnTop") ; Keeps menu visible
; Add buttons to the menu
MyMenu.Add("Button", "w180", "Send Email Sign-off").OnEvent("Click", SendSignOff)
MyMenu.Add("Button", "w180", "Send Date & Time").OnEvent("Click", SendDateTime)
MyMenu.Add("Button", "w180", "Send Select All & Copy").OnEvent("Click", SendCopyAll)
MyMenu.Show()
}
; Function to hide menu
HideMenu() {
global MyMenu ; added, but didn't help
MyMenu.Hide() ; PROBLEM LINE
Sleep(100) ; Wait for focus to return to document
}
; Function for Button 1
SendSignOff(GuiCtrlObj, Info) {
HideMenu() ; Hide menu first
SendInput("Best regards,{Enter}John Doe")
}
; Functions for Button 2 & 3 not shown
Can Copilot replace scaffolding? An architect claimed such, but I'm a bit skeptical
Does anyone have direct experience using Copilot or Copilot-Pro to replace scaffolding tasks? If so, was it successful? What tier of Copilot did you use? How do you catch tricky bot hallucinations? (Also posted in DotNet sub-reddit)
Can Copilot replace scaffolding? An architect claimed such, but I'm skeptical
Does anyone have direct experience using Copilot to replace scaffolding tasks? If so, was it successful? What tier of Copilot did you use? How do you catch tricky bot hallucinations?
Loophole: Red-state "Ten Commandments" laws forgot to specify which religion's commandments
reddit.comHow to burst the AI bubble: Strike at its roots
arstechnica.comIs there a fix or work-around to the "return to root folder" glitch?
I'm still having this problem. When I click on an image to view it, then close the viewer, it takes me back to the root of the "shared" folders instead of the folder with the image. The link is from a question that's 6 years old, and is in archive (read-only) mode now. I'm wondering if anyone has a new tip. I haven't tested on all image types, but it fails on PNG files at least. Thank You!
What are features you've liked about non-SQL query languages?
For those who dabbled in query languages other than SQL, what are features you liked that SQL lacks, and why did you like them? Could these features be added to SQL, or is it just a different philosophy? This question is sparked by this post about the longevity and durability of SQL as a standard, and the pondering over whether SQL can be unseated or side-seated by something notably better.
Possible languages to consider include but are not limited to: Tutorial-D variants such as Rel, QUEL (Ingres), SMEQL, Prolog, Datalog, and APL's lineage/variants. Experimental languages are acceptable if the concepts are made clear. You can include features of NoSql query languages if they are somehow applicable to relational databases. Do note relational tables can represent graphs, so you can throw in graph-oriented query features if you want. (Some commands may assume certain table structures are fed to them).