Search found 1023 matches

by Grovkillen
Sat Dec 12, 2020 3:54 pm
Forum: Technical / Scripting
Topic: Long startup .exe
Replies: 9
Views: 4645

Re: Long startup .exe

My experience is the opposite. Compiled macros run faster than from within the editor.
by Grovkillen
Thu Dec 10, 2020 4:17 am
Forum: Technical / Scripting
Topic: Time since last user input
Replies: 5
Views: 8069

Re: Time since last user input

Marcus Tettmar wrote:
Wed Dec 09, 2020 9:15 pm
is Timer no help?

https://www.mjtnet.com/manuals/v15/HTML/timer.html
Not really since I want to halt/idle the script when a user (me) make any interaction with the computer (my server).
by Grovkillen
Thu Dec 10, 2020 4:15 am
Forum: The Water Cooler
Topic: Something wrong with your server?
Replies: 5
Views: 12617

Re: Something wrong with your server?

https://www.mjtnet.com/styles,_colorbox,_colorbox.css+forum,_assets,_css,_font-awesome.min.css,qassets_version==188.pagespeed.cc.TDWAlviI8G.css https://www.mjtnet.com/assets/js/vendor/popper.min.js.map These path's aren't accessible = the forum is not "painted" correctly. Indeed those files don't e...
by Grovkillen
Tue Dec 08, 2020 6:56 pm
Forum: The Water Cooler
Topic: Something wrong with your server?
Replies: 5
Views: 12617

Re: Something wrong with your server?

Yeah I guess Edge had the CSS cached.
by Grovkillen
Tue Dec 08, 2020 3:16 pm
Forum: The Water Cooler
Topic: Something wrong with your server?
Replies: 5
Views: 12617

Something wrong with your server?

https://www.mjtnet.com/styles,_colorbox ... lviI8G.css
https://www.mjtnet.com/assets/js/vendor ... min.js.map

These path's aren't accessible = the forum is not "painted" correctly.
by Grovkillen
Tue Dec 08, 2020 3:12 pm
Forum: Technical / Scripting
Topic: 009E8EBB
Replies: 2
Views: 1470

Re: 009E8EBB

Better still, post your code.
by Grovkillen
Tue Dec 08, 2020 9:15 am
Forum: Technical / Scripting
Topic: Riddle me this.....
Replies: 4
Views: 2424

Re: Riddle me this.....

We need to consult Marcus on how MS is parsing the RegEx internally. I think JRL is close to the truth though. Have you tried "let>PatternA=(\d\d?;?){1%COMMA%3}"? Just as a test...
by Grovkillen
Mon Dec 07, 2020 9:03 am
Forum: Scripts and Tips
Topic: Paring and unpairing Bluetooth devices
Replies: 0
Views: 37186

Paring and unpairing Bluetooth devices

I found this little gem: https://github.com/PolarGoose/BluetoothDevicePairing

It's as easy as:

Code: Select all

BluetoothDevicePairing.exe pair --mac 12:34:56:78:9A:BC
by Grovkillen
Sun Dec 06, 2020 12:23 pm
Forum: Enhancement Suggestions
Topic: Add Version to compiled scripts
Replies: 5
Views: 18309

Re: Add Version to compiled scripts

I have found this exe working for my needs.

Add version to the product version info (cmd):

Code: Select all

stampver.exe -p"1.2.3.4" your_exe_file.exe
Add version to the file version info (cmd):

Code: Select all

stampver.exe -f"1.2.3.4" your_exe_file.exe
by Grovkillen
Fri Dec 04, 2020 7:58 am
Forum: Scripts and Tips
Topic: Make a specified color in a window transparent
Replies: 3
Views: 30649

Re: Make a specified color in a window transparent

A note to self, here's how to hide everything except the actual HTML: Dialog>Dialog1 object Dialog1: TForm BorderStyle = bsNone ClientHeight = 150 ClientWidth = 400 Color = clBtnFace TransparentColor = True TransparentColorValue = clLime object MSHTMLViewer1: tMSHTMLViewer Left = 0 Top = 0 Height = ...
by Grovkillen
Thu Dec 03, 2020 9:53 pm
Forum: Scripts and Tips
Topic: Generate and look at data available through WMI
Replies: 0
Views: 36822

Generate and look at data available through WMI

https://www.microsoft.com/en-us/download/confirmation.aspx?id=8572 The WMI Code Creator tool allows you to generate VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class, or receiving event notifications u...
by Grovkillen
Thu Dec 03, 2020 5:45 pm
Forum: General Discussion
Topic: how can I debug script called by macro>
Replies: 4
Views: 16708

Re: how can I debug script called by macro>

I use include for this reason, the code in the included file will be shown in the editor when you run your code.
by Grovkillen
Thu Dec 03, 2020 10:15 am
Forum: Technical / Scripting
Topic: Rename file
Replies: 4
Views: 2208

Re: Rename file

Well, I asked for rename... here's the rename variant:

Code: Select all

/*
python_code_rename_file:
import os
os.rename(r'%PY_RENAME_FILE_SOURCE%',r'%PY_RENAME_FILE_TARGET%')
*/
LabelToVar>python_code_rename_file,py_rename_file
PyExec>py_rename_file,temp
by Grovkillen
Thu Dec 03, 2020 10:06 am
Forum: Technical / Scripting
Topic: Rename file
Replies: 4
Views: 2208

Re: Rename file

Found a solution. Using Python:

Code: Select all

/*
python_code_copy_file:
import shutil
source = r'%PY_COPY_FILE_SOURCE%'
target = r'%PY_COPY_FILE_TARGET%'
shutil.copyfile(source, target)
*/
LabelToVar>python_code_copy_file,py_copy_file
PyExec>py_copy_file,temp
by Grovkillen
Wed Dec 02, 2020 3:02 pm
Forum: Technical / Scripting
Topic: Time since last user input
Replies: 5
Views: 8069

Re: Time since last user input

I managed to get it working using Python. MS is such a bad*ss tool :) /* python_code: import ctypes, ctypes.wintypes class LASTINPUTINFO(ctypes.Structure): _fields_ = [ ('cbSize', ctypes.wintypes.UINT), ('dwTime', ctypes.wintypes.DWORD), ] PLASTINPUTINFO = ctypes.POINTER(LASTINPUTINFO) liinfo = LAST...
cron
Sign up to our newsletter for free automation tips, tricks & discounts