Recently Browsing 0 members
No registered users viewing this page.
I have a USB and a PS2 keyboard hooked into my computer.
Windows 7 Pro x64
-- Code Removed due to Keylogger rules of Forum --
The code ran "_isPressed" in a loop and wrote to the console the key pressed.
Every so often _isPressed outputs multiple random stuck keys to console. When I open a text editor however NO keys are being sent.
Why is this occurring and is it a concern?
#Include <WinAPI.au3> local $ClassName = _WinAPI_GetClassName(WinGetHandle(WinGetTitle("[ACTIVE]"))) ControlClick(WinGetTitle("[ACTIVE]"), "", "[CLASS:"&$ClassName&"; INSTANCE:1]", "primary") When I am running this script it just gives me a ConsoleWrite output of "0x001D04A8"
When using "AutoIT v3 Window Info" all the info I need for the ControlClick is there and displayed perfectly as if I typed it in normally.
Upon click the button it should be clicking it, I see the following inn the console window:
If I replace the $ClassName with the actual ClassName of "WindowsForms10.BUTTON.app.0.3296db7_r14_ad1" it works just fine, any ideas???
I have autoit program on my computer only portable version. I use Autoit vs 18.104.22.168
I want to use WinGetTitle but it always return 0.
I want to use it for retriev windows title and then i want to switch between windows.
E.g. - On start is msgbox where is info - "now choose yourt first window", i click first win - e.g. Excel, then 2. msgbox "now choose your 2. window" and i choose e.g. window folder. Then i want, that my script will switch between this windws and make my routine.
But my test code for retrieve win title still return 0. I try this on comp in work. I dont have admin rights but i belive, that this is not a reason, bacause Au3.SPY, show me win title correctly.
This is my sample code.
Pls. any suggestions?
thx a lot
Sleep( 2000 ) ; Allows switching to some other window to see if can get its title. $title = WinGetTitle("[active]") If $title Then MsgBox(0, "", $title) Else MsgBox(0, "", "nothing") EndIf
I am trying to make some stuff easier for me so when i click on the buttons on the side of my mouse it does some function. I have 4 extra buttons on my mouse and would like to utilize all of them. I have looked at _ispressed but that only seems to have two:
05 X1 mouse button
06 X2 mouse button
Those two works fine, I just want to know if there is a way to check if the other two buttons on my mouse is clicked ?