Search found 1024 matches
- Thu Sep 14, 2023 7:25 am
- Forum: Enhancement Suggestions
- Topic: ISO 8601 timestamp
- Replies: 4
- Views: 36115
Re: ISO 8601 timestamp
For reference, if done in Python: //format=1 PYExec>import datetime%CRLF%print(datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ")),ISO_8601_format_1 //format=2 PYExec>import datetime%CRLF%print(datetime.datetime.now().astimezone().replace(microsecond=0).isoformat()),ISO_8601_format_2 //format...
- Thu Sep 14, 2023 6:12 am
- Forum: Enhancement Suggestions
- Topic: ISO 8601 timestamp
- Replies: 4
- Views: 36115
ISO 8601 timestamp
GetTime and GetDate will return local format of date/time. When dealing with databases it's the ISO 8601 format that is used. I would like to have a GetIsoTimestamp command for this. UTC is always used except in format=2 where the offset is part of the output. Example output(s): Format=1 standard 20...
- Sat Sep 02, 2023 10:03 am
- Forum: General Discussion
- Topic: Will Win App Driver support be available in the future?
- Replies: 1
- Views: 20612
Re: Will Win App Driver support be available in the future?
Wow, sounds like a great tool. I'd like to see it being used.
- Fri Sep 01, 2023 3:51 pm
- Forum: Beginners
- Topic: If function understanding
- Replies: 8
- Views: 22596
Re: If function understanding
And this is also valid:
Code: Select all
ifnot>%variable1%=%variable2%
exit
endif
- Thu Aug 31, 2023 5:15 pm
- Forum: Technical / Scripting
- Topic: JSON and UTF8 problem
- Replies: 4
- Views: 24251
- Thu Aug 24, 2023 10:33 am
- Forum: Technical / Scripting
- Topic: Variables when calling SRT from OnEvent
- Replies: 3
- Views: 8630
Re: Variables when calling SRT from OnEvent
I imagine the KEY_UP event could be used to only capture one key at the time: //trigger the up OnEvent>KEY_DOWN,VK72,0,SET_THE_VARIABLE_TO_UP //trigger all the time but the variable check makes it only trigger once per down OnEvent>KEY_UP,VK72,0,TRIGGER_AFTER_KEY_IS_RELEASED //ESC=close app OnEvent>...
- Wed Aug 23, 2023 7:33 am
- Forum: Technical / Scripting
- Topic: select todays dated image
- Replies: 3
- Views: 6091
Re: select todays dated image
If you don't want to trust the local date format I would use:
Code: Select all
Year>TEMP_YYYY
Month>TEMP_MM
Day>TEMP_DD
Let>THE_DATE=%TEMP_YYYY%%TEMP_MM%%TEMP_DD%
- Wed Aug 23, 2023 6:53 am
- Forum: Technical / Scripting
- Topic: Getting mouse to click random pixels within bounds?
- Replies: 1
- Views: 5289
Re: Getting mouse to click random pixels within bounds?
You need to use {} when using more than one arithmetic operator in a let command.
Code: Select all
Let>SUM=1+1
//SUM=2
Let>SUM=1+1+1
//SUM=1+1+1
Let>SUM={1+1+1}
//SUM=3
- Tue Aug 22, 2023 5:37 pm
- Forum: Technical / Scripting
- Topic: how to boilerplate macros
- Replies: 5
- Views: 7280
Re: how to boilerplate macros
Ok, this isn't working because of the bug with passing variables from OnEvent but I think this is kinda how mhcha want to roll. I could see a use for this type of script. I would imagine you may want to flush the "buffer string" after x amount of seconds. Also you would probably want to add some mor...
- Tue Aug 22, 2023 5:21 pm
- Forum: Technical / Scripting
- Topic: Variables when calling SRT from OnEvent
- Replies: 3
- Views: 8630
Re: Variables when calling SRT from OnEvent
I found this bug 2021 viewtopic.php?f=2&t=11062
- Tue Aug 22, 2023 5:19 pm
- Forum: Technical / Scripting
- Topic: Variables when calling SRT from OnEvent
- Replies: 3
- Views: 8630
Variables when calling SRT from OnEvent
Please test this and see if the same thing happens to you. The script will not go back to the loop once you have called the TEST_SRT using the "h" key which is calling the sub routine together with a variable. //this one will not jump back to the loop after SRT is done, it will jump to the beginning...
- Fri Aug 18, 2023 10:52 am
- Forum: Technical / Scripting
- Topic: Can HTMLViewer dialog component display a clickable link?
- Replies: 13
- Views: 13331
Re: Can HTMLViewer dialog component display a clickable link?
The HTMLViewer component has always worked this way. Here's how to make a clickable list using links: Dialog>Dialog1 object Dialog1: TForm ClientWidth = 250 ClientHeight = 120 object MSHTMLViewer1: tMSHTMLViewer Left = 0 Top = 0 Width = 250 Height = 120 end end EndDialog>Dialog1 LabelToVar>form_html...
- Sun Aug 13, 2023 6:52 pm
- Forum: Technical / Scripting
- Topic: how to conditionally modify a programs hotkey behavior
- Replies: 8
- Views: 7480
Re: how to conditionally modify a programs hotkey behavior
No the label is put wherever you need it to be but you need to make sure the event is set before the loop starts. Or else it will never be initiated.
- Sun Aug 13, 2023 9:32 am
- Forum: Technical / Scripting
- Topic: how to conditionally modify a programs hotkey behavior
- Replies: 8
- Views: 7480
Re: how to conditionally modify a programs hotkey behavior
OnEvent>KEY_DOWN,VK113,0,ClickOK
- Fri Aug 11, 2023 7:06 pm
- Forum: Technical / Scripting
- Topic: SQL query command crash the script
- Replies: 8
- Views: 11041
Re: SQL query command crash the script
Yes it would be great if the crash was prevented.