Tinkerz
Active Members-
Posts
22 -
Joined
-
Last visited
Tinkerz's Achievements
Seeker (1/7)
0
Reputation
-
User account control blocking run command
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
I dont think I can say under forum rules -
Run('C:\Program Files\test.exe') I am tring to run a java based program, when I record my keystrokes I hit windows user account control. When I try and play back nothing records, even if I try the above command, still nothing, not even the user account window. Is there and issue with Java?
-
https://www.thinkorswim.com/tos/client/index.jsp https://www.thinkorswim.com/tos/displayPage.tos?webpage=clientApplication&displayFormat=hide Its stock trading platform, I just use the paper money free bit, is java 2 based, after I run the exe file a pop up window appears that you login too. User name, password and a saved profile. When I use the autorecorder to record my keystrokes nothing happens after I press stop, I can even run the .exe from the run panel in autorecorder. Its this usual with a Java 2 based app? Thanks Tinkerz
-
I try to start my script with the autorecorder as a starting point. But with I try to record the script on the thinkorswim platform, nothing records, even the .exe wont run. Does this not work on some popup windows?
-
If then else statement on _WinWaitActivate
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
Ok thanks for the replys but this is not quite what I am trying to get to. If there is a message box to activate then activate the message box and press enter, _WinWaitActivate("Message","") But if a message box does not pop up then dont press enter but continue the code -
If then else statement on _WinWaitActivate
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
So how do I check if the screen that opens is or is not Control Center - AAA1Turo1Intraday ? So I wrap it in an if statement, a msgbox check I wrote does return 0, but what if the active window is not ("Control Center - AAA1Turo1Intraday","") Thanks -
If then else statement on _WinWaitActivate
Tinkerz posted a topic in AutoIt General Help and Support
_WinWaitActivate("Message","") Send("{ENTER}") Sleep(5000) _WinWaitActivate("Control Center - AAA1Turo1Intraday","") Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If WinActive($title,$text)==0 Then WinActivate($title,$text) Else {more commands} End if WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() _WinWaitActivate("Message","") _WinWaitActivate("Control Center - AAA1Turo1Intraday","") I am using the autorecorder to start as the basis of my scripts, thats why the _ appears. What does the handle return if its not a "message"or "Control Center - AAA1Turo1Intraday", so I can run an if statement on another set of keystrokes if this does not appear This realtes _WinWaitActivate code, I want to write and if statement, if the handle is 0 for correct then I use == as the qualifer? Thanks again Tinkerz -
Entering a date in the form dd/mm/yyyy
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
_WinWaitActivate("Message","") Send("{ENTER}") Sleep(5000) _WinWaitActivate("Control Center - AAA1Turo1Intraday","") Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() _WinWaitActivate("Message","") _WinWaitActivate("Control Center - AAA1Turo1Intraday","") I am using the autorecorder to start as the basis of my scripts, thats why the _ appears. What does the handle return if its not a message or Control Center - AAA1Turo1Intraday, so I can run an if statement on another set of keystrokes if this does not appear Thanks again Tinkerz -
Entering a date in the form dd/mm/yyyy
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
I am trying the line Send("@MDAY & "/" & @MON & "/" & @YEAR") And In the box I get -1.IND I Also tryed $y =String((Number(@year) -1)) Send("@MDAY & "/" & @MON & "/" & $y") But still the error -1.IND I dont know how to put _DateAdd in the code I presume Local $sNewDate = _DateAdd('d', -365, _NowCalcDate()) But the format in help is yyyy/mm/dd I would like dd/mm/yyy -
Entering a date in the form dd/mm/yyyy
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
Is there a StringtoInteger command, I see alot in help but not this one. I want this for the converstion $y = @year -1, it looks like @year is a string type, I want to turn to an integer and then back to a string. Also is the _WinWaitActivate("Control Center - AAA1Turo1Intraday","") is not true, I dont understand the help statement Success: Returns handle to the requested window. Control Center - AAA1Turo1Intraday this is the handle? or "Control Center - AAA1Turo1Intraday" this Thanks Tinkerz -
Entering a date in the form dd/mm/yyyy
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
Send("{UP}{UP}{UP}{UP}{CTRLDOWN}b{CTRLUP}{TAB}{TAB}{PGUP}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{TAB}{TAB}_Datenow(){TAB}{CTRLDOWN}b{CTRLUP}{ENTER}") @MDAY & "/" & @MON & "/" & @YEAR I dont understand how to put this in send keys statement? Could a statement also include @YEAR -1? The box I want to enter the date in is a calender drop down box, so I think the keystokes need to be sepearated or pasted in. The application is called Ninjatrader, a stock trading application. Thanks Tinkerz -
'wake pc and run autoit script'
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
http://www.vistax64.com/tutorials/166809-task-scheduler-wake-up-computer.html Sorry it was this post. What I do is first run a trigger and a autoit script to press the up arrow, this wakes the PC and monitors in plentry of time to run my other script I set 1 min later -
'wake pc and run autoit script'
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
But I cant get it to work, the pc wakes from sleep but the screens dont turn on so I cant see if the code runs properly The script runs when I double click it, but when i run as a task, it starts, but produces an error. Has any one else been succesful with Ms task scheduler? -
'wake pc and run autoit script'
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
http://www.sevenforums.com/tutorials/67503-task-create-run-program-startup-log.html I just set it up from the instructions above -
'wake pc and run autoit script'
Tinkerz replied to Tinkerz's topic in AutoIt General Help and Support
I am using the ms taskscheduler to wake the PC, but script needs to delay a bit so the sleep function can work through the process, Looking at the help menu I can find a pause script or wait command. Any help please