SendInput function

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: SendInput function

Re: SendInput function

Post by jeeswg » 20 Jul 2017, 19:48

I'm not actually 100% clear what you want to do. A problem is that you seem to have too many closing curly braces. It is quite hard to look at, the text with the object references inside, so what I tend to do is start with some literal text and convert it.

Code: [Select all] [Expand]GeSHi © Codebox Plus

Re: SendInput function

Post by Guest » 20 Jul 2017, 16:42

Thanks for reply,

I changed to this :

Code: [Select all] [Expand]GeSHi © Codebox Plus



Now the hotkey is working, but I want to set it down, or up and I don't find how to, I'm sure it's easy :facepalm:

When I use it I have something like

Code: [Select all]GeSHi © Codebox Plus

 2 Down 2 Up 2 Down 2 Up 2 Down 2 Up (2 is example)


Thanks :wave:

Re: SendInput function

Post by jeeswg » 19 Jul 2017, 16:48

Check your SendInput lines, they should look something like this:

Code: [Select all]GeSHi © Codebox Plus

q::
m := ["a","b"]
SendInput, % "{" m[1] "}{" m[2] "}"
ToolTip, % "{" m[1] "}{" m[2] "}"
;MsgBox, % "{" m[1] "}{" m[2] "}"
return

Note: I've added some ToolTip/MsgBox lines that will allow you to check what the string you are going to use with SendInput, actually looks like.

Re: SendInput function

Post by Zurydix » 19 Jul 2017, 16:37

up :roll:

SendInput function

Post by Zurydix » 15 Jul 2017, 07:53

Hello,

I'm new with AHK and I have a problem that I'm sure its stupid to solve but I didn't found how to :(

So I want to be able to use a macro if the checkbox is checked, this is working, but I added an Hotkey function who edit the macro.
Here,

Code: [Select all]GeSHi © Codebox Plus

SendInput {m[1] "{" m[2] "} Down}
{m[1] "{" m[2] "} should be changed by the hotkey but it doesn't, when I use it, it just send Down Up Down Up......

Code: [Select all] [Expand]GeSHi © Codebox Plus



Thanks if you can help :)

Top