#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Cursor Type

Hi,
I'm using Excel macros to interface with a third party piece of
software. mostly this is going well as I've taken to loading api
commands to run most of my interactions.

However, I'm trying to tell whether the system is currently working
(it'll save a lot of useless waiting time) but the only external sign
that the system is working is the mouse changing icon.

the code I've tried:

Private Declare Function CopyIcon Lib "user32" (ByVal hIcon As Long) As
Long
Private Declare Function GetCursor Lib "user32" () As Long

Sub curs()
Dim row As Integer
row = 2
Dim ttime As Long
Dim ttime1 As Long
Dim cursor
ttime = timeGetTime
Do
ttime1 = timeGetTime
Do
DoEvents
Loop Until ttime1 + 50 < timeGetTime
cursor = GetCursor
If Worksheets(1).Range("A" & row - 1) < cursor Then
Worksheets(1).Range("A" & row) = cursor
row = row + 1
End If
Loop Until ttime + 20000 < timeGetTime
End Sub

all this is doing is monitoring the changing Icon this works wonders
until it gets to the third party program this program (SMS if anyone
knows it (its old!)) where it just sticks on the number 65544.

Has Anyone got any ideas that might help?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My cursor always in selection mode,wat about other cursor option Deepu[_2_] Excel Discussion (Misc queries) 1 March 2nd 10 01:05 AM
move cursor on one sheet moves cursor on all sheets tdworden Excel Discussion (Misc queries) 2 July 22nd 07 10:50 PM
why am I getting a 3 d cross cursor instead of a pointer cursor? 3 d cross cursor - turn it off Excel Discussion (Misc queries) 1 April 12th 06 12:38 AM
Cursor disappears / Cursor verschwindet Cevikel Excel Programming 1 February 16th 06 04:01 PM
Can I change the "white cross" cursor in Excel to another cursor? KFEagle Excel Discussion (Misc queries) 1 May 3rd 05 08:01 PM


All times are GMT +1. The time now is 07:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"