Search found 3454 matches

by JRL
Thu Sep 01, 2022 11:35 am
Forum: Scripts and Tips
Topic: Command Prompt Cut and Paste
Replies: 5
Views: 11181

Re: Command Prompt Cut and Paste

Yes, I know about the setting. I have 4 Win 10 computers at my desk at work. All at the same update level, none have that checkbox checked. three of them can cut and paste, one cannot.

Is the checkbox checked on your's?
by JRL
Wed Aug 31, 2022 8:04 pm
Forum: Scripts and Tips
Topic: Command Prompt Cut and Paste
Replies: 5
Views: 11181

Re: Command Prompt Cut and Paste

Apparently there is more to it than the OS version. I'm currently using a different computer that I thought was fully updated and is in fact the same Win 10 version = 21H2 build 19044.1889 when I view the data under "About Your PC". However, I can't cut / paste using "Ctrl + c / v" from a Command Pr...
by JRL
Mon Aug 29, 2022 6:46 pm
Forum: Scripts and Tips
Topic: Command Prompt Cut and Paste
Replies: 5
Views: 11181

Command Prompt Cut and Paste

Not sure when this newfangled Microsoft magic started. I'm forever highlighting text in a Command Prompt window and instead of pressing "Enter" to place it in the clipboard, I accidentally press "Ctrl + c". This of course fails miserably... until today. Today, quite by accident, I discovered that Co...
by JRL
Fri Jul 22, 2022 9:17 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #13
Replies: 17
Views: 49483

Re: The Unofficial Macro Scheduler Puzzler #13

This is working well for me. Not perfect but consistently hitting upper 90%. This is actually two scripts. Script1 writes Script2 then runs it once per minute. Script2 is short and has one tight loop waiting for minute two to become different than minute one. when that is detected, DateStamp> is act...
by JRL
Tue Jul 19, 2022 10:24 pm
Forum: Technical / Scripting
Topic: Highlight Conundrum
Replies: 2
Views: 3231

Re: Highlight Conundrum

Try this and let us know. Create this array somewhere before the dialog opens ArrayDim>buttcol,112 Replace your subroutines with these SRT>OHighLight Let>hbutt=%OHighLight_Var_1% Let>value=buttcol_%hbutt% If>%value%>/ Else GetDialogProperty>Dialog1,Panel%hbutt%,Color,vButtcol Let>buttcol_%hbutt%=vBu...
by JRL
Mon Jul 11, 2022 8:27 pm
Forum: Technical / Scripting
Topic: setting the active page on a v12 Dialog PageControl object
Replies: 5
Views: 6708

Re: setting the active page on a v12 Dialog PageControl object

Hi Phil, Not sure what your expectations are. This seems to work to set the opening tab to tab2 in the following example. SetDialogProperty>Dialog1,msTabBook1,TabIndex,1 Here's a full example. Dialog>Dialog1 object Dialog1: TForm Left = 661 Top = 207 HelpContext = 5000 BorderIcons = [biSystemMenu] C...
by JRL
Mon Jul 11, 2022 3:46 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #13
Replies: 17
Views: 49483

Re: The Unofficial Macro Scheduler Puzzler #13

So I ran the code above over the weekend and at 8:15 pm on Sunday the timing went bonkers as I described before. Still have no idea why that happens. Took the results and threw out those roughly 800 consecutive lines (as if I'd stopped the process at 8:14 pm) and then ran the analysis tool on the re...
by JRL
Fri Jul 08, 2022 6:17 pm
Forum: The Water Cooler
Topic: The Unofficial Macro Scheduler Puzzler #13
Replies: 17
Views: 49483

Re: The Unofficial Macro Scheduler Puzzler #13

Here's another attempt. This is running well for me (qualifiers below) but still not perfect and has a very strange result in the evening. I've been testing for 4 days and I'm consistently hitting the upper 90s% for a few hundred cycles even while using the computer. This script is not using a "time...
by JRL
Fri Jul 08, 2022 2:45 pm
Forum: Technical / Scripting
Topic: Always On Top Trick - Hints Hidden
Replies: 2
Views: 3151

Re: Always On Top Trick - Hints Hidden

I would try creating a flag variable that controls whether or not the dialog gets moved. Something Like: (This has not been tested. Demonstration only.) //beginning of script Let>vMoveDialogFlag=1 //lines of code If>MoveDialogFlag=1 GetWindowPos>MyDialog,DiaX,DiaY MoveWindow>MyDialog,DiaX,DiaY EndIf...
by JRL
Thu Jul 07, 2022 5:38 pm
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5026

Re: Any way to get which item has been clicked in a dialog?

The main issue with what you posted is that most functions don't allow you set sequential values in a loop. If you need to do that add an extra line and use Let>. ReadIniFile>%inifile%,KEYS,key%LOOPVAR%txt,key%LOOPVAR%text Becomes ReadIniFile>%inifile%,KEYS,key%LOOPVAR%txt,value Let>key%LOOPVAR%text...
by JRL
Wed Jul 06, 2022 7:14 pm
Forum: Technical / Scripting
Topic: Any way to get which item has been clicked in a dialog?
Replies: 8
Views: 5026

Re: Any way to get which item has been clicked in a dialog?

Exactly what I would have suggested. There's no reason I can think of to remove the extra dialog handlers, they're created in a loop so their creation only takes a few lines.

You do want the "While" line in hagchr's code to be While>k<24 since you have 24 panels.
by JRL
Fri Jul 01, 2022 7:21 pm
Forum: Technical / Scripting
Topic: Detect if run as Administrator?
Replies: 4
Views: 5696

Re: Detect if run as Administrator?

Good one!
I would add an Else to delete the test.txt file

Code: Select all

Let>nWLNRes=
WriteLn>C:\text.txt,nWLNRes,
IFNOT>nWLNRes=0
  MessageModal>!!!Please Run as Admin!!!
Else
  MDL>Yippie !!!
  DeleteFile>C:\text.txt
ENDIF
Exit>
by JRL
Tue Jun 28, 2022 9:22 pm
Forum: Technical / Scripting
Topic: BUG: WaitKeyDown
Replies: 8
Views: 5237

Re: BUG: WaitKeyDown

If you are running this script at the same time that you are running a game, the "bug" is the game. Games do things to control your computer and peripherals that only the game programmers can explain and they of course will not. Reboot your computer, do not start any games, run the simple code you f...
by JRL
Tue Jun 28, 2022 5:29 pm
Forum: Technical / Scripting
Topic: BUG: WaitKeyDown
Replies: 8
Views: 5237

Re: BUG: WaitKeyDown

Out of curiosity, Does this script wait until you press the KeyPad's minus key? Or does it run straight to "Done"? OnEvent>Key_Down,VK109,0,srtVK109 Let>VK109_wait_Flag=1 Label>VK109IdleLoop If>VK109_wait_Flag=1 Goto>VK109IdleLoop EndIf MDL>Done SRT>srtVK109 Let>VK109_wait_Flag=0 END>srtVK109
Sign up to our newsletter for free automation tips, tricks & discounts