Qvartz Posted May 6, 2019 Share Posted May 6, 2019 Hello, can someone help me with _IsPressed function? I made simple script that tells me if steam is running, but I want that to happen only when I hold down shift, how can I do that? #include <MsgBoxConstants.au3> while 1 sleep(100) If ProcessExists("Steam.exe") Then MsgBox($MB_SYSTEMMODAL, "", "Steam is currently running") sleep(1000) EndIf WEnd Link to comment Share on other sites More sharing options...
Exit Posted May 6, 2019 Share Posted May 6, 2019 #include <MsgBoxConstants.au3> #include <misc.au3> While Sleep(100) If ProcessExists("Steam.exe") Then If _IsPressed("10") Then MsgBox($MB_SYSTEMMODAL, "", "Steam is currently running", 1) EndIf EndIf WEnd App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Nine Posted May 6, 2019 Share Posted May 6, 2019 @Qvartz Maybe you should read about forum rules above, especially game automation... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Qvartz Posted May 7, 2019 Author Share Posted May 7, 2019 7 hours ago, Nine said: @Qvartz Maybe you should read about forum rules above, especially game automation... Is steam counted as game? And yes I did read rules. Link to comment Share on other sites More sharing options...
Qvartz Posted May 7, 2019 Author Share Posted May 7, 2019 8 hours ago, Exit said: #include <MsgBoxConstants.au3> #include <misc.au3> While Sleep(100) If ProcessExists("Steam.exe") Then If _IsPressed("10") Then MsgBox($MB_SYSTEMMODAL, "", "Steam is currently running", 1) EndIf EndIf WEnd Thank you for help, I was using it in wrong order. Link to comment Share on other sites More sharing options...
Qvartz Posted May 7, 2019 Author Share Posted May 7, 2019 7 hours ago, Nine said: @Qvartz Maybe you should read about forum rules above, especially game automation... Also as I mentioned Im new to autoit and its just my script Im learning from, basically 2 example scripts from site put together. Link to comment Share on other sites More sharing options...
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