1. How to point and click mouse?
- Posted by SnakeCharmer Dec 26, 2012
- 1538 views
I need program for clicking to some points periodically.
2. Re: How to point and click mouse?
- Posted by DerekParnell (admin) Dec 26, 2012
- 1418 views
I need program for clicking to some points periodically.
We need a lot more detail before we can answer this.
Which platform? MS-DOS, Windows, Linux? Which GUI system will use use? wx, qt, win32lib, ... ? What Euphoria? Ver 3 or ver 4?
If you are using Windows and Win32lib, the common method is to handle either the Mouse or Click event.
-- example procedure onMouse(integer self, integer event, sequence parms) if parms[1] = LeftDown then savePos = {parms[2], parms[3]} -- get the X/Y position of the mouse. end if end procedure setHandler (TheWindow, w32HMouse, routine_id("onMouse"))
From the Win32lib manual ...
parms = { integer event, integer x, integer y, integer shift, integer wheelmove } The event parameter will be one of the following values: MouseMove: the mouse was moved LeftDown: the left mouse button was pressed RightDown: the right mouse button was pressed LeftUp: the left mouse button was released RightUp: the right mouse button was released LeftDoubleClick: the left mouse button was double clicked RightDoubleClick: the right mouse button was double clicked WheelMove: The mouse wheel has moved. The x and y parameters specify where the mouse is located. If the mouse has been grabbed (see captureMouse), the values of x and y can be negative if the mouse is outside the client area. The shift parameter has bits set indicating the if the keyboard shift, control, and alt keys are pressed, and which mouse button was pressed. The masks are: ShiftMask --> Left and/or Right Shift key down ControlMask --> Left and/or Right Control key down AltMask --> Left and/or Right Alt key down WinMask --> Left and/or Right Windows key down KeyMask --> Any of the Shift/Control/Alt keys down. LeftBtnMask --> Left mouse button down. RightBtnMask --> Right mouse button down. MiddleBtnMask --> Middle mouse down. BtnMask --> Any mouse button down. -- Is one of the shift keys is held down? if and_bits( shift, ShiftMask ) then . . . end if -- Check for the combination Ctrl and Right Mouse. if and_bits( shift, ControlMask+RightBtnMask ) then . . . end if The WheelMove parameter describes the direction and size of the mouse wheel movement. A value greater than 0 means that the wheel moved 'up' or away from the user, and a value less than zero means the wheel moved 'down' or towards the user. And of course, a value of 0 means that it didn't move at all. The speed, or size, of the movement is the absolute value of this parameter. You can use this in conjunction with getWheelScrollLines() to work out how the mouse wheel movement should effect your application.
3. Re: How to point and click mouse?
- Posted by SnakeCharmer Dec 27, 2012
- 1376 views
Which platform? MS-DOS, Windows, Linux?
Windows Vista 32-bit.
Which GUI system will use use? wx, qt, win32lib, ... ?
Do you mean interface of MY program? It can be a console, graphics or none... It isn't essential. I think you misunderstood my intentions.
What Euphoria? Ver 3 or ver 4?
4.0.5
If you are using Windows and Win32lib, the common method is to handle either the Mouse or Click event.
I needn't to check mouse clicks, I need to click mouse from code. I want to create the program which will play slots in an online casino.
4. ArchiveRe: How to point and click mouse?
- Posted by BRyan Dec 27, 2012
- 1320 views
Always check the Archive
http://rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=sendkey
5. Re: How to point and click mouse?
- Posted by CoJaBo2 Dec 27, 2012
- 1278 views
I needn't to check mouse clicks, I need to click mouse from code. I want to create the program which will play slots in an online casino.
In layman's terms, this technique is called "fraud".
6. Re: How to point and click mouse?
- Posted by useless_ Dec 27, 2012
- 1307 views
I needn't to check mouse clicks, I need to click mouse from code. I want to create the program which will play slots in an online casino.
In layman's terms, this technique is called "fraud".
Yeas, you could get ripped off in the casino, they have the program, the hardware, and your money.
useless
7. Re: How to point and click mouse?
- Posted by SnakeCharmer Dec 28, 2012
- 1310 views
Always check the Archive
Thanks!
P.S. I'm mathematician. I know probability theory. That casino isn't real, but in a social network. Just for fun (and coding experience).
8. Re: How to point and click mouse?
- Posted by jimcbrown (admin) Dec 28, 2012
- 1281 views
I needn't to check mouse clicks, I need to click mouse from code. I want to create the program which will play slots in an online casino.
In layman's terms, this technique is called "fraud".
I think you're making a big assumption here - maybe the online casino is one that the OP designed and is trying to debug?
Maybe it's an early start for some kind of April fools prank on a social media site?
There are lots of explainations here that don't result in the conclusion that someone is trying to cheat to win money or other prizes unfairly.
9. Re: How to point and click mouse?
- Posted by SnakeCharmer Dec 28, 2012
- 1297 views
There are lots of explainations here that don't result in the conclusion that someone is trying to cheat to win money or other prizes unfairly.
I really want to win dishonestly. However I consider it as harmless prank, because the only award is the winner status. This casino give additional coins each four hours. It is necessary to press the button in time. Certainly, I will better start the program for the night. ;)