jglazer Posted February 20, 2005 Posted February 20, 2005 Why if I do a send("!0") it doesn't send an alt-zero? I also seem to be having issues with send("{numpadadd"}) Thanks!
SlimShady Posted February 20, 2005 Posted February 20, 2005 Did you try it out in a Notepad window? Make AutoIt run Notepad ans send the keys. So you can see if it works. If you are sure it doesn't work, post the script so we can take a look.
Developers Jos Posted February 20, 2005 Developers Posted February 20, 2005 Why if I do a send("!0") it doesn't send an alt-zero?<{POST_SNAPBACK}>What should Alt+0 combination be in your case??? My pc doesn't do much when i type Alt+0 ..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Blue_Drache Posted February 21, 2005 Posted February 21, 2005 (edited) What should Alt+0 combination be in your case??? My pc doesn't do much when i type Alt+0 .....<{POST_SNAPBACK}>Depends on what he's sending it to. On an AS400, the entire keyboard can be changed to do whatever the user wants...be it type a character or run a script, execute a program, upload a file to the host, etc....Besides, isn't it {altdown}{numpad0}{altup}? Edited February 21, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
jglazer Posted February 21, 2005 Author Posted February 21, 2005 Why if I do a send("!0") it doesn't send an alt-zero?I also seem to be having issues with send("{numpadadd"})Thanks!<{POST_SNAPBACK}>hehe i did post the script. It's one line long. Well there's a sleep(3000) so i can get the the right window first
SlimShady Posted February 21, 2005 Posted February 21, 2005 Ok. First this line is incorrect. send("{numpadadd"}) It should be: send("{numpadadd}") Second I suggest you use the following for Alt+0, like Blue_Drache said. {altdown}{numpad0}{altup}
jglazer Posted February 21, 2005 Author Posted February 21, 2005 (edited) Ok.First this line is incorrect.send("{numpadadd"})It should be:send("{numpadadd}")Second I suggest you use the following for Alt+0, like Blue_Drache said.{altdown}{numpad0}{altup}<{POST_SNAPBACK}>Well that numpadadd thing was my typing mistake. Obviously autoit would have complained if I had actually typed that.I'll give the alt+0 thing a try. I just thought adding a "!" to the front of things automatically did the alt. That seems to be how the help file reads anyhow. His way is pretty cumbersom. Edited February 21, 2005 by jglazer
jglazer Posted February 21, 2005 Author Posted February 21, 2005 Ok.First this line is incorrect.send("{numpadadd"})It should be:send("{numpadadd}")Second I suggest you use the following for Alt+0, like Blue_Drache said.{altdown}{numpad0}{altup}<{POST_SNAPBACK}>Do I have to use {numpad0} if the button i want pressed is actually the zero button above the P?
SlimShady Posted February 21, 2005 Posted February 21, 2005 I'm not sure. Try everything until it works like you want it.
jglazer Posted February 21, 2005 Author Posted February 21, 2005 Tried send("{ALTDOWN}0{ALTUP}") And it pressed the ZERO button (no alt). Any more ideas?
ZeDMIN Posted February 21, 2005 Posted February 21, 2005 Maybe you can explain what the purpose of your program is?
jglazer Posted February 22, 2005 Author Posted February 22, 2005 Maybe you can explain what the purpose of your program is?<{POST_SNAPBACK}>Not sure why this would be of any use to fixing this since it either presses alt-zero or it doesn't but it's a game I am playing. I read the help file again and "!0" is really supposed to be interpretted as alt-0 but it simply aint happen'n.
Blue_Drache Posted February 22, 2005 Posted February 22, 2005 (edited) Not sure why this would be of any use to fixing this since it either presses alt-zero or it doesn't but it's a game I am playing. I read the help file again and "!0" is really supposed to be interpretted as alt-0 but it simply aint happen'n.<{POST_SNAPBACK}>You could re-assign the game's hotkey to something else and then re-program the AutoIt script accordingly. Edited February 22, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
jglazer Posted February 22, 2005 Author Posted February 22, 2005 Not sure why this would be of any use to fixing this since it either presses alt-zero or it doesn't but it's a game I am playing. I read the help file again and "!0" is really supposed to be interpretted as alt-0 but it simply aint happen'n.<{POST_SNAPBACK}>That doesn't fix AutoIt's ability to make this happen. IN addition, I have 9 other alt- buttons I want to use. alt-0 was just the first.
zcoacoaz Posted February 22, 2005 Posted February 22, 2005 #region Annoying then reprogram them all. I'm so smart i looked at this and instantly new a solution, smart me. autoit has the ability to make it happen you just dont have the ability to tell autoit to make it happen. #endregion Annoying [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]
jglazer Posted February 22, 2005 Author Posted February 22, 2005 #region Annoyingthen reprogram them all.I'm so smart i looked at this and instantly new a solution, smart me.autoit has the ability to make it happen you just dont have the ability to tell autoit to make it happen.#endregion Annoying<{POST_SNAPBACK}>Ummm.... huh? How does this get autoit to hit alt-0? Or are we not interested in fixing this? Or maybe you don't consider this to be a problem? I already have a fix in place that doesn't involve hitting alt-0. This whole thread started to help the autoit programmers work out a potential issue.
Blue_Drache Posted February 22, 2005 Posted February 22, 2005 Ummm.... huh? How does this get autoit to hit alt-0? Or are we not interested in fixing this? Or maybe you don't consider this to be a problem? I already have a fix in place that doesn't involve hitting alt-0. This whole thread started to help the autoit programmers work out a potential issue.<{POST_SNAPBACK}>WinActivate("Foo") If WinWaitActive("Foo","",10) = 0 then MsgBox(0,"Error","Error. Timeout on WinActivation",5) Exit Else Send("!0",0) Send("{altdown}0{altup}",0) Send("!{numpad0}",0) Send("{altdown}{numpad0}{altup}",0) EndIfI received expected returns on the windows I sent those codes to. I've coded my AS400 to type out "ZERO WORKS" when typing the first two, and "NUMPADZERO WORKS" when typing the last two. Re-check your code. Post the script.Do something. WE'RE FLYING BLIND HERE! Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
jglazer Posted February 22, 2005 Author Posted February 22, 2005 (edited) Ummm.... huh? How does this get autoit to hit alt-0? Or are we not interested in fixing this? Or maybe you don't consider this to be a problem? I already have a fix in place that doesn't involve hitting alt-0. This whole thread started to help the autoit programmers work out a potential issue.<{POST_SNAPBACK}>Ok here's the script. Its very complex so sorry about that...Sleep(8000) Send("!0")If you can follow it, you should see that I am trying to send alt-0 in the form of "!0"The initial delay is so I can switch windows. Edited February 22, 2005 by jglazer
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now