Sign in to follow this  
Followers 0
Jaccus

"ALT + N" in SEND(), how to do it?

18 posts in this topic

Topic.

I'm using Polish WinXP so maybe thats the problem, but where to find how to solve it? or how to do it.

any help would be nice.


Share this post


Link to post
Share on other sites



Topic.

I'm using Polish WinXP so maybe thats the problem, but where to find how to solve it? or how to do it.

any help would be nice.

Have you tried Send(!N) in case it is an upper case n that is required.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Just did it. Still the same :|


Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Just did it. Still the same :|

Try

Send({ALTDOWN})
Send(n)
Send({ALTUP})

Edit

Or try using ControlSend

Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Send({ALTDOWN})

Send(^ ERROR

Error: Unable to parse line.

any other ideas?


Share this post


Link to post
Share on other sites

Send({ALTDOWN})

Send(^ ERROR

Error: Unable to parse line.

any other ideas?

you have to surround text to be sent like that with quotes. so it would be:

Send("{ALTDOWN}N{ALTUP}")

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Send({ALTDOWN})

Send(^ ERROR

Error: Unable to parse line.

any other ideas?

As I edited in my last post try ControlSend


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

you have to surround text to be sent like that with quotes. so it would be:

Send("{ALTDOWN}N{ALTUP}")
Oops type in to much of a hurry, I think I should shutdown for the night.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Thanks guys but still nothing's happened. Maybe the problem is somewhere else?

i've put:

WinWaitActive("text")

before, to make sure it's correct window but no idea why it still doesn't work...


Share this post


Link to post
Share on other sites

Thanks guys but still nothing's happened. Maybe the problem is somewhere else?

i've put:

WinWaitActive("text")

before, to make sure it's correct window but no idea why it still doesn't work...

is "text" the beginning of the window title? if not, your script is most likely not executing beyond that line.

try:

WinActivate("WindowTitleHere")
WinWaitActive("WindowTitleHere")
Send("!N")

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

WinWaitActive('?window title name?")

WinWaitActive("text")

and its always with quotes

this

Send({ALTDOWN})

needs to be

Send("{ALTDOWN}")

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

WinWaitActive('?window title name?")

may want to make sure you use the same type of quotes on either end of your string too...

;)


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

try this

Run("notepad.exe")
Winwait(""); waits for the last window ran
$handle = WinGetHandle("Bez tytutu - Notatnik"); check my spelling here
Send(" this is some text")
Sleep(200); waits for send to finish words
Send(!N")

; your script closed the program then tried to send...???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Topic.

I'm using Polish WinXP so maybe thats the problem, but where to find how to solve it? or how to do it.

any help would be nice.

To which application are you trying to send ALT+N?

what happens when you do it manually? ;)

Share this post


Link to post
Share on other sites

thx Valuater, it seems to work now properly

btw. i wanted to close it (to get closing message if i want to save that doc and to choose 'no')

but with Your code i can use like File/Close


Share this post


Link to post
Share on other sites

WinClose("title????")

should work because once you have changed the text in notepad.. it will ask you if you want to save it

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

i'm begginer yet so maybe my mistake is easy to see in code:

http://jaccus.no-ip.org/~jaccus/pic1.jpg

it's Polish but i guess no matter if you know how it should looks like.

Referring to your screenshot, I can see the error in the code:

WinWaitActive("Tekst")

'Tekst' appears as part of the window text and not the title, so you should use:

WinWaitActive("", "Tekst")
; (or this)
 WinWaitActive("Notatnik", "Tekst")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0