AlmarM Posted September 6, 2008 Share Posted September 6, 2008 Hello! My script HotKeySet("{ESC}", "_Exit") HotKeySet("{HOME}", "_Do") While 1 Sleep(100) WEnd Func _Exit() Exit EndFunc Func _Do() Send("INSERT INTO shopitems (shopid, itemid, price, position) VALUES (xxx, " & "^v" & ", 1, " & $i & ");") EndFunc My problem is, that if I press HOME the $i var sould be +1 each time I press it. But how? I know it sould be simple for someone with almost 400 posts but this isny my day. -AlmarM- Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Bowmore Posted September 6, 2008 Share Posted September 6, 2008 Hello! My script HotKeySet("{ESC}", "_Exit") HotKeySet("{HOME}", "_Do") While 1 Sleep(100) WEnd Func _Exit() Exit EndFunc Func _Do() Send("INSERT INTO shopitems (shopid, itemid, price, position) VALUES (xxx, " & "^v" & ", 1, " & $i & ");") EndFunc My problem is, that if I press HOME the $i var sould be +1 each time I press it. But how? I know it sould be simple for someone with almost 400 posts but this isny my day. -AlmarM- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook 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