Search found 1009 matches

by Grovkillen
Wed Mar 27, 2024 9:48 am
Forum: Enhancement Suggestions
Topic: Minimizing label comment turns into /* .. */
Replies: 1
Views: 34

Minimizing label comment turns into /* .. */

Minimizing label comment turns into /* .. */ , would be great if those label comments instead turned into: /* name_of_label */ So this: /* body_blank_main_html: <style>body{background-color:%HTML_COLOR_main%;}</style><body></body> */ becomes: /* body_blank_main_html */ Same idea as minimizing the SR...
by Grovkillen
Wed Mar 27, 2024 9:03 am
Forum: Technical / Scripting
Topic: CSVFileToArray combined with Separate delays DelArray
Replies: 4
Views: 132

Re: CSVFileToArray combined with Separate delays DelArray

Here's a proof of the problem you're facing: Let>k=0 Repeat>k Let>LIST_FOR_MDL= Let>k=k+1 LabelToVar>unsorted_list_%k%,TEMP_list Separate>TEMP_list,CRLF,TEMP_array ArraySort>TEMP_array Let>r=0 Repeat>r Let>r=r+1 Let>TEMP_row=TEMP_array_%r% ConCat>LIST_FOR_MDL,%CRLF%%TEMP_row% Until>r=TEMP_array_coun...
by Grovkillen
Tue Mar 26, 2024 6:29 am
Forum: Enhancement Suggestions
Topic: Right click on LabelToVar menu with "goto.." label
Replies: 0
Views: 31

Right click on LabelToVar menu with "goto.." label

Would be great if we could use the right click just as with the GoSub to jump to the label.
by Grovkillen
Mon Mar 25, 2024 11:10 am
Forum: Beginners
Topic: Empty Windows Recycle Bin
Replies: 3
Views: 79

Re: Empty Windows Recycle Bin

Back at work... here's the command you're looking for:

Code: Select all

Let>RP_WINDOWMODE=0
RunProgram>cmd /c PowerShell -Command " & {Clear-RecycleBin -Force}"
by Grovkillen
Mon Mar 25, 2024 11:05 am
Forum: Technical / Scripting
Topic: CSVFileToArray combined with Separate delays DelArray
Replies: 4
Views: 132

Re: CSVFileToArray combined with Separate delays DelArray

I understand your point, a warning might be a good way of informing this.

In the mean time: loop the array using a sub routine where you set all values to a blank and then make the ..._count variable equal zero. That way you can still use the sort and omit the blank values in the new array.
by Grovkillen
Thu Mar 21, 2024 3:25 pm
Forum: General Discussion
Topic: ONERROR not capturing string error
Replies: 6
Views: 10427

Re: ONERROR not capturing string error

Yes it's working this way, only wondering if it would be possible to capture the error instead of the error dialog which is halting the script. But yeah no deal breaker only for information if you every get round to it. 8)
by Grovkillen
Thu Mar 21, 2024 7:27 am
Forum: General Discussion
Topic: ONERROR not capturing string error
Replies: 6
Views: 10427

Re: ONERROR not capturing string error

FYI I have a script that constantly is processing open windows. If I run this script on login I get a non-captured error in the if statment after the LibFunc commands. My solution is to have a TEMP_check that force the variables to either a 1 or a 0. It's working but it would be great to see if you ...
by Grovkillen
Wed Mar 20, 2024 9:26 pm
Forum: Scripts and Tips
Topic: Only run script when pc is locked (lock screen)
Replies: 2
Views: 1666

Re: Only run script when pc is locked (lock screen)

@Marcus: the GetProcessIDs>LogonUI.exe,PID_array will not return PID_array_count=0 if no processes are found. You might want to add that to the next release. Currently we need to add a Let>PID_array_count=0 before the call just to be sure.
by Grovkillen
Wed Mar 20, 2024 9:22 am
Forum: Scripts and Tips
Topic: Change cursor of current pointer
Replies: 0
Views: 46

Change cursor of current pointer

USE WITH CARE, it will apply to whatever cursor handle you have active when you start the script! A restart will always fix any problem with the wrong cursor being used. Or just revert to the default cursor theme (run: control /name Microsoft.Mouse ) This old post inspired me: https://www.mjtnet.co...
by Grovkillen
Tue Mar 19, 2024 12:06 pm
Forum: Technical / Scripting
Topic: CSVFileToArray combined with Separate delays DelArray
Replies: 4
Views: 132

Re: CSVFileToArray combined with Separate delays DelArray

I suggest you don't use the delete array command and instead just make the ".._count" variable = zero.

Code: Select all

Let>outputlines_count=0
by Grovkillen
Thu Mar 14, 2024 12:57 pm
Forum: General Discussion
Topic: Scroll to Precise Window Location
Replies: 7
Views: 13407

Re: Scroll to Precise Window Location

Ok, I found out how to use the user32.dll call. It's working but not ideal. Run>notepad WaitWindowChanged>5 Let>WIN_USEHANDLE=1 GetActiveWindow>TEMP_handle,,,, GetWindowChildList>TEMP_handle,TEMP_children Let>k=0 Repeat>k Let>k=k+1 Press Enter Until>k=100 //my TEMP_children is empty, if not you coul...
by Grovkillen
Thu Mar 14, 2024 10:38 am
Forum: General Discussion
Topic: Scroll to Precise Window Location
Replies: 7
Views: 13407

Re: Scroll to Precise Window Location

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getscrollpos https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getscrollrange https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getscrollinfo https://learn.microsoft.com/en-us/windows/win...
by Grovkillen
Thu Mar 14, 2024 10:29 am
Forum: General Discussion
Topic: Scroll to Precise Window Location
Replies: 7
Views: 13407

Re: Scroll to Precise Window Location

If I right click on a standard Windows scroll bar I get a popup menu. Is it possible to add some functionality to MS to get the position or set the position using that? I'm just adding this to the discussion, maybe it will open up a new approach for someone else.
cron
Sign up to our newsletter for free automation tips, tricks & discounts