Search found 536 matches
The Timer function is the way to go. Timer>result Returns the number of milliseconds that have elapsed since the script was started. Example: Timer>startTime .. .. do something here .. Timer>endTime Let>elapsed_seconds={(%endTime%-%startTime%)/1000} MessageModal>Seconds elapsed: %elapsed_seconds% I'...
- Mon Nov 04, 2013 12:40 pm
- Forum: Beginners
- Topic: Get/Set Properties in Dialog Panels
- Replies: 5
- Views: 7476
- Sat Oct 19, 2013 4:52 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 5
- Replies: 15
- Views: 18824
- Mon Oct 14, 2013 2:04 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 4
- Replies: 16
- Views: 19740
- Mon Oct 14, 2013 2:03 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 5
- Replies: 15
- Views: 18824
Here is my method. Edited: Shortened script from 15 to 13 lines. IfWindowOpen>~!My App Is Running!~ CloseWindow>~!My App Is Running!~ Endif Dialog>Dialog100 Caption=~!My App Is Running!~ EndDialog>Dialog100 AddDialogHandler>Dialog100,,OnClose,ExitScript Label>ActionLoop Wait>0.1 Goto>ActionLoop SRT>...
- Fri Oct 11, 2013 3:46 pm
- Forum: Technical / Scripting
- Topic: Dialog Image
- Replies: 7
- Views: 5807
Re: Dialog Image
You can also use LabelToVar Dialog>Dialog1 object Dialog1: TForm Left = 368 Top = 120 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 126 ClientWidth = 431 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name =...
- Tue Oct 08, 2013 3:07 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 4
- Replies: 16
- Views: 19740
The solution was in front of me all this time. :oops: Here you go. Master Script Dialog>Dialog1 object Dialog1: TForm Left = 247 Top = 96 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'Puzzler Master Script' ClientHeight = 26 ClientWidth = 302 Color = clBtnFace Font.Charset = DEFAULT_CHA...
- Mon Oct 07, 2013 3:18 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 4
- Replies: 16
- Views: 19740
I can't come up with a way to dynamically update a Label from another script using the Macro command...because the TLabel is not an object like the edit and memo boxes. I could have each script to be executed create a dialog with a label and embed it in to the master scripts dialog but that's an ugl...
- Sun Oct 06, 2013 2:50 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 4
- Replies: 16
- Views: 19740
This one will only display one message at a time. Master Script Dialog>Dialog1 object Dialog1: TForm Left = 247 Top = 96 HelpContext = 5000 BorderIcons = [biSystemMenu, biMinimize, biMaximize] Caption = 'Puzzler Master Script' ClientHeight = 38 ClientWidth = 302 Color = clBtnFace Font.Charset = DEFA...
- Sun Oct 06, 2013 1:53 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 4
- Replies: 16
- Views: 19740
That said. I think there are better methods than include>. Include> has several problems. I have a dozen scripts in my master script. I would have to make sure I did not reuse any variables, subroutine names, label names, etc. Makes sense. Here are 2 solutions (With and without time stamp) using th...
- Sat Oct 05, 2013 2:15 pm
- Forum: The Water Cooler
- Topic: The Unofficial Macro Scheduler Puzzler of the Week 4
- Replies: 16
- Views: 19740
- Can't write anything to a file. - Can't use the clipboard. Is the registry an option? Why not use Include instead of Macro ? I would do the following if Include is an option. Master Script: Dialog>Dialog1 object Dialog1: TForm Left = 247 Top = 96 Width = 350 Height = 434 HelpContext = 5000 AutoSc...
- Thu Sep 19, 2013 11:54 pm
- Forum: Scripts and Tips
- Topic: How to execute a macro at Windows startup
- Replies: 4
- Views: 12205
Thanks, I hope some will find this useful.
I just posted an example to run a compiled script (exe) at Windows Startup without adding a shortcut to the exe to the startup folder, using the registry.
http://www.mjtnet.com/forum/post35450.html#35450
I just posted an example to run a compiled script (exe) at Windows Startup without adding a shortcut to the exe to the startup folder, using the registry.
http://www.mjtnet.com/forum/post35450.html#35450
- Thu Sep 19, 2013 11:50 pm
- Forum: Scripts and Tips
- Topic: How to run a compiled script at Windows Startup
- Replies: 0
- Views: 9563
How to run a compiled script at Windows Startup
This example will run a compiled script at Windows Startup without moving a shortcut to the exe to the startup folder by adding a registry entry. It can be removed by deleting the registry entry. //This will run an exe at windows startup by adding a registry entry Let>ExeName=My App Let>PathToExe=C:...
- Tue Sep 17, 2013 2:41 pm
- Forum: General Discussion
- Topic: Need to convert bat script to Macroscheduler. Help needed
- Replies: 5
- Views: 8564
The problem was a simple typo. GetDialogProperty>Dialog1,Edit1, test ,un should be GetDialogProperty>Dialog1,Edit1, text, un SRT>Process GetDialogProperty>Dialog1,Edit1,text,un GetDialogProperty>Dialog1,Edit2,text,pw LabelToVar>BatchFile,vData WriteLn>%temp_dir%SomeWeirdName.bat,wres,vData Let>RP_Wa...
- Sun Sep 15, 2013 10:33 pm
- Forum: Technical / Scripting
- Topic: Mousemove and GetCursorPos
- Replies: 6
- Views: 6894
Are you trying to move your cursor past your screen resolution? Because that's not possible.
Try this example:
Try this example:
Code: Select all
GetScreenRes>xWidth,xHeight
MouseMove>500,400
GetCursorPos>X,Y,cType
MDL>Screen Resolution: %xWidth%,%xHeight%%CRLF%Cursor Position: %X%,%Y%%CRLF%Cursor Type: %cType%