Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user stepz ! (Registered 2020-10-24) You are not logged in 
CSDb User Forums


Forums > CSDb Entries > Release id #93255 : KickVice
2016-06-25 22:27
Shadow

Registered: Apr 2002
Posts: 344
Release id #93255 : KickVice

Useful tool that I've been using for a long time now.
However, ran into a problem now where I want to switch to using x64sc.exe for extra accurate emulation, however KickVice only looks for the x64.exe process, resulting in that once I associate .prg with x64sc.exe, Kickvice will spawn a new instance of the emulator for every start.
Maybe x64sc-support could be added as an option?
2016-06-25 22:36
Groepaz

Registered: Dec 2001
Posts: 9561
just use the remote monitor feature of VICE
2016-06-26 03:40
Skate

Registered: Jul 2003
Posts: 477
wouldn't renaming x64sc.exe -> x64.exe work? yeah, it's not the cleanest solution but still...
2016-06-26 17:50
Groepaz

Registered: Dec 2001
Posts: 9561
you should probably do that in any case :=)
2016-06-27 18:38
Shadow

Registered: Apr 2002
Posts: 344
Skate: Doh! That is a solution so easy that it did not occur to me at all. Thanks! :)
2016-06-28 22:44
Shadow

Registered: Apr 2002
Posts: 344
Well, turns out it wasn't that easy after all. Kickvice seems to find the running instance using some method that doesn't involve the name of the .exe file, because the rename trick didn't work.
2016-06-29 02:07
Skate

Registered: Jul 2003
Posts: 477
Hmm, maybe he used the full process name / class name or something similar. I just checked my codes to see how i had sent keyboard messages to Vice and found this code below (this function was part of "Kinternational Karate" which you can find at Pouet). It works both with x64.exe and x64sc.exe. Pantaloon might use a similar way if he decides to update KickVice.

	private: void SendKeyToVice(BYTE vk, bool extendedKey) {
		// find window with "VICE" class name
		// and get its window handle
		HWND hwnd = FindWindow(L"VICE", nullptr);
		if(hwnd != nullptr) { // if any window returned
			// set focus to VICE window
			SetForegroundWindow(hwnd);
			// send key down event for the key
			keybd_event(vk,
						MapVirtualKey(vk, MAPVK_VK_TO_VSC),
						(extendedKey ? KEYEVENTF_EXTENDEDKEY : 0),
						0);
			// wait for a while
			Sleep(keyPressDuration);
			// send key up event for the key
			keybd_event(vk,
						MapVirtualKey(vk, MAPVK_VK_TO_VSC),
						(extendedKey ? KEYEVENTF_EXTENDEDKEY : 0) | KEYEVENTF_KEYUP,
						0);
		}
	}
2016-06-29 02:47
Groepaz

Registered: Dec 2001
Posts: 9561
*makes note to randomly change the window name at each startup*
2016-06-29 03:10
Skate

Registered: Jul 2003
Posts: 477
HWND hwnd = FindWindow(generateRandomString(), nullptr);


Solved. You can't imagine how lucky i am. :D
2016-06-29 16:31
Groepaz

Registered: Dec 2001
Posts: 9561
=D
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Mythus/Delysid
Holy Moses/Role
K-reator/CMS
csabanw
Mike
Guests online: 129
Top Demos
1 Uncensored  (9.7)
2 Edge of Disgrace  (9.6)
3 Coma Light 13  (9.6)
4 Memento Mori  (9.6)
5 Comaland 100%  (9.6)
6 Unboxed  (9.6)
7 The Shores of Reflec..  (9.6)
8 Lunatico  (9.5)
9 Remains  (9.5)
10 C=Bit 18  (9.5)
Top onefile Demos
1 ECM Water  (9.6)
2 Crystal Gazer  (9.5)
3 Dawnfall V1.1  (9.5)
4 Smile to the Sky  (9.5)
5 Daah, Those Acid Pil..  (9.5)
6 Rewind  (9.5)
7 Postcard from Earth 2  (9.5)
8 Instinct  (9.4)
9 The Night It Snowed  (9.4)
10 Tribute to Ben - Las..  (9.4)
Top Groups
1 Booze Design  (9.4)
2 Censor Design  (9.4)
3 PriorArt  (9.4)
4 Oxyron  (9.3)
5 Triad  (9.2)
Top Sysops
1 Optic Freeze  (10)
2 Pudwerx  (9.8)
3 Aycee  (9.6)
4 pcollins  (9.6)
5 Taper  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2020
Page generated in: 0.047 sec.