This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Some changes i need with my current script please
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

chandisciple

75 Posts

Posted - 08/26/2015 :  06:00:06  Show Profile
Hey Rob and All,

Please let me know if you can have a look at my below requests please.

1)Can the below command be trimmed down to less number of statements ? Like instead of using "acrunprogram" and open notepad then paste it, probably your style would be to use something that will directly send the clipboard to notepad ?

acSendKeys("^c")
acDelay(500)
acRunProgram("c:\\windows\\notepad.exe","",0, 1)
acDelay(300)
acSendKeys("^v")



2)The microsoft RDP/RDC (using mstsc) sessions cannot handle the strokesplus inputs properly.

a) for: acSendKeys("amar@gmail.com ")
output: amar2gmail.com

b)for : acSendKeys("au\\domain")
output: aU|DOmain

c)for : acSendKeys("Password")
output: pAssword

I am able to achieve this by giving delay for every statement.

a) acSendKeys("amar")
acDelay(300)
acSendKeys("{AT}")
acSendKeys("gmail.com")

b) acSendKeys("au")
acDelay(300)
acSendKeys("\\")
acSendKeys("domain")

c)

acDelay(300)
acSendKeys("{CAPSLOCK}")
acDelay(300)
acSendKeys("p")
acSendKeys("{CAPSLOCK}")
acDelay(300)
acSendKeys("assword")
acSendKeys("{ENTER}")
Is anyone else facing this issue and if there is any fix found ?

3) one of my webpage demands me to fill password and click on submit button. The submit button cannot be reached by tab and has to be clicked on by mouse to activate. {enter} button too does not work. Is there any other way to achieve this ?
what i use now works only when the submit button is not moved by "page zoom" or by any dashboard notice text that comes up on the webpage off and on.
acSendKeys("%d")
acSendKeys("{TAB}")
acSendKeys("{VKEY 32}")
acSendKeys("{TAB}")
acSendKeys("password")
acDelay(100)
acMouseClick(987, 666, 2, 2, 2)

Thanks for checking in.

Rob

USA
2615 Posts

Posted - 08/27/2015 :  08:32:09  Show Profile  Visit Rob's Homepage
1) That's pretty much what I would do, except for not having such a long (500) delay

2) Try increasing the delay between the keys sent by acSendKeys by putting the delay option before your text: acSendKeys("{DELAY=50}amar@gmail.com "). You can try high than 50 if you need.

3) If Enter doesn't work and you can't tab to it, you're going to have a difficult time. Since S+ does not run inside the browser's domain, there's no easy way to find where the login button is :-/
Go to Top of Page

chandisciple

75 Posts

Posted - 08/27/2015 :  08:44:15  Show Profile
Ok !
Thanks Rob for the answer. If you get time for last 3 questions please

1)What software do you suggest to track what keystrokes has been sent to the system ?

2)Is there any software that can track the input, when i use the horizontal touch scroll in my mouse ? i have a high end mouse which has touch for horizontal scroll . I am not able to use it until i use the logitech driver and i dont want to install that . so guessing if i can track the input from this mouse when the drivers are not installed and map it somehow in strokeplus.
also how do i use these scrolls if i have to end up installing the driver ?

3) how would i use
acGetClipboardText
acSetClipboardText

a small example please

Edited by - chandisciple on 08/27/2015 08:50:54
Go to Top of Page

Rob

USA
2615 Posts

Posted - 08/27/2015 :  18:38:10  Show Profile  Visit Rob's Homepage
1) I use Spy++ to watch every message...it's verbose, but definitive
2) I believe the driver is necessary, Windows doesn't natively support horizontal scroll, based on my knowledge and this link.
3) variable_name = acGetClipboardText() --variable_name now holds the clipboard text
acSetClipboardText("new clipboard text value here")

Something I use:
acSendKeys("^c")
acDelay(50)
local cliptext = acGetClipboardText()
if cliptext == "" then
	cliptext = "(non-text item)"
end
acDisplayBalloonTip(cliptext, "Copied To Clipboard", 1, 0)

Go to Top of Page

Rob

USA
2615 Posts

Posted - 08/27/2015 :  18:43:14  Show Profile  Visit Rob's Homepage
Ha, never mind, WM_MOUSEHWHEEL is a horizontal mouse wheel message.
Go to Top of Page

chandisciple

75 Posts

Posted - 08/28/2015 :  04:41:09  Show Profile
Awesome ! thanks rob.

:)
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000