Need Help To Make some simple Macro Scrpt >.<
Moderators: Dorian (MJT support), JRL
Need Help To Make some simple Macro Scrpt >.<
i just want to make this simple program that :
1. will ask for time for a key to be pressed
2. and then ask again for a time for a key to be pressed
3. and then again and again ^_^ just like that
just press,not to hold a key ...
ty in advanced.
1. will ask for time for a key to be pressed
2. and then ask again for a time for a key to be pressed
3. and then again and again ^_^ just like that
just press,not to hold a key ...
ty in advanced.
Not sure I follow
Are you wanting a popup window to ask you for a time?
OR
Are you wanting a script that presses a key waits for a given amount of time then presses the net key?
OR
Are you wanting a script that presses a key waits for a given amount of time then presses the net key?
Aaron
heres what you need to do
Get the system time
If>time=TimeToPushKey
Bla Bla Bla
Endif
Use the dialog Builder, to call your input prompt.
Hope this helps
If>time=TimeToPushKey
Bla Bla Bla
Endif
Use the dialog Builder, to call your input prompt.
Hope this helps
Aaron
Here is a simple way to do it without a fancy dialog.
I hope this was helpful,
Rain
Code: Select all
Label>Start
// Get current system time to display in input dialog as an example
GetTime>TimeToDisplay
// Disable input file browse
Let>INPUT_BROWSE=0
// Open input dialog
Input>InputTime,Enter the time (HH:MM:SS AM/PM) when to press the T key.,%TimeToDisplay%
// Exit script if close or cancel button clicked
if>InputTime=,Exit
Label>WaitLoop
Wait>0.1
// Get current system time
GetTime>CurrentTime
// Compare current system with input time
// If current system time equals the time entered press the T key
IF>CurrentTime=%InputTime%,Press_T
Goto>WaitLoop
label>Press_T
// Notepad window will open to illustrate that the T key was pressed/sent.
Run Program>Notepad
WaitWindowOpen>Notepad*
SetFocus>Notepad*
// Pressing T key
Send Character/Text>T
// Start over
Goto>Start
Label>Exit
Rain
thanks for your help rain
can u help me again with this one..
its has the similarity with the 1st one
a pop up window will ask again the time, but not in the format of HH/MM/SS , it will just ask a time by a format of seconds only..for a key to be simulteanously be pressed..then when the time(seconds) inputed
become 0, the 2nd pop up window with the same question will appear..
but can u help me do that it will loop to the part of the program that the key is being pressed simultaenously not to the part the pop up window,
sorry for my bad english..i cant explain it well grr .. its just after the 2nd key is done to be pressed, it will loop again to the 1st key that is assign to be pressed then the second key again... but skipping the part of the pop up window...
thank you hope you get my explanation..
hope u could help me the same way rain did..^_^
a complete program.. not just a part of it.. tnx tnx
can u help me again with this one..
its has the similarity with the 1st one
a pop up window will ask again the time, but not in the format of HH/MM/SS , it will just ask a time by a format of seconds only..for a key to be simulteanously be pressed..then when the time(seconds) inputed
become 0, the 2nd pop up window with the same question will appear..
but can u help me do that it will loop to the part of the program that the key is being pressed simultaenously not to the part the pop up window,
sorry for my bad english..i cant explain it well grr .. its just after the 2nd key is done to be pressed, it will loop again to the 1st key that is assign to be pressed then the second key again... but skipping the part of the pop up window...
thank you hope you get my explanation..
hope u could help me the same way rain did..^_^
a complete program.. not just a part of it.. tnx tnx
Here you go.
Rain
Code: Select all
Label>Start
// Disable input file browse
Let>INPUT_BROWSE=0
// Open input dialog
Input>InputTime,Enter the time in seconds when to press the T key.,10
// Exit script if close or cancel button clicked
if>InputTime=,Exit
// Set counter
let>Sec_Counter=0
Label>WaitLoop
Wait>1
// Add 1 to Sec_Counter ever second
Add>Sec_Counter,1
// If Sec_Counter equals the number seconds entered press the T key
IF>Sec_Counter=%InputTime%,Press_T
Goto>WaitLoop
label>Press_T
// Notepad window will open to illustrate that the T key was pressed/sent.
Run Program>Notepad
WaitWindowOpen>Notepad*
SetFocus>Notepad*
// Pressing T key
Send Character/Text>T
// Start over
Goto>Start
Label>Exit