Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if RealGetKeyState not reacting to input
#3
Code:
Copy      Help
[code]if RealGetKeyState(VK_LMENU) and RealGetKeyState('Y') and RealGetKeyState(VK_LBUTTON)
;Alt + Linksklick
,int mX(xm)
,int mY(ym)
,int i
,i = 1
,for i 1 f
,,ifk(F12) break
,,int w1=win("*.txt - Editor" "Notepad" 1)
,,act w1
,,wait RandomInt(0.3 0.6)
,,mou mX mY
,,lef
,,out i
,,if i = f
,,,goto start
[/code]

Thank you Gintiaras! Pressing the Buttons works now.

Can you please tell me how to switch to the next window with a Wildcard in the name?
For instance if i got a few notepad windows and i want to open the next one each time the for loop is looping.

I was already searching in the forums but i cant get the wildcard or tabbing to the next window to work.
Also my for loop doesnt seem to stop. After the loop it looks like its hanging in the loop and not reacting to buttons anymore.

Also the Wildcard doesnt work. QM says:
Error (RT) in Click Mover:  window not found (the handle is 0).


Messages In This Thread
RE: if RealGetKeyState not reacting to input - by Remotehorst23 - 02-04-2023, 01:14 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)