Search found 3332 matches
- Fri Feb 26, 2021 10:20 pm
- Forum: Scripts and Tips
- Topic: Lock Key Status
- Replies: 0
- Views: 299
Lock Key Status
Yes. Sort of a pun. In any case my keyboard's LEDs have stopped working and I'm tired of not knowing whether my caps lock in on or off. This opens a little dialog that tells you. Left to right is Caps lock, Num Lock and Scroll Lock status. This little script demos a few advanced dialog capabilities....
- Thu Feb 18, 2021 5:14 am
- Forum: Enhancement Suggestions
- Topic: Keyboard commands
- Replies: 4
- Views: 917
Re: Keyboard commands
Grovkillen,
Thank you for the clarification.
Thank you for the clarification.
- Wed Feb 17, 2021 7:23 pm
- Forum: Enhancement Suggestions
- Topic: Keyboard commands
- Replies: 4
- Views: 917
Re: Keyboard commands
CTRL+C = if no selection; copy the row you're on to clipboard CTRL+X = if no selection; cut the row you're on to clipboard CTRL+/ (7) = block comment, if no selection; comment out row I would use these three 100 times a day if they existed. Not sure I understand the first one. Working from home for...
- Fri Jan 08, 2021 6:02 pm
- Forum: Beginners
- Topic: How to handle system errors?
- Replies: 7
- Views: 840
Re: How to handle system errors?
Here's a sample script that implements both of the methods I mentioned might be possible. Oddly the Last_Error_Line variable does not record the correct line number. Instead it records the last line of the OnEvent sampling subroutine Let>Last_Error= Let>Last_Error_Line= Let>vVarMonTest=new DeleteFil...
- Fri Jan 08, 2021 2:00 pm
- Forum: Technical / Scripting
- Topic: How to remove macro scheduler logo and name in input dialogue box
- Replies: 6
- Views: 501
Re: How to remove macro scheduler logo and name in input dialogue box
Here is a custom input box with a little extra. DeleteFile>%temp_Dir%IconProducerScript.scp DeleteFile>%temp_dir%Blank.ico ExportData>WHITE.TXT_DATA,%temp_dir%Blank.ico LabelToVar>IconProducer,vData WriteLn>%temp_Dir%IconProducerScript.scp,wres,vData Wait>0.1 ExecuteFile>%temp_Dir%IconProducerScript...
- Fri Jan 08, 2021 1:32 pm
- Forum: Beginners
- Topic: How to handle system errors?
- Replies: 7
- Views: 840
Re: How to handle system errors?
However, in general do you know any method to capture system errors within MS? There are two variables created after the error is closed (assuming the script continues). Last_Error and Last_Error_Line . The first provides the text of the error that was displayed and the second provides the line num...
- Wed Jan 06, 2021 7:41 pm
- Forum: Technical / Scripting
- Topic: How to remove macro scheduler logo and name in input dialogue box
- Replies: 6
- Views: 501
Re: How to remove macro scheduler logo and name in input dialogue box
Though I agree using a dialog is the way to go, I wanted to point out that it is possible to alter just about any window, including the Input window. Let>INPUT_BROWSE=1 Let>INPUT_BROWSE_FILTER=Excel files (*.xlsx)|*.XLSX DeleteFile>%temp_dir%RenameInput.scp LabelToVar>ProgramToWrite,vData WriteLn>%t...
- Tue Jan 05, 2021 10:43 pm
- Forum: Technical / Scripting
- Topic: Get the parent directory path of the exe file
- Replies: 3
- Views: 528
Re: Get the parent directory path of the exe file
Long story short. The variable Script_Dir will contain the location from which your executable was run.
- Sat Jan 02, 2021 8:22 pm
- Forum: Beginners
- Topic: How to handle system errors?
- Replies: 7
- Views: 840
Re: How to handle system errors?
Me too.Grovkillen wrote:So my take is to always use a watchdog.
- Sat Jan 02, 2021 8:18 pm
- Forum: The Water Cooler
- Topic: Happy 15th forum birthday to JRL
- Replies: 8
- Views: 4793
Re: Happy 15th forum birthday to JRL
We're all still in THE '20s.
Happy new year!
Happy new year!
- Thu Dec 17, 2020 4:32 pm
- Forum: Technical / Scripting
- Topic: Virtual key press, possible?
- Replies: 1
- Views: 307
Re: Virtual key press, possible?
From: https://help.mjtnet.com/article/262-virtual-key-codes
Send>VK179
This works for me on youtubeVK_MEDIA_PLAY_PAUSE (179): Windows 2000/XP: Play/Pause Media key
Send>VK179
- Thu Dec 17, 2020 3:38 pm
- Forum: Technical / Scripting
- Topic: GetWindowHandle, nothing found doesn't set the result variable to 0
- Replies: 1
- Views: 262
Re: GetWindowHandle, nothing found doesn't set the result variable to 0
Well... apparently if no window is found the result is not set to anything. Since window handles are always a number, rather than presetting the result value to "0" I'd set it to a text value perhaps "BLANK" or even "ZERO". After the GetWindowHandle> function if the result is still set to the preset...
- Fri Dec 11, 2020 9:06 pm
- Forum: Beginners
- Topic: Kill any active process
- Replies: 2
- Views: 306
Re: Kill any active process
You want these three functions.
GetActiveWindow>
GetWindowProcess>
KillProcess>
Or if closing the window closes the process you could also just write a script that presses ALT + F4. Or manually press ALT + F4 rather than bothering with a script.
Press ALT
Press f4
Release ALT
GetActiveWindow>
GetWindowProcess>
KillProcess>
Or if closing the window closes the process you could also just write a script that presses ALT + F4. Or manually press ALT + F4 rather than bothering with a script.
Press ALT
Press f4
Release ALT
- Wed Dec 09, 2020 5:37 pm
- Forum: The Water Cooler
- Topic: Best Way to Run a Macro from a Dialog?
- Replies: 1
- Views: 204
Re: Best Way to Run a Macro from a Dialog?
Some will say to use the macro or the include functions or even to place the script in a subroutine within your dialog script. My choice would be to run the script using the RunProgram function. SRT>DoVPNRCx //So the script doesn't stop and wait for Login to VPN to finish. Let>RP_Wait=0 //So that yo...
- Tue Dec 08, 2020 5:21 pm
- Forum: The Water Cooler
- Topic: Something wrong with your server?
- Replies: 5
- Views: 718
Re: Something wrong with your server?
Hmmm. I noticed yesterday that the editor formatting icons were missing, just a row of rectangles. But I was using Chrome so I checked Edge and all looked correct with Edge so I assumed there was an issue with my Chrome. Today both browsers are broken and the links you are pointing to are also inacc...