Search found 3451 matches
- Fri Jul 22, 2022 9:17 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler #13
- Replies: 17
- Views: 49221
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...
- Tue Jul 19, 2022 10:24 pm
- Forum: Technical / Scripting
- Topic: Highlight Conundrum
- Replies: 2
- Views: 3210
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...
- Mon Jul 11, 2022 8:27 pm
- Forum: Technical / Scripting
- Topic: setting the active page on a v12 Dialog PageControl object
- Replies: 5
- Views: 6670
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...
- Mon Jul 11, 2022 3:46 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler #13
- Replies: 17
- Views: 49221
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...
- Fri Jul 08, 2022 6:17 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler #13
- Replies: 17
- Views: 49221
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...
- Fri Jul 08, 2022 2:45 pm
- Forum: Technical / Scripting
- Topic: Always On Top Trick - Hints Hidden
- Replies: 2
- Views: 3120
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...
- 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: 4989
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...
- 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: 4989
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.
You do want the "While" line in hagchr's code to be While>k<24 since you have 24 panels.
- Wed Jul 06, 2022 6:58 pm
- Forum: Technical / Scripting
- Topic: Keeping a Dialog Always On Top - Compiled Script
- Replies: 2
- Views: 3046
- Fri Jul 01, 2022 7:21 pm
- Forum: Technical / Scripting
- Topic: Detect if run as Administrator?
- Replies: 4
- Views: 5658
Re: Detect if run as Administrator?
Good one!
I would add an Else to delete the test.txt file
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>
- Tue Jun 28, 2022 9:22 pm
- Forum: Technical / Scripting
- Topic: BUG: WaitKeyDown
- Replies: 8
- Views: 5179
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...
- Tue Jun 28, 2022 5:29 pm
- Forum: Technical / Scripting
- Topic: BUG: WaitKeyDown
- Replies: 8
- Views: 5179
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
- Tue Jun 28, 2022 12:13 pm
- Forum: Technical / Scripting
- Topic: BUG: WaitKeyDown
- Replies: 8
- Views: 5179
Re: BUG: WaitKeyDown
Sounds like your key is sticking down.
You don't mention the results with the other keys.
You don't mention the results with the other keys.
- Thu Jun 02, 2022 5:28 pm
- Forum: Scripts and Tips
- Topic: How to "Wait" in Millisecond intervals
- Replies: 1
- Views: 17811
Re: How to "Wait" in Millisecond intervals
Posted this info 2 years ago and its had, at this moment, 7580 views. Today I discovered a mistake. 7575 of those viewers think I'm an idiot. (I'm guessing 5 viewers got here by mistake and didn't read it.) If you run the posted code there's a chance you'll see what I said you'd see. There's also a ...
- Wed Jun 01, 2022 3:17 pm
- Forum: Technical / Scripting
- Topic: Msced cannot see program running in compatability mode
- Replies: 7
- Views: 4722
Re: Msced cannot see program running in compatability mode
Dave, I understand your confusion. I'm still perplexed. In my world I can now get some updates silently and not know they have occurred so I can't tell you that no updates happened. What I can state is that I've had executables that had been humming along nicely for years and suddenly stopped workin...